Ask Your Question
0

IronPython and ROS

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

TiagoRibeiro gravatar image

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

ngrennan gravatar image

Breaking up several questions I asked in [http://answers.ros.org/question/45234/multiplatform-dotnet-ros-workflow-redistribution-issues/]

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/SimplePerceptionEffector.py
/opt/ros/fuerte/lib/python2.7/site-packages/ros_comm-1.8.12-py2.7.egg/rospy/topics.py:758: 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
^C

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

Comments

Does ipy respect the PYTHONPATH environment variable?

tfoote gravatar imagetfoote ( 2012-10-08 08:46:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

Doug Blank gravatar image

You can probably do something similar to:

import sys
sys.path.append(r"c:\path\to\ros")

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 239 times

Last updated: Jun 14 '13