Go to the documentation of this file.
33 #include <IceUtil/Time.h>
132 return "KinematicUnitSimulation";
142 void requestJoints(
const Ice::StringSeq& joints,
const Ice::Current&
c = Ice::emptyCurrent)
override;
143 void releaseJoints(
const Ice::StringSeq& joints,
const Ice::Current&
c = Ice::emptyCurrent)
override;
144 void switchControlMode(
const NameControlModeMap& targetJointModes,
const Ice::Current&
c = Ice::emptyCurrent)
override;
149 NameControlModeMap
getControlModes(
const Ice::Current&
c = Ice::emptyCurrent)
override;
157 void stop(
const Ice::Current&
c = Ice::emptyCurrent)
override;
161 Ice::StringSeq
getJoints(
const Ice::Current&
c)
const override;
163 DebugInfo
getDebugInfo(
const Ice::Current&
c = Ice::emptyCurrent)
const override;
void switchControlMode(const NameControlModeMap &targetJointModes, const Ice::Current &c=Ice::emptyCurrent) override
KinematicUnitSimulationJointInfo()
void requestJoints(const Ice::StringSeq &joints, const Ice::Current &c=Ice::emptyCurrent) override
void setJointDecelerations(const NameValueMap &targetJointDecelerations, const Ice::Current &c=Ice::emptyCurrent) override
Ice::StringSeq getJoints(const Ice::Current &c) const override
std::string getDefaultName() const override
Retrieve default name of component.
PropertyDefinitionsPtr createPropertyDefinitions() override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void releaseJoints(const Ice::StringSeq &joints, const Ice::Current &c=Ice::emptyCurrent) override
Simulates robot kinematics.
void setJointAccelerations(const NameValueMap &targetJointAccelerations, const Ice::Current &c=Ice::emptyCurrent) override
DebugInfo getDebugInfo(const Ice::Current &c=Ice::emptyCurrent) const override
void stop(const Ice::Current &c=Ice::emptyCurrent) override
NameValueMap sensorAngles
std::mutex jointStatesMutex
void onStartKinematicUnit() override
std::map< std::string, KinematicUnitSimulationJointInfo > KinematicUnitSimulationJointInfos
void setJointTorques(const NameValueMap &targetJointTorques, const Ice::Current &c=Ice::emptyCurrent) override
KinematicUnitSimulationJointState()
void simulationFunction()
NameControlModeMap getControlModes(const Ice::Current &c=Ice::emptyCurrent) override
std::mutex sensorDataMutex
std::map< std::string, KinematicUnitSimulationJointState > KinematicUnitSimulationJointStates
bool usePDControllerForPosMode
PeriodicTask< KinematicUnitSimulation >::pointer_type simulationTask
void setJointVelocities(const NameValueMap &targetJointVelocities, const Ice::Current &c=Ice::emptyCurrent) override
armarx::core::time::DateTime Time
NameValueMap sensorVelocities
KinematicUnitSimulationPropertyDefinitions(std::string prefix)
void onInitKinematicUnit() override
std::normal_distribution< double > distribution
armarx::NameValueMap getJointAngles(const Ice::Current &c) const override
bool continuousJoint() const
KinematicUnitSimulationJointStates jointStates
void onExitKinematicUnit() override
KinematicUnitSimulationJointInfos jointInfos
IceUtil::Time lastExecutionTime
std::default_random_engine generator
std::map< std::string, PIDControllerPtr > positionControlPIDController
armarx::NameValueMap getJointVelocities(const Ice::Current &c) const override
This file offers overloads of toIce() and fromIce() functions for STL container types.
void setJointAngles(const NameValueMap &targetJointAngles, const Ice::Current &c=Ice::emptyCurrent) override
KinematicUnitSimulationJointStates previousJointStates