ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Have you added the line 'target_link_libraries(toeminator_ros_brigde_node ${catkin_LIBRARIES})' to your CMakeLists.txt file?
2 | No.2 Revision |
Have you added the line 'target_link_libraries(toeminator_ros_brigde_node ${catkin_LIBRARIES})' to your CMakeLists.txt file?
Also, are you trying to compile all three source files to a single executable in the add_executable line? As written, it will generate a single executable call toeminator_ros_bridge_node. If you want to make three nodes, you will need three add_executable calls for example:
add_executable(ToeminatorROSBridge src/ToeminatorROSBridge.cpp) add_executable(RobotInterface src/RobotInterface.cpp) add_executable(NetworkInterface src/NetworkInterface.cpp)
you would also need to add a target_link_libraries line for each target.
3 | No.3 Revision |
Have you added the line 'target_link_libraries(toeminator_ros_brigde_node ${catkin_LIBRARIES})' to your CMakeLists.txt file?
Also, are you trying to compile all three source files to a single executable in the add_executable line? As written, it will generate a single executable call toeminator_ros_bridge_node. If you want to make three nodes, you will need three add_executable calls for example:
add_executable(ToeminatorROSBridge src/ToeminatorROSBridge.cpp) add_executable(RobotInterface src/RobotInterface.cpp) add_executable(NetworkInterface src/NetworkInterface.cpp)
you would also need to add a target_link_libraries line for each target.
4 | No.4 Revision |
Have you added the line 'target_link_libraries(toeminator_ros_brigde_node ${catkin_LIBRARIES})' to your CMakeLists.txt file?
Also, are you trying to compile all three source files to a single executable in the add_executable line? As written, it will generate a single executable call toeminator_ros_bridge_node. If you want to make three nodes, you will need three add_executable calls for example:
add_executable(ToeminatorROSBridge src/ToeminatorROSBridge.cpp)
add_executable(RobotInterface src/RobotInterface.cpp)
add_executable(NetworkInterface you would also need to add a target_link_libraries line for each target.