-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Gazebo 9] Publish performance metrics (#2819)
Signed-off-by: ahcorde <ahcorde@gmail.com> Signed-off-by: Ian Chen <ichen@osrfoundation.org> Co-authored-by: Ian Chen <ichen@osrfoundation.org>
- Loading branch information
Showing
3 changed files
with
221 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
syntax = "proto2"; | ||
package gazebo.msgs; | ||
|
||
/// \ingroup gazebo_msgs | ||
/// \interface PerformanceMetrics | ||
/// \brief A message for run-time simulation performance metrics | ||
|
||
message PerformanceMetrics | ||
{ | ||
/// \brief This message contains information about the performance of | ||
/// each sensor in the world. | ||
/// If the sensor is a camera then it will publish the frame per second (fps). | ||
message PerformanceSensorMetrics | ||
{ | ||
/// \brief Sensor name | ||
required string name = 1; | ||
|
||
/// \brief The update rate of the sensor in real time. | ||
required double real_update_rate = 2; | ||
|
||
/// \brief The update rate of the sensor in simulation time. | ||
required double sim_update_rate = 3; | ||
|
||
/// \brief If the sensor is a camera then this field should be filled | ||
/// with average fps in real time. | ||
optional double fps = 4; | ||
} | ||
|
||
/// max_step_size x real_time_update_rate sets an upper bound of | ||
/// real_time_factor. If real_time_factor < 1 the simulation is | ||
/// slower than real time. | ||
required double real_time_factor = 1[default=0.0]; | ||
|
||
/// Each sensor in the world will create a PerformanceSensorMetrics | ||
/// message publishing information about the performance. | ||
repeated PerformanceSensorMetrics sensor = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters