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

How to set custom location for urdf files created from xacro with cmake?

asked 2015-11-17 04:51:59 -0600

Kirjain_ gravatar image

Hello all, I was following the tutorial here: http://wiki.ros.org/xacro#Building_fr... to automatically build urdf files from CMakeLists.txt, but I would additionally wish to create the files into a custom location, and could not make it work by myself... I tried setting the RUNTIME_OUTPUT_DIRECTORY but it did not have any effect. Furthermore, I don't think it is the way forward as I want the urdf files in a separate location and everything else built from the CMakeLists.txt in their respective directories. Is there a way to modify the aforementioned tutorial to create a custom directory for the urdf files?

Thank you for your time, A.K.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-25 01:42:37 -0600

130s gravatar image

updated 2020-11-25 02:00:34 -0600

The mentioned tutorial, as well as with the software, xacro, has been updated a lot since the OP's post. AFAICS the things asked are covered in the tutorial now.

automatically build urdf files from CMakeLists.txt, but I would additionally wish to create the files into a custom location, and could not make it work by myself... I tried setting the RUNTIME_OUTPUT_DIRECTORY but it did not have any effect.

Not sure what you exactly want to achieve but I assume you want URDF files to be installed in a designated path. The tutorial reads:

New in Jade: While this cmake code provides full control over the target name and build order, there is a conveniency macro too:

xacro_add_files(${xacro_files} TARGET media_files)

Next,

I don't think it is the way forward as I want the urdf files in a separate location and everything else built from the CMakeLists.txt in their respective directories. Is there a way to modify the aforementioned tutorial to create a custom directory for the urdf files?

Not sure what you mean...But I guess the cmake macro above allows you to install the URDF files into the "custom directory".

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-11-17 04:51:59 -0600

Seen: 423 times

Last updated: Nov 25 '20