haosulab / SAPIEN

SAPIEN Embodied AI Platform
https://sapien.ucsd.edu/
MIT License
427 stars 41 forks source link

Is there a way to draw Joints #154

Open RWLinno opened 7 months ago

RWLinno commented 7 months ago

I read sapien's documents and then saw a lot of complicated methods, but I'm wondering if there is a simple way to draw the joints out of the data. Specifically is it possible to remap the parts of the rendered image that are joints to a certain color? I hope I can get your help.

fbxiang commented 7 months ago

Do you mean you want to draw a line segment at the joints? Or do you want to color the links that are connected to an active joint? Here is some code that we created previously to color robot links in contact red. Maybe you will find this helpful. https://github.com/haosulab/cvpr-tutorial-2022/blob/master/debug/check_urdf.py