16 #ifndef SURGSIM_FRAMEWORK_SAMPLINGMETRICBASE_H 17 #define SURGSIM_FRAMEWORK_SAMPLINGMETRICBASE_H 21 #include "SurgSim/Framework/Behavior.h" 22 #include "SurgSim/Framework/ObjectFactory.h" 65 void update(
double dt)
override;
71 void setTargetManagerType(
int targetManagerType);
73 int getTargetManagerType()
const override;
76 void setMaxNumberOfMeasurements(
size_t numberOfMeasurements);
79 size_t getMaxNumberOfMeasurements()
const;
82 size_t getCurrentNumberOfMeasurements()
const;
87 double getElapsedTime()
const;
90 virtual MeasurementsType getMeasurementValues();
94 bool doWakeUp()
override;
96 bool doInitialize()
override;
103 virtual bool canMeasure(
double dt);
111 virtual double performMeasurement(
double dt) = 0;
113 std::shared_ptr<SurgSim::Framework::Logger> m_logger;
117 MeasurementsType m_measurementValues;
118 int m_targetManagerType;
119 double m_elapsedTime;
120 size_t m_maxNumberOfMeasurements;
125 #endif // SURGSIM_FRAMEWORK_SAMPLINGMETRICBASE_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
std::pair< double, double > MeasurementEntryType
Type of the individual entries in the measurement data structure.
Definition: SamplingMetricBase.h:55
SamplingMetricBase provides a base class to support metric development.
Definition: SamplingMetricBase.h:45
Behaviors perform actions.
Definition: Behavior.h:40
std::deque< MeasurementEntryType > MeasurementsType
Type of the cumulative entries data structure.
Definition: SamplingMetricBase.h:63