gz/sensors/ForceTorqueSensor.hh
Go to the documentation of this file.
Force Torque Sensor Class.
Definition: gz/sensors/ForceTorqueSensor.hh:50
void SetForce(const math::Vector3d &_force)
Set the force vector in sensor frame and where the force is applied on the child (parent-to-child)
math::Quaterniond RotationChildInSensor() const
Set the rotation of the joint parent relative to the sensor frame.
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
void SetRotationChildInSensor(const math::Quaterniond &_rotChildInSensor)
Set the rotation of the joint child relative to the sensor frame.
virtual bool Load(const sdf::Sensor &_sdf) override
Load the sensor based on data from an sdf::Sensor object.
math::Quaterniond RotationParentInSensor() const
Set the rotation of the joint parent relative to the sensor frame.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Update the sensor and generate data.
void SetRotationParentInSensor(const math::Quaterniond &_rotParentInSensor)
Set the rotation of the joint parent relative to the sensor frame.
math::Vector3d Torque() const
Get the current joint torque.
void SetTorque(const math::Vector3d &_torque)
Set the torque vector in sensor frame and where the torque is applied on the child (parent-to-child)
virtual bool Init() override
Initialize values in the sensor.
bool HasConnections() const
Check if there are any subscribers.
Definition: gz/sensors/AirPressureSensor.hh:32