Go to the documentation of this file.
35 #include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
51 defineOptionalProperty<std::string>(
"ReportFrames",
"",
"Comma separated list of robotNodes in which the force information should be transformed and reported.");
52 defineOptionalProperty<std::string>(
"SensorRobotNodeMapping",
"FT L:TCP L,FT R:TCP R",
"Comma separated list of a sensor->robotNodes mapping. The sensors will be reported with the robot node name as as sensor name and in the frame of the robot node.");
54 defineOptionalProperty<std::string>(
"RobotStateComponentName",
"RobotStateComponent",
"Name of the RobotStateComponent that should be used");
55 defineOptionalProperty<bool>(
"ReportInSensorFrame",
true,
"Report the sensor values also in the frame of the sensor.");
69 virtual public ForceTorqueUnitDynamicSimulationInterface
74 return "ForceTorqueUnitDynamicSimulation";
85 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;
86 Vector3BasePtr
filterValues(
const std::string& sensorName,
const Vector3BasePtr& torques, std::map<std::string, DatafieldFilterBasePtr>& filters);
90 void setOffset(
const FramedDirectionBasePtr&,
const FramedDirectionBasePtr&,
const Ice::Current&)
override;
91 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