gazebo_msgs.msg import * ImportError: No module named msg, while trying to roslaunch to psawn urdf robots

asked 2017-12-07 07:48:08 -0600

anwesha.khasnobish gravatar image

updated 2017-12-07 10:38:23 -0600

jayess gravatar image

I am trying to spawn an already built .urdf file using ros launch, according to the tutorial in http://gazebosim.org/tutorials?tut=ro...

I have getting the error:

 rosrun gazebo_ros spawn_model -file `rospack find cnbiros_wheelchair`/model/wheelchair.urdf -urdf -z 1 -model wheelchair
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/gazebo_ros/spawn_model", line 26, in <module>
    from gazebo_ros import gazebo_interface
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/gazebo_ros/gazebo_interface.py", line 9, in <module>
    from gazebo_msgs.msg import *
ImportError: No module named msg

I have already installed gazebo_msgs using sudo apt-get install ros-kinetic-gazebo-msgs

Please help to solve this.

edit retag flag offensive close merge delete

Comments

I also have the same error in Gazebo version 7.8.1 and ros-kinetic in Virtual Box with Ubuntu 16.04. Have anyone solved it?

Daria gravatar imageDaria ( 2018-01-31 13:59:14 -0600 )edit