1 #ifndef CONTROL_FORCE_SENSORS_H 2 #define CONTROL_FORCE_SENSORS_H 5 #include <KrisLibrary/math3d/primitives.h> 44 virtual const char* Type()
const {
return "ContactSensor"; }
48 virtual void MeasurementNames(vector<string>& names)
const;
49 virtual void GetMeasurements(vector<double>& values)
const;
50 virtual void SetMeasurements(
const vector<double>& values);
51 virtual map<string,string> Settings()
const;
52 virtual bool GetSetting(
const string& name,
string& str)
const;
53 virtual bool SetSetting(
const string& name,
const string& str);
54 virtual void DrawGL(
const Robot& robot,
const vector<double>& measurements);
94 virtual const char* Type()
const {
return "ForceTorqueSensor"; }
98 virtual void MeasurementNames(vector<string>& names)
const;
99 virtual void GetMeasurements(vector<double>& values)
const;
100 virtual void SetMeasurements(
const vector<double>& values);
101 virtual map<string,string> Settings()
const;
102 virtual bool GetSetting(
const string& name,
string& str)
const;
103 virtual bool SetSetting(
const string& name,
const string& str);
104 virtual void DrawGL(
const Robot& robot,
const vector<double>& measurements);
The main robot type used in RobotSim.
Definition: Robot.h:79
A class containing information about an ODE-simulated and controlled robot.
Definition: ControlledSimulator.h:17
Simulates a force-torque sensor mounted between a link and its parent. Can be configured to be up to ...
Definition: ForceSensors.h:89
The main world class containing multiple robots, objects, and static geometries (terrains). Lights and other viewport information may also be stored here.
Definition: World.h:20
Vector3 tVariance
Estimated variance of the sensor (default 0)
Definition: ForceSensors.h:109
A sensor base class. A SensorBase should allow a Controller to both connect to a simulation as well a...
Definition: Sensor.h:51
int link
The link on which the sensor is located (between link and parent)
Definition: ForceSensors.h:106
A physical simulator for a RobotWorld.
Definition: WorldSimulation.h:67
Vector3 t
Measurement: the force/torque at the given position, on the link (negative on the parent link) ...
Definition: ForceSensors.h:111