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

How to get the gripper's state #65

Open
Jay-Ye opened this issue Feb 13, 2025 · 5 comments
Open

How to get the gripper's state #65

Jay-Ye opened this issue Feb 13, 2025 · 5 comments

Comments

@Jay-Ye
Copy link

Jay-Ye commented Feb 13, 2025

Thanks so much for this amazing work.
I'm wondering if it's possible to get the gripper's state information that is aligned with the dataset.
I checked env.agent.get_gripper_closedness(), but it seems not to be similar to the real gripper state recorded episode_steps[i]['observation']['state'][6]

@xuanlinli17
Copy link
Collaborator

xuanlinli17 commented Feb 16, 2025

In this case you need env.agent.robot.get_qpos() and retrieve the gripper qpos and remap to the dataset range. Gripper qpos ranges can be obtained from env.agent.robot.get_qlimits().

You can also visualize the robot urdfs in https://github.com/simpler-env/SimplerEnv/tree/main/tools/robot_object_visualization to understand the meaning of each joint's qpos.

@Jay-Ye
Copy link
Author

Jay-Ye commented Feb 16, 2025

Thank you so much for the clarification.
I have a side question regarding the camera poses.
To get good real-to-sim visual matching, we do need the camera extrinsic w.r.t the robot base to be consistent across real rollout and simulated environments. As far as I know, neither Bridge nor RT-1 data provided camera extrinsic.
I noticed says here, that you can manually tune the camera pose to make it better align with real demonstrations. Is this also how you get the camera extrinsic for the Bridge and RT-1 settings?

@xuanlinli17
Copy link
Collaborator

I use fSpy to get the camera extrinsics for Bridge. Google Robot's camera extrinsics are already known.

@Jay-Ye
Copy link
Author

Jay-Ye commented Feb 16, 2025

Thank you so much for patiently answering my questions.
Congratulations again on this amazing work!

@JaehongJaehongMin
Copy link

JaehongJaehongMin commented Feb 18, 2025

Hello, @Jay-Ye
Could you please explain how did you record the environment data like in rlds (tfds) fornat?
I was trying to use EnvLogger, but it didn't work that easy that I thought. :(

Thank you!

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

3 participants