-
Notifications
You must be signed in to change notification settings - Fork 5
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
SMPLX model in ROS #1
Comments
No, we use PyRender for visualization. Rviz needs path to the STL file, which means one need to first save the 3D mesh at every time instant and save it in STL format. Then, a publisher should publish the paths to these files and Rviz should subscribe to these topics. This is quite inconvenient. If you want to visualize SMPL in interactive 3D, I would recommend blender python module or meshcat-python. |
Thanks a lot! |
Sorry, but I don't have enough experience with rviz to answer that question. Most probably, such visualization cannot be done in rviz. If you are ok with another way of visualizing then maybe use meshcat and write a subscriber around it. The subscriber subscribes to the SMPL parameters and converts them to vertices. These vertices can be used by meshcat for visualization. |
If you want to visualize the joint position and orientation you can use pose array messages (https://wiki.ros.org/rviz/DisplayTypes/PoseArray) both the arrow/axes visualization might serve your purpose. The process is
A minimal working example with python is here. Using a robot model I think it's not possible, even if you use rotational joints(which exists) because each visualization unit in rviz should be attached to a rigid mesh |
thank you very much! I am going to find some more ways~ |
Thanks for your detailed reply! |
I don't think that's possible. As far as I know the meshes are rigid in rviz, so for a body model you should stripe it down to different pieces>associate to different joints>move the joints. But it won't work easily. A thing you can explore is https://wiki.ros.org/mesh_tools and create the mesh offline and publish it. Or associate to each vertex a "cube", use visualization marker, and publish the list of cubes. You won't see a super smooth thing but you'll get the idea. I think it can handle 6900 cubes Using this https://wiki.ros.org/rviz/DisplayTypes/Marker#Mesh_Resource_.28MESH_RESOURCE.3D10.29_.5B1.1.2B-.5D might even work if you take every n-th vertex. Or you can look into this https://github.com/marip8/colorized_mesh_display. I've never tried though sorry. |
OK! thank you so much, i will have a try~ |
Thanks for your great works!
I have a little questions, i just learn a little about ROS, can your project realize the visualization of smpl model in Rviz?
The text was updated successfully, but these errors were encountered: