Skip to content

Arena-Rosnav/cadrl-ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cadrl-ros

Installation

For CADRL, you need to create a virtual environment environment with python 3.6. and tensorflow 1.4.
We recommend using virtualenv & virtualenvwrapper.

  1. Install virtual environment and wrapper (as root or admin! with sudo) on your local pc (without conda activated. Deactivate conda env, if you have one active)
sudo apt install python3-pip
sudo pip3 install --upgrade pip
sudo pip3 install virtualenv
sudo pip3 install virtualenvwrapper
which virtualenv   # should output /usr/local/bin/virtualenv
  1. Create venv folder inside your home directory
cd $HOME && mkdir python_env   # create a venv folder in your home directory
  1. Add exports into your .bashrc or .zshrc:
echo "export WORKON_HOME=$HOME/python_env   #path to your venv folder
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3   #path to your python3
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source /usr/local/bin/virtualenvwrapper.sh" >> ~/.zshrc # Change to .bashrc if using bash
  1. If you are on Ubuntu 20.04, install python3.6-dev
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6-dev
sudo apt-get install python3.6-distutils

Note: You might need to restart your terminal at this point.

  1. Create virtual environment with python 3.6
source ~/.zshrc # Change to .bashrc if using bash
mkvirtualenv --python=python3.6 cadrl
  1. Install packages inside your venv (venv always activated!):
pip install --extra-index-url https://rospypi.github.io/simple/ rospy rosbag tf tf2_ros --ignore-installed
pip install pyyaml catkin_pkg gym netifaces pathlib filelock pyqt5 mpi4py lxml scipy defusedxml matplotlib tensorflow==1.4

Usage

Remember to activate the python3.6 virtual environment, before launching arena-bench.
If you followed the installation guide, you can do that by typing:

workon cadrl

This planner can be chosen using the local_planner argument like so:

roslaunch arena_bringup start_arena.launch local_planner:=cadrl # Make sure that your virtual env/poetry is activated

For more details regarding usage, please refer to our documentation

Original work

For more information about CADRL, please refer to the original publication paper

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published