Robotics using Python - SciPy

January 21, 2017

Written with love by

 

Python is the programming language of choice from MieRobot team when it comes to intermediate and advanced robotics. We would hence blog on Python whenever we get a chance to help you all. It's however not the only choice and only a personal view from our side. We fell in love with Python while coding for SID2 and this seems to be a great love story (touch wood). 

 

In this blog we talk about Python packages specifically about SciPy. Scipy is a very common package used both in academics and industry for computational needs using python. Areas of mathematics such as machine learning and AI uses SciPy. We love using SciPy for Fourier transformations, linear algebra, signal processing and much more. So let's start.

 

We use SciPy mainly on Linux based Ubuntu version 16.x and to install simply make sure you have Python already installed. Please note that modern Ubuntu releases have Python inbuilt which you can see by typing python in terminal as- 

 

Once you are sure you have Python installed - please type the below from terminal.

 

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

 

 

This would show as below if everything is correct else you would need to sort out the errors or dependencies. This takes about 15-25 minutes depending on your laptop and internet speed. SciPy builds over NumPy and in Ubuntu the above command installs NumPy as well.

 

Once the installation finishes go to Terminal --> type Python. This will take you to Python command line. Here you type this two lines.

 

>> import numpy

>> print numpy.__version__

 

To check SciPy please type these two lines in Python. 

 

>> import scipy

>> print scipy.__version__

 

The tutorials for SciPy can be obtained from this link

Once you have installed these you are ready to go into the world of SciPy. 

 

 

 

 

 

 

Share on Facebook
Share on Twitter
Please reload

Please reload