Giter VIP home page Giter VIP logo

cadrl-ros's Introduction

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

cadrl-ros's People

Contributors

jacenty00 avatar reykcs avatar

Watchers

 avatar

Forkers

jacenty00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.