40#include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
56 "Comma separated list of robotNodes in which the force information should be "
57 "transformed and reported.");
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 "
66 "RobotStateComponentName",
67 "RobotStateComponent",
68 "Name of the RobotStateComponent that should be used");
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;
ForceTorqueUnitDynamicSimulationPropertyDefinitions(std::string prefix)
This unit connects to the physics simulator topic (default: "Simulator") and reports force torque val...
VirtualRobot::RobotPtr remoteRobot
void setToNull(const Ice::Current &) override
std::map< std::string, DatafieldFilterBasePtr > forceFilters
Vector3BasePtr filterValues(const std::string &sensorName, const Vector3BasePtr &torques, std::map< std::string, DatafieldFilterBasePtr > &filters)
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
std::map< std::string, DatafieldFilterBasePtr > torqueFilters
SharedRobotInterfacePrx sharedRobot
void setOffset(const FramedDirectionBasePtr &, const FramedDirectionBasePtr &, const Ice::Current &) override
void onExitForceTorqueUnit() override
void onStartForceTorqueUnit() override
std::vector< std::string > frames
PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitForceTorqueUnit() override
armarx::StringStringDictionary sensorRobotNodeMapping
std::string getDefaultName() const override
Retrieve default name of component.
ForceTorqueUnitPropertyDefinitions(std::string prefix)
The ForceTorqueUnit class.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::SharedRobotInterface > SharedRobotInterfacePrx