hsnuhayato / rtm-ros-robotics

Automatically exported from code.google.com/p/rtm-ros-robotics
0 stars 0 forks source link

hrpsys_dashboard can't find pr2_dashbaord in .deb upon runtime #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    $ rosrun hrpsys_ros_bridge hrpsys_dashboard 
    /opt/ros/groovy/share/hrpsys_ros_bridge/scripts/hrpsys_dashboard:32: UserWarning: roslib.rosenv is deprecated, please use rospkg or rosgraph.rosenv
      from roslib import rosenv
    Traceback (most recent call last):
      File "/opt/ros/groovy/share/hrpsys_ros_bridge/scripts/hrpsys_dashboard", line 40, in <module>
    from pr2_dashboard.status_control import StatusControl
    ImportError: No module named pr2_dashboard.status_control

It's because catkin version of hrpsys_ros_bridge cannot depend on a dry package 
pr2_dashbaord (that is contained in a stack pr2_gui).

This mislinkage might not happen when running using source as long as pr2_gui 
is available.

Original issue reported on code.google.com by gm130s on 14 Sep 2013 at 11:30

GoogleCodeExporter commented 9 years ago
Last line is wrong; wet package can't depend on dry ones:

    This mislinkage might not happen when running using source as long as pr2_gui is available.

Building passes because the problematic file is a script.

Original comment by gm130s on 14 Sep 2013 at 11:32

GoogleCodeExporter commented 9 years ago
I'm not sure if I understand the problem correctly, I fixed in r5579, r5580 as 
follows. Please check if this fixed your problem

try:
  import pr2_dashboard
  roslib.packages.get_pkg_dir('pr2_dashboard')
except ImportError:
  print >> sys.stderr, ";;\n;; pr2_dashboard is not found\n;; please try\n;;  >> apt-get install ros-groovy-pr2-gui\n;; "
  exit()
except roslib.packages.InvalidROSPkgException:
  sys.path.append(roslib.packages.get_pkg_dir('pr2_dashboard')+"src/")

Original comment by kei.ok...@gmail.com on 20 Sep 2013 at 3:08

GoogleCodeExporter commented 9 years ago
Sorry that I didn't include an important fact: this particular issue only 
discusses catkin. 
Since in theory, only wet packages can be used in catkin world, there's no way 
pr2_dashboard (a dry pkg that still exists in Groovy) to be depended from wet 
pkgs. 

Only solution I can think of now:

- dry world: current implementation (up to r5585) should work. I think I tested 
already before.
- wet world: hrpsys_dashboard needs to be rewritten using only wet packages.

Original comment by gm130s on 20 Sep 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Yes, r5579 and r5580 are quick workaround until wet-based hrpsys_dashboard is 
out.

Original comment by kei.ok...@gmail.com on 20 Sep 2013 at 7:41

GoogleCodeExporter commented 9 years ago

Original comment by kei.ok...@gmail.com on 30 Jan 2014 at 11:09