Go to the documentation of this file.
29 #include <VirtualRobot/VirtualRobot.h>
36 #include <RobotAPI/interface/units/KinematicUnitInterface.h>
49 defineRequiredProperty<std::string>(
51 "Robot node set name as defined in robot xml file, e.g. 'LeftArm'");
52 defineRequiredProperty<std::string>(
"RobotFileName",
53 "Robot file name, e.g. robot_model.xml");
54 defineOptionalProperty<std::string>(
"RobotFileNameProject",
56 "Project in which the robot filename is located "
57 "(if robot is loaded from an external project)");
58 defineOptionalProperty<std::string>(
59 "TopicPrefix",
"",
"Prefix for the sensor value topic name.");
60 defineOptionalProperty<std::string>(
"SkillProviderTopic",
62 "Topic where skill providers provide their skills");
89 return "KinematicUnit";
99 std::string
getRobotFilename(
const Ice::Current& = Ice::emptyCurrent)
const override;
105 std::vector<std::string>
112 std::string
getRobotName(
const Ice::Current& = Ice::emptyCurrent)
const override;
123 std::string
getReportTopicName(
const Ice::Current& = Ice::emptyCurrent)
const override;
131 const Ice::Current&
c = Ice::emptyCurrent);
133 const Ice::Current&
c = Ice::emptyCurrent);
135 const Ice::Current&
c = Ice::emptyCurrent)
override;
137 const Ice::Current&
c = Ice::emptyCurrent)
override;
139 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.
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
std::vector< VirtualRobot::RobotNodePtr > robotNodes