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

Pausing and unpausing gazebo [closed]

asked 2015-06-19 21:55:36 -0600

AbdealiJK gravatar image

updated 2015-06-20 23:03:06 -0600

I need to be able to control hector_quadrotor (gazebo) using another one of my nodes.

What i exactly want :

  1. My node chooses a velocity for the quad to use
  2. My node tells hector_quadrotor to use this velocity using /cmd_vel
  3. My node tells hector_quadrotor to start simulating physics for 1 second and give the outcome of the final positions.
  4. After 1 second of simulation (may not be 1 second in real time) - hector_quadrotor pauses itself, and gives back the result of the step.
  5. My node reads the current positions, velocities, etc and chooses the next velocity it wants to set.
  6. Go back to step 2

I know of gazebo's services to pause and unpause physics - but I am unable to tell it to do it for a specific time.

I am using roscpp

Any help/direction of approach appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by ahendrix
close date 2015-06-21 03:27:19.211843

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-21 03:27:11 -0600

ahendrix gravatar image

This is a duplicate of , and the same answer there applies here: this should probably be a gazebo plugin, and you should ask about it on the gazebo forums.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-06-19 21:55:36 -0600

Seen: 5,799 times

Last updated: Jun 21 '15