16 #ifndef SURGSIM_DEVICES_DEVICEFILTERS_FORCESCALE_H 17 #define SURGSIM_DEVICES_DEVICEFILTERS_FORCESCALE_H 19 #include <boost/thread/mutex.hpp> 29 SURGSIM_STATIC_REGISTRATION(ForceScale);
70 #endif // SURGSIM_DEVICES_DEVICEFILTERS_FORCESCALE_H Definition: CompoundShapeToGraphics.cpp:29
A device filter can be connected between a device and the InputConsumerInterface (e.g., InputComponent) and/or the OutputProducerInterface (e.g., OutputComponent), and can alter the data being passed from/to the device.
Definition: DeviceFilter.h:37
ForceScale(const std::string &name)
Constructor.
Definition: ForceScale.cpp:32
SURGSIM_CLASSNAME(SurgSim::Devices::ForceScale)
double m_torqueScale
The scaling factor applied to each direction of the torque.
Definition: ForceScale.h:64
An output device filter that scales forces and/or torques.
Definition: ForceScale.h:36
A collection of NamedData objects.
Definition: DataGroup.h:68
boost::mutex m_mutex
The mutex that protects the scaling factors.
Definition: ForceScale.h:58
void setTorqueScale(double torqueScale)
Set the torque scale factor so that each direction has the same scale.
Definition: ForceScale.cpp:84
double m_forceScale
The scaling factor applied to each direction of the force.
Definition: ForceScale.h:61
void setForceScale(double forceScale)
Set the force scale factor so that each direction has the same scale.
Definition: ForceScale.cpp:78
void filterOutput(const std::string &device, const DataStructures::DataGroup &dataToFilter, DataStructures::DataGroup *result) override
Filter the output data.
Definition: ForceScale.cpp:39