ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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
1

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

Comments

1

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

Question Tools

3 followers

Stats

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

Seen: 76 times

Last updated: Aug 12 '21