Find urdf file after catkin_make xacro_add_files macro
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?
Not so nice: run
catkin_find --share $pkg_name
as asubprocess
.