Go to the documentation of this file.
33 #include <IceUtil/Time.h>
50 defineRequiredProperty<std::string>(
"SensorNames",
"simulated sensor name. seperated by comma");
51 defineRequiredProperty<std::string>(
"AgentName",
"name of the robot agent");
52 defineOptionalProperty<int>(
"IntervalMs", 50,
"The time in milliseconds between two calls to the simulation method.");
70 return "ForceTorqueUnitSimulation";
82 void setOffset(
const FramedDirectionBasePtr& forceOffsets,
const FramedDirectionBasePtr& torqueOffsets,
const Ice::Current&
c = Ice::emptyCurrent)
override;
87 void setToNull(
const Ice::Current&
c = Ice::emptyCurrent)
override;
95 std::map<std::string, armarx::FramedDirectionPtr>
forces;
96 std::map<std::string, armarx::FramedDirectionPtr>
torques;
std::map< std::string, armarx::FramedDirectionPtr > torques
void onInitForceTorqueUnit() override
void onStartForceTorqueUnit() override
Simulates a set of Force/Torque sensors.
void simulationFunction()
ForceTorqueUnitSimulationPropertyDefinitions(std::string prefix)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onExitForceTorqueUnit() override
std::map< std::string, armarx::FramedDirectionPtr > forces
The ForceTorqueUnit class.
PeriodicTask< ForceTorqueUnitSimulation >::pointer_type simulationTask
Ice::StringSeq sensorNamesList
PropertyDefinitionsPtr createPropertyDefinitions() override
std::string getDefaultName() const override
Retrieve default name of component.
void setToNull(const Ice::Current &c=Ice::emptyCurrent) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
void setOffset(const FramedDirectionBasePtr &forceOffsets, const FramedDirectionBasePtr &torqueOffsets, const Ice::Current &c=Ice::emptyCurrent) override