Skip to content
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

Saved scenes cannot be updated after updating joint variables #72

Open
lanmo0923 opened this issue Apr 1, 2024 · 1 comment
Open

Saved scenes cannot be updated after updating joint variables #72

lanmo0923 opened this issue Apr 1, 2024 · 1 comment

Comments

@lanmo0923
Copy link

viewer.update_joint_positions()
viewer.save_scene_gltf()

After using the first line of code to update the joint variables, the viewer display has changed. Using the second line of code to save the scene, the scene obtained is always the initial scene, how to save the updated scene?

@johnwason
Copy link
Contributor

The viewer works by generating a glTF2 file that is loaded into the viewer, and then manipulating the transforms to move to joint positions and animate the trajectories. The gtTF file itself contains the scene with all the joints set to zero. There may be an animation in the glTF file that contains the current joint position or trajectory but that is not guaranteed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants