1 #ifndef CONTROL_FORCE_SENSORS_H 2 #define CONTROL_FORCE_SENSORS_H 5 #include <KrisLibrary/math3d/primitives.h> 48 virtual const char* Type()
const override {
return "ContactSensor"; }
51 virtual void Reset()
override;
52 virtual void MeasurementNames(vector<string>& names)
const override;
53 virtual void GetMeasurements(vector<double>& values)
const override;
54 virtual void SetMeasurements(
const vector<double>& values)
override;
55 virtual map<string,string> Settings()
const override;
56 virtual bool GetSetting(
const string& name,
string& str)
const override;
57 virtual bool SetSetting(
const string& name,
const string& str)
override;
58 virtual void DrawGL(
const RobotModel& robot,
const vector<double>& measurements)
override;
98 virtual const char* Type()
const override {
return "ForceTorqueSensor"; }
101 virtual void Reset()
override;
102 virtual void MeasurementNames(vector<string>& names)
const override;
103 virtual void GetMeasurements(vector<double>& values)
const override;
104 virtual void SetMeasurements(
const vector<double>& values)
override;
105 virtual map<string,string> Settings()
const override;
106 virtual bool GetSetting(
const string& name,
string& str)
const override;
107 virtual bool SetSetting(
const string& name,
const string& str)
override;
108 virtual void DrawGL(
const RobotModel& robot,
const vector<double>& measurements)
override;
A physical simulator for a WorldModel.
Definition: Simulator.h:69
Simulates a force-torque sensor mounted between a link and its parent. Can be configured to be up to ...
Definition: ForceSensors.h:93
A class containing information about an ODE-simulated and controlled robot.
Definition: SimRobotController.h:19
A sensor base class. A SensorBase should allow a Controller to both connect to a simulation as well a...
Definition: Sensor.h:55
The main robot type used in RobotSim.
Definition: Robot.h:83
Vector3 t
Measurement: the force/torque at the given position, on the link (negative on the parent link) ...
Definition: ForceSensors.h:115
Vector3 tVariance
Estimated variance of the sensor (default 0)
Definition: ForceSensors.h:113
Definition: ContactDistance.h:6
int link
The link on which the sensor is located (between link and parent)
Definition: ForceSensors.h:110
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:24