-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve webotsJS #6280
Improve webotsJS #6280
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested and I could find only one issue with the visualization of the TrackWheel
and the Track.animatedGeometries
:
the initial position of the TrackWheel and Track.animatedGeometries
doesn't match the one in Webots at load, but at least for the TrackWheel nodes the position is adjusted after the first simulation step.
Steps to reproduce:
- Run track.wbt
- Reduce the
Track.geometriesCount
to 10 (in order to better visualize the position) - Save the simulation at time step != 0
- Restart Webots in pause mode and with streaming option
- Connect from the streaming viewer -> the orientation of the track wheels and the position/orientation of the animatedGeometries in WebotsJS differs from the one in Webots
- Run one simulation step
-> the TrackWheel geometry jumps to the correct position, but the animated geometries still differ in Webots and WebotsJS
Co-authored-by: Stefania Pedrazzi <[email protected]>
Co-authored-by: Stefania Pedrazzi <[email protected]>
Co-authored-by: Stefania Pedrazzi <[email protected]>
I fixed it for For the animated geometries, I think it is normal and we can let it like that because we send to webotsJS only the following information:
And webotsJS build all the track animated geometries from that. |
Co-authored-by: Stefania Pedrazzi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
I just changed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Description
vrmlField
and replace the field we want to export to the web (without modification or correction) byw3dField
.wrl
styleRecognitionFocusImmersionPropertiesJointParametersSkinSolidReferenceBallJointParametersBrakeLensFlareHinge2JointParametersLinearMotorRadioDampingPhysicsRotationalMotorHingeJointParametersMuscleLensZoomContactProperties.x3d
format with.w3d
meta.json
We decided to replace
x3d
because thex3d
used by webots is so extended that it is not reallyx3d
anymore (see #3615 ) by our own format:w3d
. In practice only the name and file extension will change, the content will remain the same.Concerning the
vrmlField
, we do not support vrml import/export anymore. Moreover, currently, only thevrmlField
are exported to webotsJS. It induces a lot of custom export to get some fields that we need in webotsJS but that are currently notvrmlField
.You cant test it on https://proto.webots.cloud (scene, animation and proto)