ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
As of October 2020, probably a better solution instead of parsing the $CMAKE_PREFIX_PATH
and obtain the last* sourced path is to use catkin tools's catkin locate
command. The output of the command outputs the currently sourced catkin workspace, further there are additional options to locate the build, src, devel directories and more. Look here for more info.