Install
Preparing things (Native)
Install ROS Melodic on Ubuntu 18.04 or Noetic on Ubuntu 20.04.
This installation assumes that the ROS is already installed along with the 2D navigation stack. Otherwise, please install them before continuing to the next steps. For ROS Noetic, follow these:
Install the requirements:
sudo apt install python-pip python-catkin-tools python-is-python3
Clone the git repository:
git clone https://github.com/LAAS-HRI/CoHAN2.0.git -b master ~ cd ~/CoHAN2.0
Install the dependencies using rosdep:
rosdep install --from-paths src --ignore-src --rosdistro=noetic -y
Follow the build instructions below.
Using Docker
Clone the git repository:
git clone https://github.com/LAAS-HRI/CoHAN2.0.git -b master ~ cd ~/CoHAN2.0
Navigate to docker directory in the folder and build the image. For example:
cd ~/CoHAN2.0/docker/noetic ./build-docker.sh
Activate the image and do the steps for building. For example:
source ~/CoHAN2.0/docker/noetic/run-docker.sh
Building Cohan and Running Examples
Everything will be taken care of by the script. Just run compile.sh script:
./compile.sh
Once it is built, you need to source setup.bash file to use these packages along with other ROS packages inside the system:
source devel/setup.bash
Now you are set to run use it. You can run some examples as:
roslaunch cohan_sim_navigation cohan_sim_pr2.launch
If everything is installed correctly, you should see rviz opening and you can move the robot by giving it a goal (using 2D Nav Goal tool).