Practical Robotics - ashBabu/Utilities GitHub Wiki
Instructions for installations of various packages. (These are for linux based systems)
Why Linux!
-
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
- Open
interpreter settings
(also available inFile-->Settings
)

- Go to
Show All

- Click on '+' button

- 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)

A useful link explaining virtual environment
-
Install required libraries using PyCharm itself
- For example Tensorflow can be installed by going to the Project interpreter and click the '+' button
- For example Tensorflow can be installed by going to the Project interpreter and click the '+' button

- Search for Tensorflow and click install package

(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)
- Open terminal (
Ctrl+Alt+T
) and typeroscore
. If installation is successfull, you get the following
- Open terminal (

-
Install MoveIt and Franka Emikas Panda robot packages
-
sudo apt install ros-<distro>-moveit
where<distro>
is your ros distribution (<kinetc>
or<melodic>
or something new) -
Install Franka-ROS
sudo apt install ros-<distro>-libfranka ros-<distro>-franka-ros
(Read about Binary & Source installation)- 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
-