gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
621 stars 251 forks source link

Docs: Add tutorial on how to start/pause simulator from CLI #2380

Closed Ryanf55 closed 3 weeks ago

Ryanf55 commented 2 months ago

Desired behavior

Add a new tutorial similar to reset that shows how to start/stop. Context: https://discord.com/channels/1077825543698927656/1080763334384697430/1232059825634934875

Alternatives considered

N/A

Implementation suggestion

gz sim -s shapes.sdf
gz service -s /world/shapes/control --reqtype gz.msgs.WorldControl --reptype gz.msgs.Boolean --timeout 3000 --req 'pause: false'
gz topic -e -t /stats -n 1
sim_time {
  sec: 2
  nsec: 807000000
}
real_time {
  sec: 2
  nsec: 824597858
}
iterations: 2807
real_time_factor: 0.99667211181863757
step_size {
  nsec: 1000000
}

Additional context

Please assign this to me. I'll write the tutorial.

Ryanf55 commented 2 months ago

I would like to create a gif like the other tutorial. Can the maintainers recommend a process to do that? Or, is it OK to do the tutorial without a gif. Otherwise, I have the content ready.

mjcarroll commented 2 months ago

I would like to create a gif like the other tutorial. Can the maintainers recommend a process to do that? Or, is it OK to do the tutorial without a gif. Otherwise, I have the content ready.

I don't know that we have a guide, but we have historically used https://en.wikipedia.org/wiki/Peek_(software) to record gifs on Linux.

Ryanf55 commented 2 months ago

Thanks. Which world is shown in other tutorial?