24 #include <Eigen/Geometry>
25 #include <SimoxUtility/math/convert/rpy_to_mat3f.h>
27 #include <RobotAPI/interface/core/GeometryBase.h>
36 usingProxy(getProperty<std::string>(
"RobotStateComponentName").getValue());
38 usingProxy(getProperty<std::string>(
"WorkingMemoryName").getValue());
39 usingTopic(getProperty<std::string>(
"PlatformTopicName").getValue());
44 robotStateComponentPrx = getProxy<RobotStateComponentInterfacePrx>(getProperty<std::string>(
"RobotStateComponentName").getValue());
48 memoryPrx = getProxy<memoryx::WorkingMemoryInterfacePrx>(getProperty<std::string>(
"WorkingMemoryName").getValue());
58 robotName = getProperty<std::string>(
"RobotName").getValue();
59 robotPoseZ = getProperty<float>(
"RobotPoseZ").isSet() ? getProperty<float>(
"RobotPoseZ").getValue() : 0;
61 std::string agentName = getProperty<std::string>(
"AgentName").isSet() ? getProperty<std::string>(
"AgentName").getValue() :
robotName;
64 ARMARX_INFO <<
"Creating robot agent with name " << agentName;
69 robotAgent->setStringifiedSharedRobotInterfaceProxy(iceCommunicator->proxyToString(robot));
75 global_T_robot_initial.translation().x() = getProperty<float>(
"InitialPlatformPoseX").getValue();
76 global_T_robot_initial.translation().y() = getProperty<float>(
"InitialPlatformPoseY").getValue();
77 global_T_robot_initial.linear() = simox::math::rpy_to_mat3f(0, 0, getProperty<float>(
"InitialPlatformPoseAngle").getValue());
79 TransformStamped transformStamped;
80 transformStamped.transform = global_T_robot_initial.matrix();
81 transformStamped.header.agent = agentName;
83 transformStamped.header.timestampInMicroSeconds =
TimeUtil::GetTime().toMicroSeconds();
97 execTask->setDelayWarningTolerance(100);
146 Eigen::Isometry3f global_T_robot(transformStamped.transform);
147 global_T_robot.translation().z() =
robotPoseZ;