Find urdf file after catkin_make xacro_add_files macro

asked 2018-02-15 14:45:20 -0500

johnw gravatar image

I am using the CMake

xacro_add_files(urdf/my_robot.xacro OUTPUT urdf/my_robot.urdf INORDER INSTALL)

macro to generate a urdf file using catkin_make. After the file is generated, I need to find it using Python. The file is generated under the ~/catkin_ws/devel/share/<package_name>/urdf directory. How can I find this file using rospkg or catkin Python modules?

edit retag flag offensive close merge delete


Not so nice: run catkin_find --share $pkg_name as a subprocess.

gvdhoorn gravatar imagegvdhoorn ( 2018-02-15 15:20:19 -0500 )edit