17 #ifndef AGXCONTROL_MEASUREMENTSENSOR_H
18 #define AGXCONTROL_MEASUREMENTSENSOR_H
52 ALL = MASS | MASSFLOW | VOLUME
137 void setEnableDataFilter(
bool enable);
140 bool getEnableDataFilter()
const;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
The geometry representation used by the collision detection engine.
This is a sensor class that can be attached to an geometry in the simulation.
agx::Real getTotalRigidBodyPackingFraction() const
Returns the total RigidBody volume inside the sensor volume.
agxControl::CalculateTotalRigidBodyDEMMassRef m_totalRigidBodyMass
void setMeasurementState(MeasurementState state)
Sets the MeasurementState which determines what should be recorded in the MeasurementSensor.
agx::Real getTotalRigidBodyMass() const
Returns the total RigidBody mass inside the sensor volume.
agx::Real getParticlePackingFraction() const
Returns the total particle volume inside the sensor volume.
MeasurementState getMeasurementState() const
Returns the MeasurementState that determines what should be recorded in the MeasurementSensor.
agx::Real getTotalParticleMassFlow() const
Returns the total particle mass flow inside the sensor volume.
void setEnableDataFilter(bool enable)
Set if the measurement sensor should use exponential filters to smooth data from the measurements.
agx::Real m_filterPeriodTime
agx::Real getTotalParticleVolume() const
Returns the total particle volume inside the sensor volume.
agxControl::CalculateTotalRigidBodyDEMMassFlowRef m_totalRigidBodyMassFlow
agx::Real getTotalRigidBodyMassFlow() const
Returns the total RigidBody mass flow inside the sensor volume.
agx::Real getTotalParticleMass() const
Returns the total particle mass inside the sensor volume.
static MeasurementSensorPtrVector findAll(const agxSDK::Simulation *simulation, const agx::Name &name)
Find all MeasurementSensors with given name.
agx::Real getValue(const agx::Name &operationIdentifier, bool useFiltered) const
Returns a value from a measurement operations with specified name identifier. Will return a filtered ...
agx::Real getTotalRigidBodyVolume() const
Returns the total RigidBody volume inside the sensor volume.
static MeasurementSensorPtrVector findAll(const agxSDK::Simulation *simulation)
Finds all MeasurementSensors in the given simulation.
MeasurementSensor(agxCollide::Geometry *geom, int priority)
Constructor that takes the geometry to couple the sensor too.
virtual ~MeasurementSensor()
Default destructor.
void initOperations()
Initializes and adds the internal operations to the simulation that the sensor is added to.
agx::Real getFilterSamplingTime() const
Get the discrete sampling time for the internal exponential filters.
agx::BitState< MeasurementState, agx::Int32 > MeasurementBitState
MeasurementBitState m_measurementState
OperationMap m_operationMap
MeasurementSensor(agxCollide::Geometry *geom)
Constructor that takes the geometry to couple the sensor too.
agxControl::VolumeCalculatorRef m_totalVolumeOperation
MeasurementState
Enumeration specifying what should be recorded in a measurement sensor, expressed as a bit field.
bool getEnableDataFilter() const
Get if the measurement sensor should use exponential filters to smooth data from the measurements.
static MeasurementSensor * find(const agxSDK::Simulation *simulation, const agx::Name &name)
void setFilterSamplingTime(agx::Real samplingTime)
Set the discrete sampling time for the internal exponential filters.
agxControl::RigidBodyDEMVolumeCalculatorRef m_totalRigidBodyVolume
void initFilters()
Initializes the value filters in the measurement operations.
void setFilterPeriodTime(agx::Real periodTime)
Set the period time for the internal exponential filters.
MeasurementSensor()
Default constructor.
MeasurementSensor(int priority)
Constructor that takes the priority of the internal contact sensors.
agx::Real getFilterPeriodTime() const
Returns the period time for the internal exponential filters.
agxControl::CalculateTotalMassFlowRef m_totalMassFlowOperation
agx::Real m_filterSamplingTime
agxControl::CalculateTotalMassRef m_totalMassOperation
void updateMeasurementOperationsFromBitState()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Representation of a name string.
Vector containing 'raw' data.
This namespace contains general operation and action classes which can be used to control a agxSDK::S...
MeasurementSensor::MeasurementState operator|(MeasurementSensor::MeasurementState lhs, MeasurementSensor::MeasurementState rhs)
agx::QuadraticProbingHashTable< agx::Name, agxControl::MeasurementSensorOperation * > OperationMap