Dependencies

Method 1: Docker

If you don’t have Docker installed you may want to check this tutorial.

Using git (or download the zip file) clone this repository into your preferable directory.

$ git clone https://github.com/verlab/hero_common.git

Access the folder hero_common, build the docker compose file:

$ cd hero_common/hero_common
$ docker-compose build ros1 # for ROS 1 noetic installation
$ docker-compose build # for ROS 2 foxy installation

This package it not fully compatible with ROS 2, but you can execute the package on ROS 1 instance, and use ros1_bridge which is a ROS 2 package that allow ROS 2 to interface with ROS 1 topics and services.

Method 2: Build from source

If you don’t have a ROS Workspace, you must download and configure it. Please, follow the instructions in http://wiki.ros.org/ROS/Installation and http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment.

  • Using git (or download the zip file) clone this repository into ROS Workspace (e.g. ~/catkin-ws). Select the properly branch given your ROS distro.
    $ cd ~/catkin_ws/src
    $ git clone --depth 1 --branch noetic-devel https://github.com/verlab/hero_common.git # select your ROS distro
    
  • Fixing package dependencies:
    $ cd ..
    $ rosdep install --from-paths src/hero_common --ignore-src -r -y
    
  • Compile your ROS workspace directory (e.g. ~/catkin-ws):
    $ cd ~/catkin_ws
    $ catkin_make # or catkin build
    $ source devel/setup.bash # Set the appropriate bash extension