Ros2, Robotics, AI, Computer Vision, Robots.
CMakeLists.txt, add_executable(publisher src/pub.cpp) ament_target_dependencies(publisher rclcpp) add_executable(subscriber src/sub.cpp) #change ament_target_dependencies(subscriber rclcpp) #change install(TARGETS publisher subscriber # Change DESTINATION lib/${PROJECT_NAME} ) Run the colcon build