ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Are meshes in a urdf limited to a number of faces?

asked 2021-08-12 03:36:49 -0500

JoSch gravatar image

Are meshes like .stls and .daes limited in the number of faces so that a urdf will be loaded properly in rviz?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-12 03:49:37 -0500

gvdhoorn gravatar image

updated 2021-08-12 03:59:39 -0500

Theoretically: no.

Practically: yes.

There is no hard-coded limit to the size of meshes in RViz -- or more precisely: in Assimp, which is what RViz uses to load meshes.

Practically though, loading times will increase and framerates will start to drop for larger meshes, but it's hard to put an exact number of faces on that, as it's largely hardware dependent.

Perhaps also important: loading a urdf is (almost) separate from loading the meshes. Many consumers of .urdfs will load the XML, but will not bother with loading the meshes.

edit flag offensive delete link more



PS: also be aware that RViz is not the only consumer of URDFs. And it's also not special.

Consumers such as MoveIt for instance load the same data, and there collision checking performance is highly dependent on the number of faces in a mesh (as without capsules, collision checking will be face-based).

gvdhoorn gravatar image gvdhoorn  ( 2021-08-12 03:56:17 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-08-12 03:36:49 -0500

Seen: 50 times

Last updated: Aug 12 '21