How to solve 'ImportError: No module named door_msgs.msg' ?
I followed PR2 Opens a Door tutorial.
when I run
hg clone https://kforge.ros.org/doors/hg
svn co https://code.ros.org/svn/wg-ros-pkg/stacks/motion_planning_common/trunk/mapping_msgs
svn co https://code.ros.org/svn/wg-ros-pkg/stacks/motion_planning_common/trunk/geometric_shapes_msgs
export ROBOT=sim
roslaunch pr2_doors_gazebo_demo pr2_doors_demo.launch
rosrun pr2_doors_executive trigger_opendoor.py
It says:
ira@ira-K42JP:~/code/ros/test$ rosrun pr2_doors_executive trigger_opendoor.py
Traceback (most recent call last):
File "/home/ira/code/ros/sam_gazebo/hg/pr2_doors_executive/scripts/trigger_opendoor.py", line 33, in <module>
import roslib; roslib.load_manifest('pr2_doors_executive')
File "/opt/ros/electric/ros/core/roslib/src/roslib/launcher.py", line 75, in load_manifest
sys.path = prefix + _generate_python_path(package_name, [], os.environ) + sys.path
File "/opt/ros/electric/ros/core/roslib/src/roslib/launcher.py", line 131, in _generate_python_path
raise roslib.packages.InvalidROSPkgException("While loading package '%s': %s"%(d.package, str(e)))
roslib.packages.InvalidROSPkgException: While loading package 'pr2_doors_actions': While loading package 'door_handle_detector': While loading package 'mapping_msgs': While loading package 'geometric_shapes_msgs': Cannot locate installation of package geometric_shapes_msgs: [rospack] couldn't find package [geometric_shapes_msgs]. ROS_ROOT[/opt/ros/electric/ros] ROS_PACKAGE_PATH[/home/ira/code/ros:/opt/ros/electric/stacks]
ira@ira-K42JP:~/code/ros/test$ rosrun pr2_doors_executive trigger_opendoor.py
Traceback (most recent call last):
File "/home/ira/code/ros/sam_gazebo/hg/pr2_doors_executive/scripts/trigger_opendoor.py", line 37, in <module>
from door_msgs.msg import DoorAction, DoorGoal, Door
ImportError: No module named door_msgs.msg
ira@ira-K42JP:~/code/ros/test$
How to solve it?
Thank you~