Skip to content

raisim::ForceSensor ​

final class · #include <raisim/sensors/ForceSensor.hpp>

Inherits: raisim::WrenchSensor

Six-axis load cell. Reports the wrench exerted by the parent on the joint's child subtree, including gravity, inertia and external loads. Fixed-joint cuts retain their original link membership after fixed bodies are merged.

Nested classes ​

Constructors & destructor ​

ForceSensor ​

cpp
ForceSensor(
    const ForceSensorProperties &prop,
    ArticulatedSystem *as,
    const Vec<3> &pos,
    const Mat<3, 3> &rot)

Public member functions ​

getProperties ​

cpp
const ForceSensorProperties &getProperties() const

setProperties ​

cpp
void setProperties(const ForceSensorProperties &prop)

serializeProp ​

cpp
server::BoundedWriter serializeProp(server::BoundedWriter data) const final

Used by the server. Do not use it if you don't know what it does. It serializes the sensor properties

Parameters

ParameterDescription
data (in)where the property is written; throws server::SerializationError if it does not fit

Returns where the next data should be written

serializeMeasurements ​

cpp
server::BoundedWriter serializeMeasurements(server::BoundedWriter data) const final

Used by the server. Do not use it if you don't know what it does. It serializes sensor measurements.

Parameters

ParameterDescription
data (in)where the measurements are written; throws server::SerializationError if they do not fit

Returns where the next data should be written

Static member functions ​

getType static ​

cpp
static Type getType()

Inherited members ​

From raisim::WrenchSensor: getAcquisitionStartTime, getDeliveryTimeStamp, getDroppedMeasurementCount, getForce, getTorque, reset, resetNoise, update

From raisim::Sensor: getArticulatedSystem, getFrameId, getFrameOrientation, getFramePosition, getFullName, getMeasurementSource, getName, getOrientation, getOriInSensorFrame, getPosInSensorFrame, getPosition, getSensorSetModel, getSerialNumber, getUpdateRate, getUpdateTimeStamp, isUpdateDue, lock, lockMutex, MeasurementSource, setAttachmentFrame, setMeasurementSource, setSerialNumber, setUpdateRate, setUpdateTimeStamp, try_lock, Type, unlock, unlockMutex, updatePose

RaiSim — physics for robotics and AI.