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
No related merge requests found
......@@ -28,6 +28,8 @@ namespace armarx
usingProxy("RobotStateComponent");
usingTopic(getProperty<std::string>("RobotStateTopicName").getValue());
cycleTime = getProperty<int>("CycleTime").getValue();
offeringTopic("DebugDrawerUpdates");
}
......@@ -46,6 +48,9 @@ namespace armarx
localRobot = RemoteRobot::createLocalClone(robotStateComponentPrx);
headIKUnitListener = getTopic<armarx::HeadIKUnitListenerPrx>(getProperty<std::string>("HeadIKUnitTopicName").getValue());
//std::string robotModelFile;
//ArmarXDataPath::getAbsolutePath("Armar3/robotmodel/ArmarIII.xml", robotModelFile);
//localRobot = VirtualRobot::RobotIO::loadRobot(robotModelFile.c_str(), VirtualRobot::RobotIO::eStructure);
......@@ -126,6 +131,8 @@ namespace armarx
ARMARX_DEBUG << "new Head target set: " << *globalTarget;
newTargetSet = true;
headIKUnitListener->reportHeadTargetChanged();
}
......
......@@ -110,6 +110,8 @@ namespace armarx
std::string robotNodeSetName;
FramedPositionPtr targetPosition;
bool newTargetSet;
armarx::HeadIKUnitListenerPrx headIKUnitListener;
};
}
......
......@@ -50,6 +50,14 @@ module armarx
* @param targetPosition in x, y, and z.
**/
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