Go to the documentation of this file.
33 #include <RobotAPI/interface/units/KinematicUnitInterface.h>
35 #include <VirtualRobot/Nodes/RobotNode.h>
51 defineRequiredProperty<std::string>(
"RobotNodeSetName",
"Robot node set name as defined in robot xml file, e.g. 'LeftArm'");
52 defineRequiredProperty<std::string>(
"RobotFileName",
"Robot file name, e.g. robot_model.xml");
53 defineOptionalProperty<std::string>(
"RobotFileNameProject",
"",
"Project in which the robot filename is located (if robot is loaded from an external project)");
54 defineOptionalProperty<std::string>(
"TopicPrefix",
"",
"Prefix for the sensor value topic name.");
55 defineOptionalProperty<std::string>(
"SkillProviderTopic",
"SkillProviderTopic",
"Topic where skill providers provide their skills");
77 virtual public KinematicUnitInterface,
84 return "KinematicUnit";
94 std::string
getRobotFilename(
const Ice::Current& = Ice::emptyCurrent)
const override;
100 std::vector< std::string >
getArmarXPackages(
const Ice::Current& = Ice::emptyCurrent)
const override;
106 std::string
getRobotName(
const Ice::Current& = Ice::emptyCurrent)
const override;
117 std::string
getReportTopicName(
const Ice::Current& = Ice::emptyCurrent)
const override;
124 virtual void requestKinematicUnit(
const Ice::StringSeq& nodes,
const Ice::Current&
c = Ice::emptyCurrent);
125 virtual void releaseKinematicUnit(
const Ice::StringSeq& nodes,
const Ice::Current&
c = Ice::emptyCurrent);
126 void switchControlMode(
const NameControlModeMap& targetJointModes,
const Ice::Current&
c = Ice::emptyCurrent)
override;
KinematicUnitPropertyDefinitions(std::string prefix)
std::string relativeRobotFile
void setJointAngles(const NameValueMap &targetJointAngles, const Ice::Current &c=Ice::emptyCurrent) override
void onExitComponent() override
Hook for subclass.
virtual void onStartKinematicUnit()=0
std::string robotNodeSetName
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
std::vector< std::string > getArmarXPackages(const Ice::Current &=Ice::emptyCurrent) const override
getArmarXPackages
void setJointAnglesToZero()
std::string getReportTopicName(const Ice::Current &=Ice::emptyCurrent) const override
std::string getRobotName(const Ice::Current &=Ice::emptyCurrent) const override
virtual void onExitKinematicUnit()=0
void setJointVelocitiesToZero()
std::vector< std::string > armarXPackages
void onConnectComponent() override
Pure virtual hook for the subclass.
std::vector< VirtualRobot::RobotNodePtr > robotNodes
void setJointVelocities(const NameValueMap &targetJointVelocities, const Ice::Current &c=Ice::emptyCurrent) override
std::string getRobotNodeSetName(const Ice::Current &=Ice::emptyCurrent) const override
virtual void releaseKinematicUnit(const Ice::StringSeq &nodes, const Ice::Current &c=Ice::emptyCurrent)
void switchControlMode(const NameControlModeMap &targetJointModes, const Ice::Current &c=Ice::emptyCurrent) override
PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitComponent() override
Pure virtual hook for the subclass.
Default component property definition container.
KinematicUnitListenerPrx listenerPrx
Base Class for SensorActorUnits.
virtual void requestKinematicUnit(const Ice::StringSeq &nodes, const Ice::Current &c=Ice::emptyCurrent)
virtual void onInitKinematicUnit()=0
std::string getDefaultName() const override
Retrieve default name of component.
std::string getRobotFilename(const Ice::Current &=Ice::emptyCurrent) const override
VirtualRobot::RobotPtr robot
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr