ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Looking at your CMakeLists.txt, you've named your executables ros_aruco
and subpose
. The correct way to run them is with:
rosrun ros_programme ros_aruco
Or
rosrun ros_programme subpose
The relevant lines in your CMakeLists.txt that set these names are:
add_executable(ros_aruco src/ros_aruco.cpp)
add_executable(subpose src/subpose.cpp)
2 | No.2 Revision |
Looking at your CMakeLists.txt, you've named your executables ros_aruco
and subpose
. The correct way to run them is with:
rosrun ros_programme ros_aruco
Or
rosrun ros_programme subpose
The relevant lines in your CMakeLists.txt that set these names are:
add_executable(ros_aruco src/ros_aruco.cpp)
add_executable(subpose src/subpose.cpp)
I would also expect the final binaries to be generated into devel/lib/ros_aruco rather than build/ros_aruco; are you passing any extra flags to catkin_make that might be changing this behavior?
3 | No.3 Revision |
EDIT
The final solution to this was to make sure to call catkin_package()
in the CMakeLists.txt, and to make sure to call it before any add_executable()
or add_library()
calls.
Original answer
Looking at your CMakeLists.txt, you've named your executables ros_aruco
and subpose
. The correct way to run them is with:
rosrun ros_programme ros_aruco
Or
rosrun ros_programme subpose
The relevant lines in your CMakeLists.txt that set these names are:
add_executable(ros_aruco src/ros_aruco.cpp)
add_executable(subpose src/subpose.cpp)
I would also expect the final binaries to be generated into devel/lib/ros_aruco rather than build/ros_aruco; are you passing any extra flags to catkin_make that might be changing this behavior?