Gazebo | Ignition | Community
Ask Your Question

csano's profile - activity

2017-07-31 13:33:02 -0600 asked a question See-through roof model (only one way)

See-through roof model (only one way) I want to simulate a house robot with a camera. For now, assuming that the house e

2017-07-12 12:28:32 -0600 received badge  Editor (source)
2017-07-12 12:28:32 -0600 edited question Interpolating the "in-betweens" of /clock ?

Interpolating the "in-betweens" of /clock ? Hello, I am running a simulation where gazebo is hooked up to our robot sof

2017-07-12 12:26:55 -0600 asked a question Interpolating the "in-betweens" of /clock ?

Interpolating the "in-betweens" of /clock ? Hello, I am running a simulation where gazebo is hooked up to our robot sof

2017-07-07 08:10:43 -0600 received badge  Enthusiast
2017-07-05 05:54:06 -0600 received badge  Famous Question (source)
2017-06-29 07:02:14 -0600 received badge  Notable Question (source)
2017-06-28 13:29:49 -0600 commented answer Get Real Time Factor (RTF) Programmatically?

okay cool! Thanks for the references. So to future readers, it seems like the algorithm in gz stats is to just keep twen

2017-06-28 08:32:31 -0600 commented answer Get Real Time Factor (RTF) Programmatically?

okay cool! Thanks for the references. So to future readers, it seems like the algorithm in gz stats is to just keep twen

2017-06-28 08:31:06 -0600 marked best answer Get Real Time Factor (RTF) Programmatically?

Hello,

I've been trying to get the GUI Real Time Factor programmatically, and I had various issues trying to do so. Here were a couple things I found from looking around that did not work:

  1. Subscribing to ~/diagnostics: the rtf given by diagnostics seems to be just simtime/realtime so it is the average RTF, not the current RTF. For example, having the simulator at 0.5x for a couple minutes and then putting it to 3x will still give an RTF of 0.5x, slowly converging to 3x. So this is not an option.
  2. Subscribing to ~/world_stats: had no info about rtf; useless
  3. Gz stats. This thing never stops so I don't think I can call it with popen. One dirty workaround I did (that works but not good enough) is popen("gz stats -p -d 1"), which makes gz stats run for 1 second. Ideally, I want a command line arg that'll make gz stat show one line. I tried decimal seconds but those seem to round down (-d 0.5 would just print nothing)
  4. Manually calculating the RTF. I really don't want to do this unless I know the exact formula the Gazebo GUI uses to calculate the RTF. I don't know how long it polls for.

So tl;dr, I either would want to have a way to run gz stats for one line (and not for one second), the exact algorithm/formula that the Gazebo GUI uses to calculate RTF, or any things I am missing (I did look through all Gazebo topics that were published, but I might be missing some compilation flag for extra topics).

Any suggestions? Thanks!

2017-06-28 08:31:06 -0600 received badge  Scholar (source)
2017-06-28 08:27:04 -0600 received badge  Popular Question (source)
2017-06-27 11:34:38 -0600 asked a question Get Real Time Factor (RTF) Programmatically?

Get Real Time Factor (RTF) Programmatically? Hello, I've been trying to get the GUI Real Time Factor programmatically,