Skip to content
Snippets Groups Projects
Commit 6e1df760 authored by Fabian Reister's avatar Fabian Reister
Browse files

support for ARMAR-DE

parent 371095a0
No related branches found
No related tags found
No related merge requests found
......@@ -447,7 +447,7 @@ namespace armarx::view_selection::gaze_scheduler
}
Scheduler::RobotNodeNames
Scheduler::getRobotNodeNames(std::string robotName)
Scheduler::getRobotNodeNames(const std::string& robotName)
{
RobotNodeNames nodeNames;
if (robotName == "Armar6")
......@@ -458,9 +458,18 @@ namespace armarx::view_selection::gaze_scheduler
nodeNames.cameraNodeName = "DepthCamera";
nodeNames.torsoNodeName = "TorsoJoint";
}
else if(robotName == "ArmarDE")
{
nodeNames.cameraFrameName = "DepthCamera";
nodeNames.pitchNodeName = "Neck_1_Pitch";
nodeNames.yawNodeName = "Neck_2_Yaw";
nodeNames.cameraNodeName = "DepthCamera";
nodeNames.torsoNodeName = "TorsoJoint";
}
else
{
ARMARX_WARNING << "robotName not known, using fallback values";
ARMARX_FATAL << "Robot name `" << robotName <<"` not known!";
}
return nodeNames;
}
......
......@@ -106,9 +106,10 @@ namespace armarx::view_selection::gaze_scheduler
std::string cameraNodeName = "DepthCamera";
std::string torsoNodeName = "TorsoJoint";
};
// return node names for given robot
// TODO: implement this function for other robots than Armar6
RobotNodeNames getRobotNodeNames(std::string robotName);
RobotNodeNames getRobotNodeNames(const std::string& robotName);
//check whether the current target is out of time and reschedule
void checkTargetDeadline();
......
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