ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The message type is gazebo_msgs::SetModelState
, not gazebo_msgs::setmodelstate
. Also, the service name is probably "/gazebo/set_model_state".
Next, what type is "modelstate
"?
Additionally, you call the service twice. Each instance of client.call()
calls the service. You probably want to delete the first call that is not being checked for completion.