[ros-users] Problem launching pr2_dashboard and friends

Anand Atreya anand at atreya.us
Fri Aug 6 09:27:29 UTC 2010


Thanks, Ken.  It looks like the PYTHONPATH was the culprit.  Boxturtle's
roslib was first since the .bashrc was still loading boxturtle's setup.bash.

Is there a standard procedure for using cturtle (or some other distro) on a
robot with boxturtle installed as the default?  The /etc/ros/cturtle
directory is missing, and I know that's the proper way to get all the
necessary environment variables set.  Should that have been created as part
of a cturtle debian package?

Thanks.
-- Anand

On Thu, Aug 5, 2010 at 11:04 PM, Ken Conley <kwc at willowgarage.com> wrote:

> Hi Anand,
>
> What's your PYTHONPATH? Do you have two copies of roslib on it? What
> does roswtf output?
>
>  - Ken
>
> On Thu, Aug 5, 2010 at 10:45 PM, Anand Atreya <aatreya at stanford.edu>
> wrote:
> > I'm getting a Python error when I try to launch pr2_dashboard.
> Similarly,
> > and perhaps for a related reason, I'm also unable to use
> > pr2_tabletop_manipulation.launch to start the grasping pipeline.  The
> errors
> > I'm getting are below.  Any ideas what might be wrong?  I'm guessing it's
> > something simple, but I've been poking around for a while to no avail.
> >
> > I'm running the most recent Cturtle debs on our PR2.
> >
> > Thanks.
> > -- Anand
> >
> >
> > $ rosrun pr2_dashboard pr2_dashboard
> > Traceback (most recent call last):
> >   File
> > "/opt/ros/cturtle/stacks/pr2_gui/pr2_dashboard/scripts/pr2_dashboard",
> line
> > 50, in <module>
> >     import pr2_dashboard
> >   File
> >
> "/opt/ros/cturtle/stacks/pr2_gui/pr2_dashboard/src/pr2_dashboard/__init__.py",
> > line 1, in <module>
> >     from pr2_frame import *
> >   File
> >
> "/opt/ros/cturtle/stacks/pr2_gui/pr2_dashboard/src/pr2_dashboard/pr2_frame.py",
> > line 43, in <module>
> >     from robot_monitor.robot_monitor_panel import RobotMonitorPanel
> >   File
> >
> "/opt/ros/cturtle/stacks/diagnostics/robot_monitor/src/robot_monitor/robot_monitor_panel.py",
> > line 44, in <module>
> >     from diagnostic_msgs.msg import DiagnosticArray, DiagnosticStatus,
> > KeyValue
> >   File
> >
> "/opt/ros/cturtle/stacks/common_msgs/diagnostic_msgs/src/diagnostic_msgs/msg/__init__.py",
> > line 1, in <module>
> >     from _DiagnosticArray import *
> >   File
> >
> "/opt/ros/cturtle/stacks/common_msgs/diagnostic_msgs/src/diagnostic_msgs/msg/_DiagnosticArray.py",
> > line 311, in <module>
> >     _struct_I = roslib.message.struct_I
> > AttributeError: 'module' object has no attribute 'struct_I'
> >
> >
> >
> > $ roslaunch pr2_tabletop_manipulation_launch
> > pr2_tabletop_manipulation.launch
> > Traceback (most recent call last):
> >   File "/opt/ros/cturtle/ros/bin/roslaunch", line 2, in <module>
> >     from ros import roslaunch
> >   File "/opt/ros/boxturtle/ros/core/roslib/src/ros/__init__.py", line 63,
> in
> > __getattr__
> >     return __import__(name)
> >   File "/opt/ros/cturtle/ros/tools/roslaunch/src/roslaunch/__init__.py",
> > line 43, in <module>
> >     from roslaunch.config import ROSLaunchConfig
> >   File "/opt/ros/cturtle/ros/tools/roslaunch/src/roslaunch/config.py",
> line
> > 49, in <module>
> >     import roslaunch.loader
> >   File "/opt/ros/cturtle/ros/tools/roslaunch/src/roslaunch/loader.py",
> line
> > 45, in <module>
> >     from roslib.names import make_global_ns, ns_join, PRIV_NAME,
> > load_mappings, is_legal_name, canonicalize_name
> > ImportError: cannot import name canonicalize_name
> >
> >
> >
> >
> > _______________________________________________
> > ros-users mailing list
> > ros-users at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> >
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100806/280a4527/attachment-0003.html>


More information about the ros-users mailing list