ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Have you added the line 'target_link_libraries(toeminator_ros_brigde_node ${catkin_LIBRARIES})' to your CMakeLists.txt file?

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.

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.

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)

src/NetworkInterface.cpp)

you would also need to add a target_link_libraries line for each target.