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

Revision history [back]

you should probably use colcon if you're using bouncy:

colcon build --packages-select awesome_library fantastic_node

you should probably use colcon if you're using bouncy:

colcon build --packages-select awesome_library fantastic_node

Edit: upon further review, I see you're linking to ${catkin_LIBRARIES}, which you probably shouldn't be doing.

In my ports, I usually do a

set(req_deps
  "rclcpp"
  # other libs
)

then, in lieu of ${catkin_LIBRARIES}, I would do this:

ament_auto_find_build_dependencies(REQUIRED ${req_deps})

and this

ament_auto_add_library(awesomeness src/aswesome.cpp)
ament_target_dependencies(awesomeness ${req_deps})

For an example of libraries, I'll point you to my openslam_gmapping port, and for a very minimal port (so you can see the whole diff), I'll point you to a port of rplidar_ros I did recently.

I'm sure I forgot something above, so let me know what it was. ;)