Ask Your Question

# Revision history [back]

gazebo/pause_physics is an Empty service (no inputs or output arguments), so doesn't need its own service definition. See this section from the wiki page:

~/pause_physics (std_srvs/Empty)
Pause physics updates.

~/unpause_physics (std_srvs/Empty)
Resume physics updates.


Try this and see if it works:

from std_srvs.srv import Empty
pause_physics_client=rospy.ServiceProxy('/gazebo/pause_physics',Empty)


If you need it, gazebo/unpause_physics is also an Empty service.