[ros-users] rospy and python 3.0

Severin Lemaignan severin.lemaignan at laas.fr
Fri Nov 26 16:50:08 UTC 2010


Hello!

We are currently in the same situation as Ruben, trying to run ROS from 
Blender 2.5 (for the MORSE simulation project - morse.openrobots.org ), 
and thus, with Python 3.1.

We have started an effort to port rospy to Python 3.1 and I'm happy to 
annonce that this code snippet now runs on both Python 2.x and Python 3:

 > import roslib; roslib.load_manifest('morse')
 > import rospy
 >
 > print("Hello world!")

:-) Don't laugh, it was 3 hours of work for 2 people! ;-)

We will continue the effort in the next few days.
If you want to contribute/test, you can simply add these two lines to 
your .rosinstall (but be warned: for now, even roscore won't start):

- git: {local-name: ros/core/rospy, uri: 
'git://code.in.tum.de/git/rospy3.git'}
- git: {local-name: ros/core/roslib, uri: 
'git://code.in.tum.de/git/rospy3-roslib.git'}

(attention: our work is currently based on cturtle, which is not good. 
We must rebase it on the trunk...)

Severin

-- 
          Séverin Lemaignan - lemaigna at in.tum.de
  [00]    PhD student on Cognitive Robotics
/|__|\   Technische Uni München - IAS group / LAAS-CNRS - RIS group
   ''     +498928917780 / +33561337844
          http://www.laas.fr/~slemaign



More information about the ros-users mailing list