ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello guys , solved this problem by myself. The problem was there are to messages.

I made the mistake with :

sub = rospy.Subscriber("/gazebo/ModelStates",ModelState,newModel)

the correct one is :

sub = rospy.Subscriber("/gazebo/model_states",ModelStates,newModel)

Fixing this solved the error and i can run my program now without any problems

click to hide/show revision 2
No.2 Revision

Hello guys , solved this problem by myself. The problem was there are to messages.

I made the mistake with :

sub = rospy.Subscriber("/gazebo/ModelStates",ModelState,newModel)

rospy.Subscriber("/gazebo/ModelStates",ModelState,newModel)

the correct one is :

sub = rospy.Subscriber("/gazebo/model_states",ModelStates,newModel)

rospy.Subscriber("/gazebo/model_states",ModelStates,newModel)

Fixing this solved the error and i can run my program now without any problems