HandUnitServices.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <RobotAPI/interface/units/HandUnitInterface.h>
6#include <RobotAPI/interface/units/KinematicUnitInterface.h>
7
8#include <armarx/control/skills/aron/HandParam.aron.generated.h>
9
11{
13 {
14 ::armarx::KinematicUnitInterfacePrx kinematicUnit;
15 };
16
18 {
19 ::armarx::HandUnitInterfacePrx& leftHandUnit;
20 ::armarx::HandUnitInterfacePrx& rightHandUnit;
21
22 ::armarx::HandUnitInterfacePrx&
23 getHandUnit(const arondto::Hand hand)
24 {
25 if (hand == arondto::Hand::Left)
26 {
27 return leftHandUnit;
28 }
29 else // hand == arondto::Hand::Right
30 {
31 return rightHandUnit;
32 }
33 }
34 };
35
36} // namespace armarx::control::skills
::armarx::HandUnitInterfacePrx & rightHandUnit
::armarx::HandUnitInterfacePrx & getHandUnit(const arondto::Hand hand)
::armarx::HandUnitInterfacePrx & leftHandUnit
::armarx::KinematicUnitInterfacePrx kinematicUnit