17 #ifndef AGXCONTROL_MEASUREMENTSENSOR_H 18 #define AGXCONTROL_MEASUREMENTSENSOR_H 51 ALL = MASS | MASSFLOW | VOLUME
90 agx::Real getTotalParticleMassFlow()
const;
99 agx::Real getParticlePackingFraction()
const;
105 agx::Real getTotalRigidBodyMassFlow()
const;
108 agx::Real getTotalRigidBodyVolume()
const;
111 agx::Real getTotalRigidBodyPackingFraction()
const;
114 void setEnableDataFilter(
bool enable);
117 bool getEnableDataFilter()
const;
120 void setFilterPeriodTime(
agx::Real periodTime);
126 void setFilterSamplingTime(
agx::Real samplingTime);
138 void initOperations();
143 void updateMeasurementOperationsFromBitState();
MeasurementBitState m_measurementState
agxControl::CalculateTotalRigidBodyDEMMassFlowRef m_totalRigidBodyMassFlow
MeasurementSensor::MeasurementState operator|(MeasurementSensor::MeasurementState lhs, MeasurementSensor::MeasurementState rhs)
agx::BitState< MeasurementState, agx::Int32 > MeasurementBitState
agx::QuadraticProbingHashTable< agx::Name, agxControl::MeasurementSensorOperation * > OperationMap
void setEnableDataFilter(bool enable)
Set if the measurement sensor should use exponential filters to smooth data from the measurements...
#define AGXPHYSICS_EXPORT
agxControl::RigidBodyDEMVolumeCalculatorRef m_totalRigidBodyVolume
#define AGX_DECLARE_POINTER_TYPES(type)
agxControl::CalculateTotalMassRef m_totalMassOperation
Representation of a name string.
This is a sensor class that can be attached to an geometry in the simulation.
The geometry representation used by the collision detection engine.
agx::Real m_filterPeriodTime
OperationMap m_operationMap
This file defines a set of operations used internally by the measurement sensor to calculate differen...
MeasurementState
Enumeration specifying what should be recorded in a measurement sensor, expressed as a bit field...
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::Real m_filterSamplingTime
agxControl::CalculateTotalMassFlowRef m_totalMassFlowOperation
bool getEnableDataFilter() const
Get if the measurement sensor should use exponential filters to smooth data from the measurements...
agxControl::CalculateTotalRigidBodyDEMMassRef m_totalRigidBodyMass
agxControl::VolumeCalculatorRef m_totalVolumeOperation