Go to the documentation of this file.
40 #include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
53 defineOptionalProperty<std::string>(
56 "Comma separated list of robotNodes in which the force information should be "
57 "transformed and reported.");
58 defineOptionalProperty<std::string>(
59 "SensorRobotNodeMapping",
60 "FT L:TCP L,FT R:TCP R",
61 "Comma separated list of a sensor->robotNodes mapping. The sensors will be "
62 "reported with the robot node name as as sensor name and in the frame of the robot "
65 defineOptionalProperty<std::string>(
66 "RobotStateComponentName",
67 "RobotStateComponent",
68 "Name of the RobotStateComponent that should be used");
69 defineOptionalProperty<bool>(
70 "ReportInSensorFrame",
72 "Report the sensor values also in the frame of the sensor.");
85 virtual public ForceTorqueUnitDynamicSimulationInterface
91 return "ForceTorqueUnitDynamicSimulation";
103 const Vector3BasePtr& torque,
104 const std::string& sensorName,
105 const std::string& nodeName,
107 const Ice::Current&
c = Ice::emptyCurrent)
override;
108 Vector3BasePtr
filterValues(
const std::string& sensorName,
109 const Vector3BasePtr& torques,
110 std::map<std::string, DatafieldFilterBasePtr>& filters);
114 void setOffset(
const FramedDirectionBasePtr&,
115 const FramedDirectionBasePtr&,
116 const Ice::Current&)
override;
117 void setToNull(
const Ice::Current&)
override;
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onStartForceTorqueUnit() override
VirtualRobot::RobotPtr remoteRobot
The ForceTorqueUnit class.
void onExitForceTorqueUnit() override
Vector3BasePtr filterValues(const std::string &sensorName, const Vector3BasePtr &torques, std::map< std::string, DatafieldFilterBasePtr > &filters)
void setToNull(const Ice::Current &) override
This unit connects to the physics simulator topic (default: "Simulator") and reports force torque val...
armarx::StringStringDictionary sensorRobotNodeMapping
void onInitForceTorqueUnit() override
std::vector< std::string > frames
std::map< std::string, DatafieldFilterBasePtr > forceFilters
ForceTorqueUnitDynamicSimulationPropertyDefinitions(std::string prefix)
PropertyDefinitionsPtr createPropertyDefinitions() override
SharedRobotInterfacePrx sharedRobot
void setOffset(const FramedDirectionBasePtr &, const FramedDirectionBasePtr &, const Ice::Current &) override
std::string getDefaultName() const override
Retrieve default name of component.
void reportForceTorque(const Vector3BasePtr &force, const Vector3BasePtr &torque, const std::string &sensorName, const std::string &nodeName, bool aValueChanged, const Ice::Current &c=Ice::emptyCurrent) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::map< std::string, DatafieldFilterBasePtr > torqueFilters
std::shared_ptr< class Robot > RobotPtr