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

Revision history [back]

click to hide/show revision 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.