Go to the documentation of this file.
31 #include <RobotAPI/interface/units/HeadIKUnit.h>
32 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
47 defineRequiredProperty<std::string>(
"KinematicUnitName",
48 "Name of the KinematicUnit Proxy");
49 defineOptionalProperty<std::string>(
50 "HeadIKUnitTopicName",
"HeadIKUnitTopic",
"Name of the HeadIKUnit Topic");
51 defineOptionalProperty<std::string>(
52 "RobotStateComponentName",
53 "RobotStateComponent",
54 "Name of the RobotStateComponent that should be used");
55 defineOptionalProperty<bool>(
"VisualizeIKTarget",
57 "Visualize the current IK target using the debug drawer");
58 defineOptionalProperty<int>(
"CycleTime", 30,
"Cycle time of the tcp control in ms");
89 const Ice::Current&
c = Ice::emptyCurrent)
override;
91 const FramedPositionBasePtr& targetPosition,
92 const Ice::Current&
c = Ice::emptyCurrent)
override;
95 void init(
const Ice::Current&
c = Ice::emptyCurrent)
override;
96 void start(
const Ice::Current&
c = Ice::emptyCurrent)
override;
97 void stop(
const Ice::Current&
c = Ice::emptyCurrent)
override;
98 UnitExecutionState
getExecutionState(
const Ice::Current&
c = Ice::emptyCurrent)
override;
101 void request(
const Ice::Current&
c = Ice::emptyCurrent)
override;
102 void release(
const Ice::Current&
c = Ice::emptyCurrent)
override;
111 std::mutex accessMutex;
117 KinematicUnitInterfacePrx kinematicUnitPrx;
122 Ice::StringSeq robotNodeSetNames;
126 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.