Ask Your Question

Revision history [back]

click to hide/show revision 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.