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

Can we use a same .STL file for both visual and collision while building URDF?

asked 2020-12-28 14:34:12 -0500

srujan gravatar image

I have .STL files for my robot model. Can we use the same .STL files for both visual representation and collision representation while building URDF?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-29 01:49:42 -0500

gvdhoorn gravatar image

Can we use the same .STL files for both visual representation and collision representation while building URDF?

Yes, you can.

But you probably don't want to.

The collision geometry is typically used by motion planners (such as MoveIt) to perform collision checks, and in most cases, performance of that step is inversely proportional to the fidelity of the collision geometry you've supplied.

So in general I would recommend to only use the same meshes for both if you are OK with reduced performance or the visual mesh is low fidelity already.

edit flag offensive delete link more

Comments

Note: whether planning performance really is slower with high fidelity meshes for collision of course depends on the planning software used. Some will allow you to approximate collision geometry using convex hulls/shapes, or perhaps even capsules.

As MoveIt is often used with URDFs and you're asking this on ROS Answers, I've provided the main rationale for why we have separate visual and collision elements.

gvdhoorn gravatar image gvdhoorn  ( 2020-12-29 01:51:35 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-12-28 14:34:12 -0500

Seen: 782 times

Last updated: Dec 29 '20