17 #ifndef AGXCONTROL_MEASUREMENT_OPERATIONS_H
18 #define AGXCONTROL_MEASUREMENT_OPERATIONS_H
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
agx::Real m_totalMassFlow
agx::Real getTotalMassFlow() const
Returns the latest calculated mass flow from the operation (kg/s).
virtual ~CalculateTotalMassFlow()
Default destructor.
CalculateTotalMassFlow(const agx::Name &name=agx::Name())
Default constructor.
virtual agx::Real getValue() const override
Gets a raw value from the subclass.
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
agx::Real getTotalMass() const
Returns the latest calculated mass from the operation.
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
virtual agx::Real getValue() const override
Gets a raw value from the subclass.
CalculateTotalMass(const agx::Name &name=agx::Name())
Default constructor.
virtual ~CalculateTotalMass()
Default destructor.
agx::Real getTotalMassFlow() const
Returns the latest calculated mass flow from the operation (kg/s).
virtual agx::Real getValue() const override
Gets a raw value from the subclass.
virtual ~CalculateTotalRigidBodyDEMMassFlow()
Default destructor.
CalculateTotalRigidBodyDEMMassFlow(const agx::Name &name=agx::Name())
Default constructor.
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
agx::Real m_totalMassFlow
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
CalculateTotalRigidBodyDEMMass(const agx::Name &name=agx::Name())
Default constructor.
virtual ~CalculateTotalRigidBodyDEMMass()
Default destructor.
agx::Real getTotalMass() const
Returns the latest calculated mass from the operation.
virtual agx::Real getValue() const override
Gets a raw value from the subclass.
Virtual base class of a data filter for data smoothing.
agx::Real getFilteredValue() const
Returns the current filtered value.
DataFilter(agx::Real samplingTime)
Default constructor.
virtual bool setSamplingTime(agx::Real samplingTime)
Set the discrete sampling time of the filter.
virtual ~DataFilter()
Default destructor.
agx::Real m_filteredValue
virtual void filterValue(agx::Real inValue)=0
Returns the a filtered signal given a value supplied to the filter.
This is a sensor class that can be attached to an geometry in the simulation.
Exponential filter that smoothes values in the form: x_filter(t) = a * x_filter(t-1) + ( 1 - a ) * x_...
ExponentialFilter(agx::Real samplingTime, agx::Real periodTime)
Constructor for the Exponential filter.
void filterValue(agx::Real inValue) override
Filters the value from a given thing.
bool setPeriodTime(agx::Real periodTime)
Set the period time.
virtual ~ExponentialFilter()
Default Destructor.
bool setSamplingTime(agx::Real samplingTime) override
Set sampling time.
DataFilter * getFilter()
Gets the current active filter in the operation.
virtual agx::Real getValue() const =0
Gets a raw value from the subclass.
agxControl::DataFilterRef m_filter
virtual void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override=0
Post function that will be triggered for the event after all the contacts have handled in the operati...
virtual ~MeasurementSensorOperation()
Default destructor.
void updateFilter()
Updates the internal filter.
void setFilter(DataFilter *filter)
Set a filter on the operation that handles the values given.
agx::Real getRawValue() const
Returns the latest calculated value from the operation.
MeasurementSensorOperation(const agx::Name &name=agx::Name())
Default constructor.
agx::Real getFilteredValue() const
Returns the latest calculated value from the operation. Returns the raw value if no filter is attache...
RigidBodyDEMVolumeCalculator(const agx::Name &name=agx::Name())
Default constructor.
virtual ~RigidBodyDEMVolumeCalculator()
Default destructor.
agx::Real getTotalVolume() const
Returns the latest calculated volume from the operation.
agx::Real m_packingFraction
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
agx::Real getPackingFractionInSensor() const
Returns the latest calculated packing fraction from the operation.
virtual agx::Real getValue() const override
Gets a raw value from the subclass.
A specific type of sensor event that triggers a change in the simulation when activated by a contact.
VolumeCalculator(const agx::Name &name=agx::Name())
Default constructor.
agx::Real getPackingFractionInSensor() const
Returns the latest calculated packing fraction from the operation.
virtual agx::Real getValue() const override
Gets a raw value from the subclass.
agx::Real m_packingFraction
agx::Real getTotalVolume() const
Returns the latest calculated volume from the operation.
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
virtual ~VolumeCalculator()
Default destructor.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Representation of a name string.
Base class providing referencing counted objects.
This namespace contains general operation and action classes which can be used to control a agxSDK::S...