Practical Robotics - ashBabu/Utilities GitHub Wiki

Pre-requisites

Instructions for installations of various packages. (These are for linux based systems)

Why Linux!

  • spacecraftRobot



  • Install pip

    sudo apt-get update sudo apt install python3-pip

  • Install PyCharm IDE for Python

sudo snap install pycharm-community

It is recommended that you configure a virtual environment for all your coding. This will help in preventing the system environment from breaking when using different packages. There are several ways to make a virtual environment. My preferred way is by using PyCharm itself which is shown below

  1. Open interpreter settings (also available in File-->Settings)

spacecraftRobot

  1. Go to Show All

spacecraftRobot

  1. Click on '+' button

spacecraftRobot

  1. Complete the virtual env setup by showing the path and entering the name. You can also configure base interpreter as the latest Python (Here python 3.6)

spacecraftRobot

A useful link explaining virtual environment

  • Install required libraries using PyCharm itself

    1. For example Tensorflow can be installed by going to the Project interpreter and click the '+' button

spacecraftRobot

  1. Search for Tensorflow and click install package

spacecraftRobot

(Alternatively this can be done by
*. Open Terminal ``` Ctrl+Alt+T```

*. ``` source path_to_venv/bin/activate ```

*. ``` pip install tensorflow ```)

Note: If there are multiple library requirements (as often is the case), use pip install -r /path/to/requirements.txt to install all the libraries in one go. The requirements.txt can be configured as follows as shown here

  ###### Requirements without Version Specifiers ######
numpy
yaml
beautifulsoup4
tensorflow

###### Requirements with Version Specifiers ######
tensorflow ==1.15             # Version Matching. Must be version 0.6.1
keyring >= 4.1.1            # Minimum version 4.1.1
coverage != 3.5             # Version Exclusion. Anything except version 3.5
Mopidy-Dirble ~= 1.1        # Compatible release. Same as >= 1.1, == 1.*

pip install gym

  • Install ROS.

    Until recently, ROS used Python 2.x. Since Python 2.x is deprecated now, ROS is moving to Python 3.x. If this is available, install Python 3 compatible ROS. Check here (Installation instructions of ROS with Python3 is available here)

    1. Open terminal (Ctrl+Alt+T) and type roscore. If installation is successfull, you get the following
spacecraftRobot
  • Install MoveIt and Franka Emikas Panda robot packages

    1. sudo apt install ros-<distro>-moveit where <distro> is your ros distribution (<kinetc> or <melodic> or something new)

    2. MoveIt tutorials

    3. Install Franka-ROS

    sudo apt install ros-<distro>-libfranka ros-<distro>-franka-ros (Read about Binary & Source installation)

    1. If everything is ready, you should run the following command in a terminal window roslaunch panda_moveit_config demo.launch. This will launch the following
    spacecraftRobot

⚠️ **GitHub.com Fallback** ⚠️