Get realtimefactor through plugin (programmatically)
Hi,
I've been trying to get the current realtime factor programmatically. I tried getting it through a world plugin but cannot find a get function, only for real time and Sim time. I know it's inside the /diagnostics topic and also am trying to subscribe to that topic through a plugin but it seems a little unhandy this way. Is there another method to get the real time factor programmatically?
OK so my second method worked by creating a world plugin that subscribes to the gz topic
~/diagnostics
and then publish this to a ROS topic but this obviously isn't ideal. Still interested in a solution where I can get it from for instance the WorldPtr somehow.