ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In your CMakeLists.txt
:
add_executable(${PROJECT_NAME}_node src/lidar_motor_control.cpp)
Since your project name is "jimmy_lidar_motor_control", from:
project(jimmy_lidar_motor_control)
The node is going to be named "jimmy_lidar_motor_control_node", not "lidar_motor_control", which is why it's not found.
2 | No.2 Revision |
In your CMakeLists.txt
:
add_executable(${PROJECT_NAME}_node src/lidar_motor_control.cpp)
Since your project name is "jimmy_lidar_motor_control", from:
project(jimmy_lidar_motor_control)
The node is going to be named "jimmy_lidar_motor_control_node", not "lidar_motor_control", which is why it's not found.
Also, not sure where this comes from:
# NOTE: executable name and source file name should be the same!!!!
But that's totally false and wrong.