ImportError: cannot import name 'Model_states' from 'gazebo_msgs.msg' (unknown location)

asked 2020-11-17 07:59:37 -0500

Harshal gravatar image

Hi, I am using Noetic with Gazebo 11. But I am facing this issue attachedimage description

[urdf_spawner-4] process has died [pid 23159, exit code 1, cmd /opt/ros/noetic/lib/gazebo_ros/spawn_model -urdf -model seven_dof_arm -param robot_description __name:=urdf_spawner __log:=/home/harshal/.ros/log/74e57a4a-28da-11eb-9fc2-03440c834df1/urdf_spawner-4.log].

this is spwan_model import rospy import sys import os import argparse import roslib import xml try: # Python 3.x from urllib.parse import urlsplit, SplitResult except ImportError: # Python 2.x from urlparse import urlsplit, SplitResult from gazebo_ros import gazebo_interface from gazebo_msgs.msg import Model_states from gazebo_msgs.srv import DeleteModel from std_srvs.srv import Empty from geometry_msgs.msg import Pose, Quaternion from tf.transformations import quaternion_from_euler

Can you help me to sort it out? It would so helpful

Thanks regards Harshal

edit retag flag offensive close merge delete


Hello, have you solved this problem? I also encountered the same problem, has been troubling me for a long time, do not know how to solve😓

ff32610 gravatar image ff32610  ( 2022-04-24 03:23:04 -0500 )edit