RobotToolbox in python

624 views
Skip to first unread message

Adriano

unread,
Feb 18, 2011, 1:20:08 PM2/18/11
to Robotics Tool Box
Hi, I usually use robot toolbox in MatLab, but now I trying to use the
python version. How can I get started in it? Does have Anyone some
examples and how to run it??

Peter Corke

unread,
Feb 22, 2011, 5:44:57 AM2/22/11
to robotics...@googlegroups.com
Maybe have a look at the test functions.

Peter

> --
> You received this message because you are subscribed to the Google Groups "Robotics Tool Box" group.
> To post to this group, send an email to robotics...@googlegroups.com.
> To unsubscribe from this group, send email to robotics-tool-...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/robotics-tool-box?hl=en-GB.
>

Jesus Gonzalez

unread,
Feb 22, 2011, 3:46:58 PM2/22/11
to robotics...@googlegroups.com
Hi, 
it seems you have any problem with the import clauses, 
not with the toolbox itself, when trying to run from a file.

Does the import clause work in the shell / console?
This could give you some information.

Regards,

2011/2/22 Adriano <adrian...@gmail.com>
Peter, when I run " from robot import * " in python command line, I have this output:

**********************************************************************************
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from robot import *
in Quaternion
in transform
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "robot/__init__.py", line 25, in <module>
    from trplot import *
  File "robot/trplot.py", line 1, in <module>
    import matplotlib.axes3d as p3
ImportError: No module named axes3d

******************************************************************************

I am probably doing something wrong, but I really don't know what. Numpy, pylab, scipy and matplotlib are installed and I already tested it with some examples.
--
Adriano de Araújo Abreu Mourão
Graduando em Engenharia de Controle e Automação
Departamento de Eventos de Integração - GECA
Universidade Federal de Minas Gerais
Tel: 31 9208-0357
 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQMuBE0WKzoRCACPNMgWujuud1uJlW5VXolCHYv6dHpPq4FUogq0FqhmBGmnPZsE
lkn0tGmQTjhS/o2jO/B+YXcGNGwKEVfbx/+0iW09KYP4gLWsEkw3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GFQgCCQoLBBYCAwECHgECF4AACgkQ1wPwa4NxEnxg
ZgD9G/+9bE+N/5IUF06NxaGncHyzgZAbFDXrs0mALIWNkxkBAIo63Kmqmdu1gSew
rxGSpICLaE0pikVCu8VO9g/Qm5P2uQINBE0WKzoQCACAMfBINnfUPd7/U6st5V5u
8BiauD8mYWXWUS25lttynqJQ3aJu4IhZ7tVacv911DKD26biESdvQkkoS/dIouFo
ru1qzz1y8eeTdRU2vm6Z1m19wMzgFYtWogOq95Ttvm38QcW0TkNIbbDz3Eg471JD
951ZHJwMig/e9rzjH/O5LwOcJIJzkLAEY7IJMxTmzyj26Yj66wqEVI3ty0a9w8i3
nRbwkjUJEPZhoqyBMZaB9sBuZ8SKV0zJgN0i9bkhJmZ+IOseSEta3l4A1ntOilyp
SB2w8Al54IMGp5+8eH+b4LtHGZ46a4v2u48np0zvs8VfsMXDtHNN1ED8fQqnJKh3
AAUTB/0Tw389Rihe205XAGmnuuosPCHIN+aue8Els3QD2hsozxHMxM/aXFVPusZ6
uhenty19Pfi4rV683ppiCpPnafDkzAIpm7Earp0UtR/Z1NkTNB//eoctJwQ2ne5z
KgJ49KdyQACv5IspNJG9O0hs9KYWEfGlJfXyuR8CyO0ZJe/7rLc+R1RqFZa+AV89
g7qne+WEsqeIHqg3hrtxjz5Z9hTesEb/m/2gd70pL3n8xrhV6RlmsCYswe3iSbfY
u7yb4xTpnXS92adhGKYN1EXu1q0iLuMbfuDDmmuc9WUNGW9fN9uP09OGJ6pKlgYT
iCZvZqv21nre7PvEiy3HV8R2vLLtiGEEGBEIAAkFAk0WKzoCGwwACgkQ1wPwa4Nx
Enxe6wD8CQe/MeEQ1msRThnRIsGWOMUmuOg+WozDQgYy11vIoR4A/0IKFkKUWad1
ahcujYweqqYTlbWlQibSZzU9TBT/fMrE
=t1zj
-----END PGP PUBLIC KEY BLOCK-----

--
You received this message because you are subscribed to the Google Groups "Robotics Tool Box" group.
To post to this group, send an email to robotics...@googlegroups.com.
To unsubscribe from this group, send email to robotics-tool-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotics-tool-box?hl=en-GB.



--

Jesús María González  

Adriano

unread,
Feb 22, 2011, 7:54:44 PM2/22/11
to robotics...@googlegroups.com
Hi Gonzáles, thanks for help me. I replace the trplot.py first line

import matplotlib.axes3d as p3

for

import mpl_toolkits.mplot3d.axes3d as p3

and it works well. I use matplotlib 1.0.1. What version do you use?

Adriano

unread,
Feb 22, 2011, 1:29:27 PM2/22/11
to robotics...@googlegroups.com
Peter, when I run " from robot import * " in python command line, I have this output:

**********************************************************************************
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from robot import *
in Quaternion
in transform
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "robot/__init__.py", line 25, in <module>
    from trplot import *
  File "robot/trplot.py", line 1, in <module>
    import matplotlib.axes3d as p3
ImportError: No module named axes3d

******************************************************************************

I am probably doing something wrong, but I really don't know what. Numpy, pylab, scipy and matplotlib are installed and I already tested it with some examples.



On Tue, Feb 22, 2011 at 7:44 AM, Peter Corke <peter....@gmail.com> wrote:

Peter Corke

unread,
Feb 24, 2011, 7:50:26 AM2/24/11
to robotics...@googlegroups.com
It's been a while since I did this or used it. I plan to work on this
more this year, to bring it up to date with the new version of the
Matlab toolbox (coming soon!). A quick guess is that something has
changed within matplotlib, the axes3d stuff, which was always bleeding
edge. Comment it out and see what happens.

peter

vctralfon...@gmail.com

unread,
Feb 7, 2014, 2:21:36 PM2/7/14
to robotics...@googlegroups.com

vctralfon...@gmail.com

unread,
Feb 7, 2014, 2:25:12 PM2/7/14
to robotics...@googlegroups.com
excelente entrada, usted resolvio tambien mi problema, muchas gracias.
Reply all
Reply to author
Forward
0 new messages