ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I may be wrong but I believe catkin cannot compile code that is either 1) located outside of your specified source directory, or 2) not located inside a catkin package.
Your best chance might be to create a minimal catkin package inside your catkin_ws/src/
and put your external code in there. Assuming that your external code uses cmake and already has a CMakeLists.txt, there should only be a few catkin-specific lines to add in there + a package.xml
2 | No.2 Revision |
I may be wrong but I believe catkin cannot compile code that is either 1) located outside of your specified source directory, or 2) not located inside a catkin package.
Your best chance might be to create a minimal catkin package inside your catkin_ws/src/
and put your external code in there. Assuming that your external code uses cmake and already has a CMakeLists.txt, there should only be a few catkin-specific lines to add in there + a package.xml
Also, is your directory structure
- catkin_ws
src
my_ROS_RTT_package
my_ROS_RTT_component1
my_ROS_RTT_component2
or
- catkin_ws
src
my_ROS_RTT_package
my_ROS_RTT_component1
my_ROS_RTT_component2
?
3 | No.3 Revision |
I may be wrong but I believe catkin cannot compile code that is either 1) located outside of your specified source directory, or 2) not located inside a catkin package.
Your best chance might be to create a minimal catkin package inside your catkin_ws/src/
and put your external code in there. Assuming that your external code uses cmake and already has a CMakeLists.txt, there should only be a few catkin-specific lines to add in there + a package.xml
Also, is Edit: A small comment : your directory structure question implies that you may want to use catkin as the common meta-build system for large projects containing a significant part of non-ROS code. An alternative may be to use another system (e.g pure cmake) instead as the common denominator, and call catkin build commands from cmake scripts for the ROS parts of your codebase.
- catkin_ws
src
my_ROS_RTT_package
my_ROS_RTT_component1
my_ROS_RTT_component2
or
- catkin_ws
src
my_ROS_RTT_package
my_ROS_RTT_component1
my_ROS_RTT_component2
?