When running simulations, it would be nice to add statistics collection to mock_components/GenericSystem. For example:
- What is the average rate of incoming commands?
- What is the average latency (from message stamp to message received)?
- What is the standard deviation of time between messages?
I think it would also be nice to add a service call to trigger this data collection so it doesn't begin until the user is ready.
I don't have any immediate need for this but it would have been nice on a few projects in the past.
Bonus if this can be done on hardware as well without breaking realtime constraints.