ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I figured it out! - Cant remember the source though...
Firstly I used: catkin_create_pkg "your_package_name" move_base_msgs actionlib roscpp
(these are just the libs I used)
instead of: roscreate-pkg "your_package_name" move_base_msgs actionlib roscpp
. This game me a whole different looking CMakelist.txt.
Then, in the CMakelist.txt right below:
cmake_minimum_required(VERSION 3.0.2)
project(simple_navigation_goals)
I added:
add_executable("name of your executable" src/"name of your cpp".cpp )
target_link_libraries("name of your executable" ${catkin_LIBRARIES})
And then used: catkin_make
at the root of the catkin_ws workspace, instead of make
inside the new package workspace.
I hope it might help some of you out!