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

Can't load stl into URDF using ROS2

asked 2021-06-25 08:50:09 -0600

rsc gravatar image

in ROS 1 i used, <mesh filename="package://robot_description/meshes/base.stl"/> for load a STL in URDF xacro file

But apparently this does not work in ROS2, how do I load an STL file?

edit retag flag offensive close merge delete


If you observed an error or warning message, I would suggest to include it, verbatim, in your question text.

That might help others figure out why it's not working for you.

gvdhoorn gravatar image gvdhoorn  ( 2021-06-26 09:48:43 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-30 08:23:48 -0600

djchopp gravatar image

See this question. Xacro in ROS2 does not seem to support the package tag. Try using <mesh filename="file://$(robot_description)/meshes/base.stl"/> instead.

edit flag offensive delete link more

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-06-25 08:50:09 -0600

Seen: 492 times

Last updated: Jun 30 '21