Closed BenjaminDeleze closed 1 year ago
Also, I believe we should avoid to add more ajax requests with individual SQL queries on the same table. Instead we should try to minimize these costly calls by grouping them together. For example, it would be nice to merge the calls to documentation.php, needs_robot_ancestor.php, display_3d_view.php and maybe insertable.php into a single call.
Also, I believe we should avoid to add more ajax requests with individual SQL queries on the same table. Instead we should try to minimize these costly calls by grouping them together. For example, it would be nice to merge the calls to documentation.php, needs_robot_ancestor.php, display_3d_view.php and maybe insertable.php into a single call.
If feasible for display_3d_view.php and documentation.php.
I did not do it initially because we do not always need the information returned by documentation.php
but it is a good idea to merge the two files, the calls to the two ajax request is done two functions (both in webots-cloud.js) apart so it is no a problem to pass the information.
Device
. It may be possible to get the information in webots-cloud
and to add a parameter to pass the information to WebotsJS. I will check.In the JavaScript code, it should probably be the same as in the proto file.
In JS we get the .json
straigth from the .sql so the attribute is named no_3d_view
https://github.com/cyberbotics/webots/pull/5933 must be reviewed in parallel.
Also change
Field Summary
toField Description
.Test it here: https://testing.webots.cloud/run?version=R2023b&url=https://github.com/cyberbotics/webots/blob/doc-add-bo/projects/joints/protos/Hinge2JointWithBacklash.proto&type=undefined