Go to the documentation of this file.
28 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
32 #include <RobotAPI/interface/units/HeadIKUnit.h>
50 defineRequiredProperty<std::string>(
"KinematicUnitName",
"Name of the KinematicUnit Proxy");
51 defineOptionalProperty<std::string>(
"HeadIKUnitTopicName",
"HeadIKUnitTopic",
"Name of the HeadIKUnit Topic");
52 defineOptionalProperty<std::string>(
"RobotStateComponentName",
"RobotStateComponent",
"Name of the RobotStateComponent that should be used");
53 defineOptionalProperty<bool>(
"VisualizeIKTarget",
true,
"Visualize the current IK target using the debug drawer");
54 defineOptionalProperty<int>(
"CycleTime", 30,
"Cycle time of the tcp control in ms");
83 void setHeadTarget(
const std::string& robotNodeSetName,
const FramedPositionBasePtr& targetPosition,
const Ice::Current&
c = Ice::emptyCurrent)
override;
86 void init(
const Ice::Current&
c = Ice::emptyCurrent)
override;
87 void start(
const Ice::Current&
c = Ice::emptyCurrent)
override;
88 void stop(
const Ice::Current&
c = Ice::emptyCurrent)
override;
89 UnitExecutionState
getExecutionState(
const Ice::Current&
c = Ice::emptyCurrent)
override;
92 void request(
const Ice::Current&
c = Ice::emptyCurrent)
override;
93 void release(
const Ice::Current&
c = Ice::emptyCurrent)
override;
102 std::mutex accessMutex;
108 KinematicUnitInterfacePrx kinematicUnitPrx;
113 Ice::StringSeq robotNodeSetNames;
117 armarx::HeadIKUnitListenerPrx headIKUnitListener;
void onDisconnectComponent() override
Hook for subclass.
void request(const Ice::Current &c=Ice::emptyCurrent) override
void release(const Ice::Current &c=Ice::emptyCurrent) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onExitComponent() override
Hook for subclass.
HeadIKUnitPropertyDefinitions(std::string prefix)
void setHeadTarget(const std::string &robotNodeSetName, const FramedPositionBasePtr &targetPosition, const Ice::Current &c=Ice::emptyCurrent) override
void onConnectComponent() override
Pure virtual hook for the subclass.
void stop(const Ice::Current &c=Ice::emptyCurrent) override
std::string getDefaultName() const override
Retrieve default name of component.
void init(const Ice::Current &c=Ice::emptyCurrent) override
void setCycleTime(Ice::Int milliseconds, const Ice::Current &c=Ice::emptyCurrent) override
Baseclass for all ArmarX ManagedIceObjects requiring properties.
UnitExecutionState getExecutionState(const Ice::Current &c=Ice::emptyCurrent) override
Default component property definition container.
void start(const Ice::Current &c=Ice::emptyCurrent) override
PropertyDefinitionsPtr createPropertyDefinitions() override
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr
void onInitComponent() override
Pure virtual hook for the subclass.