Ask Your Question

victorp's profile - activity

2013-08-02 01:37:12 -0600 received badge  Famous Question (source)
2013-07-08 05:50:52 -0600 received badge  Notable Question (source)
2013-07-07 22:43:14 -0600 received badge  Popular Question (source)
2013-07-07 21:05:32 -0600 received badge  Student (source)
2013-06-26 22:12:53 -0600 received badge  Organizer (source)
2013-06-26 22:08:11 -0600 asked a question Using pypy with ROS for better performance ?

How can I use pypy instead of the default python interpreter for a ROS node written in python ? I tried:

cd /path/to/node
pypy script/pioneer.py

But I'm getting an error:

Traceback (most recent call last):
  File "app_main.py", line 51, in run_toplevel
  File "scripts/pioneer.py", line 5, in <module>
    import roslib
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Also, changing the first line of the script to #!/usr/bin/pypy and using rosrun yields the same.

EDIT: OK, I added the missing directories to sys.path (namely /usr/lib/pymodules/python2.7) but now I'm getting another error:

ImportError: No module named _tf
2013-06-05 17:25:01 -0600 received badge  Famous Question (source)
2013-03-24 17:39:04 -0600 received badge  Famous Question (source)
2013-03-19 05:26:10 -0600 commented answer quaternions with python

Thanks, but I mean about the tf python api.

2013-03-18 22:52:47 -0600 commented answer quaternions with python

Where can one find documentation on these mysterious functions ? http://ros.org/doc/groovy/api/tf/html/python/ is quite... primitive.

2013-03-17 21:45:19 -0600 received badge  Notable Question (source)
2013-03-15 07:04:33 -0600 received badge  Popular Question (source)
2013-03-15 04:05:01 -0600 asked a question Difference between rosrun and directly launching an executable

What are the differences between :

rosrun mynode program

And :

cd /path/to/mynode
./program

Why is the first (I assume) preferred, and when is it required ?

2013-03-12 00:54:13 -0600 received badge  Famous Question (source)
2013-03-06 08:00:22 -0600 received badge  Notable Question (source)
2013-02-15 07:55:00 -0600 received badge  Nice Answer (source)
2013-02-15 07:23:26 -0600 received badge  Teacher (source)
2013-02-15 07:23:26 -0600 received badge  Self-Learner (source)
2013-02-15 04:55:07 -0600 received badge  Notable Question (source)
2013-02-14 22:35:49 -0600 commented question map_server

No. I was just trying to get things working.

2013-02-14 20:00:03 -0600 answered a question map_server

This is what happens when map_server cannot find the bitmap file. There was a typo in my yaml config file.

2013-02-14 17:11:20 -0600 received badge  Popular Question (source)
2013-02-14 04:06:24 -0600 received badge  Scholar (source)
2013-02-14 00:41:10 -0600 asked a question map_server

I'm trying to launch a map_server with a given map.yaml + bitmap, but nothing happens :

$ roscore &
[1] 12749
...
$ rosrun map_server map_server cave.yaml 
[ INFO] [1360845376.280636084]: Loading map from image "./bitmap/cave.png"
$ rostopic list
/rosout
/rosout_agg
$ rosservice list
/rosout/get_loggers
/rosout/set_logger_level

The map_server node doesn't appear to be running and doesn't show up in rqt_graph. What am I doing wrong ?

Cheers

edit: Here's the cave.yaml file.

image: bitmap/cave.png
resolution: 1
origin: [0.0, 0.0, 0.0]
occupied_thresh: 0.65
free_thresh: 0.196
negate: 0

edit2: ROS version is Groovy.

2013-02-10 20:38:43 -0600 received badge  Supporter (source)
2013-02-10 20:37:08 -0600 received badge  Popular Question (source)
2013-02-07 22:24:27 -0600 received badge  Editor (source)
2013-02-07 22:19:18 -0600 asked a question sbpl installation problem

Hi

I'm trying to install the sbpl package on Ubuntu 12.04. I installed ros-groovy-sbpl with apt-get but when I run :

$ rosmake sbpl_lattice_planner

I get the following output :

[ rosmake ] rosmake starting...                                                            
[ rosmake ] Packages requested are: ['sbpl_lattice_planner']                               
[ rosmake ] Logging to directory /home/<me>/.ros/rosmake/rosmake_output-20130208-110917
[ rosmake ] Expanded args ['sbpl_lattice_planner'] to:
[]                                  
[ rosmake ] WARNING: The following args could not be parsed as stacks or packages:   ['sbpl_lattice_planner']
[ rosmake ] ERROR: No arguments could be parsed into valid package or stack names.

I tried rosdep update and resourcing setup.bash already.

Thanks for any help.