Skip to content
Snippets Groups Projects
Commit 8ba53c24 authored by Markus Grotz's avatar Markus Grotz
Browse files

added HeadIKUnitListener

parent c5d14d33
No related branches found
No related tags found
Loading
...@@ -28,6 +28,8 @@ namespace armarx ...@@ -28,6 +28,8 @@ namespace armarx
usingProxy("RobotStateComponent"); usingProxy("RobotStateComponent");
usingTopic(getProperty<std::string>("RobotStateTopicName").getValue()); usingTopic(getProperty<std::string>("RobotStateTopicName").getValue());
cycleTime = getProperty<int>("CycleTime").getValue(); cycleTime = getProperty<int>("CycleTime").getValue();
offeringTopic("DebugDrawerUpdates"); offeringTopic("DebugDrawerUpdates");
} }
...@@ -46,6 +48,9 @@ namespace armarx ...@@ -46,6 +48,9 @@ namespace armarx
localRobot = RemoteRobot::createLocalClone(robotStateComponentPrx); localRobot = RemoteRobot::createLocalClone(robotStateComponentPrx);
headIKUnitListener = getTopic<armarx::HeadIKUnitListenerPrx>(getProperty<std::string>("HeadIKUnitTopicName").getValue());
//std::string robotModelFile; //std::string robotModelFile;
//ArmarXDataPath::getAbsolutePath("Armar3/robotmodel/ArmarIII.xml", robotModelFile); //ArmarXDataPath::getAbsolutePath("Armar3/robotmodel/ArmarIII.xml", robotModelFile);
//localRobot = VirtualRobot::RobotIO::loadRobot(robotModelFile.c_str(), VirtualRobot::RobotIO::eStructure); //localRobot = VirtualRobot::RobotIO::loadRobot(robotModelFile.c_str(), VirtualRobot::RobotIO::eStructure);
...@@ -126,6 +131,8 @@ namespace armarx ...@@ -126,6 +131,8 @@ namespace armarx
ARMARX_DEBUG << "new Head target set: " << *globalTarget; ARMARX_DEBUG << "new Head target set: " << *globalTarget;
newTargetSet = true; newTargetSet = true;
headIKUnitListener->reportHeadTargetChanged();
} }
......
...@@ -110,6 +110,8 @@ namespace armarx ...@@ -110,6 +110,8 @@ namespace armarx
std::string robotNodeSetName; std::string robotNodeSetName;
FramedPositionPtr targetPosition; FramedPositionPtr targetPosition;
bool newTargetSet; bool newTargetSet;
armarx::HeadIKUnitListenerPrx headIKUnitListener;
}; };
} }
......
...@@ -50,6 +50,14 @@ module armarx ...@@ -50,6 +50,14 @@ module armarx
* @param targetPosition in x, y, and z. * @param targetPosition in x, y, and z.
**/ **/
void setHeadTarget(string robotNodeSetName, FramedPositionBase targetPosition); void setHeadTarget(string robotNodeSetName, FramedPositionBase targetPosition);
};
interface HeadIKUnitListener
{
void reportHeadTargetChanged();
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment