14 grasp_object::arondto::MovePlatformForGraspAcceptedType
15 GetDefaultParameterization()
17 grasp_object::arondto::MovePlatformForGraspAcceptedType ret;
18 ret.orientationalAccuracy = 0.01;
19 ret.positionalAccuracy = 25;
25 .skillId = {.skillName =
"MovePlatformForGrasp"},
26 .description =
"Move Platform in order to ease the grasp of an object",
27 .rootProfileDefaults = GetDefaultParameterization().toAron(),
29 .parametersType = grasp_object::arondto::MovePlatformForGraspAcceptedType::ToAronType(),
55 VirtualRobot::RobotIO::RobotDescription::eStructure);
76 {*objInstance, *robot, in.parameters.tcpName});
78 skills::platform_control::arondto::MovePlatformToPoseAcceptedType params;
79 params.robotName = in.parameters.robotName;
80 params.orientationalAccuracy = in.parameters.orientationalAccuracy;
81 params.positionalAccuracy = in.parameters.positionalAccuracy;
84 SkillProxy prx(
manager, SkillID{
85 .providerId = ProviderID{.providerName =
context.platformControlSkillProvider},
87 return {prx.executeSkill(in.executorName, params.toAron()).status,
nullptr};
static Duration MilliSeconds(std::int64_t milliSeconds)
Constructs a duration in milliseconds.
The memory name system (MNS) client.
std::optional< objpose::ObjectPose > queryLatestObjectInstance(const ObjectID &instanceId)
void connect(armem::client::MemoryNameSystem &memoryNameSystem)
virtual void connect(armem::client::MemoryNameSystem &memoryNameSystem)
The VirtualRobotReader class.
VirtualRobot::RobotPtr getSynchronizedRobot(const std::string &name, const VirtualRobot::RobotIO::RobotDescription &loadMode=VirtualRobot::RobotIO::RobotDescription::eStructure, bool blocking=true)
manager::dti::SkillManagerInterfacePrx manager
virtual MainResult main()
Override this method with the actual implementation.
TwoArmGraspControlSkill(armem::client::MemoryNameSystem &mns, armarx::viz::Client &arviz, const std::string &layerName, TwoArmGraspControlSkillContext &c)
TwoArmGraspControlSkillContext & context
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
GetPlatformOffsetForObjectGraspOutput GetGlobalPlatformPoseForObjectGrasp(const GetPlatformOffsetForObjectGraspInput &in)
This file is part of ArmarX.
A result struct for th main method of a skill.
armarx::viz::Client arviz
armem::client::MemoryNameSystem & mns