Visualize any robot#42
Conversation
Visualize any robot from the list of robot descriptions.
|
Hi! Could you provide a bit more context on the motivation behind this PR? At first glance, it looks quite similar to the original ViserUrdf example in viser. It would be great to go beyond just loading the robot from robot-descriptions -- for example, by also supporting:
|
|
The goal is to start with a simple, minimal example About the suggestions you made I'm happy to contribute this in a separate PR. |
I completely agree -- right now the examples don’t really show how users can load in their own robots, and that feels like an important gap.
Great to hear that you’re open to contributing more! That said, I do feel pretty strongly that these features should be demonstrated together in a single example (ideally in a single PR), since:
|
|
I made the necessary code changes, and now I can load custom URDFs. I’ve tested it with a custom arm, legged robot, and humanoid — all work fine, though some improvements are still needed. Working with inverse kinematics (IK) for custom robot models is a bit tricky, as there are multiple ways to solve IK, such as using Additionally, However, it would make more sense to let the user specify the And I am not sure how to define Aufzeichnung_Custom_URDF_IK.mp4Aufzeichnung_fanuc_m710ic_IK.mp4Aufzeichnung_atlas_drc_IK.mp4 |
Yea the videos look great! 😄
IIRC these two functions are nearly identical -- maybe we can use
I think we can allow users to specify + add new target links, through a snippit like this below:
Re; this, a reasonable default might be to use the starting pose (by running the FK at the current joint configuration). |
|
Update and rename 11_show_any_robot.py to 13_custom_urdf_ik.py Features: 1. Load custom URDF files or use built-in robot descriptions. 2. Inverse Kinematics (IK) solving to control the robot's end-effector.
|
I’ve implemented the suggested changes The code has been tested with various URDFs, including those using .dae and .stl files —works well. I’ve also added a short README for the script, outlining current limitations. Feel free to take a look and let me know your feedback! |
Added GUI checkbox: To switch between IK control and joint control with sliders.
Aufzeichnung_spot_IK.mp4 |
Minimal PyRoki example to visualize any robot from the list of robot descriptions.