ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

IronPython and ROS

asked 2012-10-07 10:13:26 -0500

TiagoRibeiro gravatar image

updated 2014-01-28 17:13:52 -0500

ngrennan gravatar image

Breaking up several questions I asked in []

So issue #1: I have failed to load roslib into IronPython. Does anyone know if this can be solved? Here is my execution. I first run it with python, so you see it works, things are set up correctly. However, with ipy it doesn't find roslib.

Tiago-Ribeiros-MacBook-Pro:~ tiagoribeiro$ roscd SimplePerception/
Tiago-Ribeiros-MacBook-Pro:SimplePerception tiagoribeiro$ python nodes/
/opt/ros/fuerte/lib/python2.7/site-packages/ros_comm-1.8.12-py2.7.egg/rospy/ UserWarning: '\Perception\SimplePerception' is not a legal ROS graph resource name. This may cause problems with other ROS tools
[INFO] [WallTime: 1349574242.992873] hello world 1349574242.99
[INFO] [WallTime: 1349574243.994326] hello world 1349574243.99

Tiago-Ribeiros-MacBook-Pro:SimplePerception tiagoribeiro$ ipy nodes/
Traceback (most recent call last):
File "nodes/", line 5, in <module>
ImportError: No module named roslib
Tiago-Ribeiros-MacBook-Pro:SimplePerception tiagoribeiro$
edit retag flag offensive close merge delete


Does ipy respect the PYTHONPATH environment variable?

tfoote gravatar image tfoote  ( 2012-10-08 08:46:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-14 00:42:54 -0500

Doug Blank gravatar image

You can probably do something similar to:

import sys

But you could also use the roscs (ROS C#) library directly. We use the rosjava library, by turning it into DLLs through IKVM. We use rosjava because it doesn't have any other dependencies, whereas roscs depends on Ubuntu.

edit flag offensive delete link more

Question Tools


Asked: 2012-10-07 10:13:26 -0500

Seen: 375 times

Last updated: Jun 14 '13