Common utility functions and algorithms for robotics work used by ARC & ARM labs and TRI.
For convenience of building, common_robotics_utilities is a ROS package which
supports ROS 2 Galactic and
newer ROS 2 distributions. Prior distributions of ROS 2 can be supported by
removing ROS 2 message printing support from
include/common_robotics_utilities/print.hpp. Most of this project can be built
entirely without ROS support, see the example of the
Drake project which builds this
subset using Bazel for both Linux and macOS platforms.
As provided, common_robotics_utilities should be built in a ROS 2 workspace:
mkdir -p ~/ws/src
cd ~/ws/src
git clone https://github.com/calderpg/common_robotics_utilities.gitFinally, use rosdep
to ensure all dependencies in the package.xml are satisfied:
cd ~/ws
rosdep install -i -y --from-path srcUse colcon:
For ROS 2 Galactic+
cd ~/ws
colcon build # the entire workspace
colcon build --packages-select common_robotics_utilities # the package onlyUse colcon:
For ROS 2 Galactic+
cd ~/ws
colcon test --event-handlers=console_direct+ # the entire workspace
colcon test --event-handlers=console_direct+ --packages-select common_robotics_utilities # the package only