nao_dictionaries.py
Go to the documentation of this file.
1 import math
2 import naoqi_tools.urdf as ur
3 pi_2 = math.pi/2.0
4 
5 Nao_offsets = {
6  #### sensors offsets ####
7  # cameras
8  'CameraTopV4OffsetX': 5.871e-2,
9  'CameraTopV4OffsetY': 0.0,
10  'CameraTopV4OffsetZ': 6.364e-2,
11  'CameraTopV4RotX': 0.0,
12  'CameraTopV4RotY': 2.09e-2,
13  'CameraTopV4RotZ': 0.0,
14  }
15 
16 Nao_links = {
17  u'Torso_link': 'torso',
18  u'HeadYaw_link': 'Neck',
19  u'HeadPitch_link': 'Head',
20  u'LShoulderPitch_link': 'LShoulder',
21  u'RShoulderPitch_link': 'RShoulder',
22  u'LShoulderRoll_link': 'LBicep',
23  u'RShoulderRoll_link': 'RBicep',
24  u'LElbowYaw_link': 'LElbow',
25  u'RElbowYaw_link': 'RElbow',
26  u'LElbowRoll_link': 'LForeArm',
27  u'RElbowRoll_link': 'RForeArm',
28  u'LHipYawPitch_link': 'LPelvis',
29  u'RHipYawPitch_link': 'RPelvis',
30  u'LHipRoll_link': 'LHip',
31  u'RHipRoll_link': 'RHip',
32  u'LHipPitch_link': 'LThigh',
33  u'RHipPitch_link': 'RThigh',
34  u'LKneePitch_link': 'LTibia',
35  u'LAnklePitch_link': 'LAnklePitch',
36  u'RAnklePitch_link': 'RAnklePitch',
37  u'RKneePitch_link': 'RTibia',
38  u'LAnkleRoll_link': 'l_ankle',
39  u'RAnkleRoll_link': 'r_ankle',
40  u'LWristYaw_link': 'l_wrist',
41  u'RWristYaw_link': 'r_wrist',
42  u'LHand_actuator_frame': 'l_gripper',
43  u'RHand_actuator_frame': 'r_gripper',
44  u'LLeg_effector': 'l_sole',
45  u'RLeg_effector': 'r_sole',
46 
47  # SENSORS
48  'RFoot/FSR/FrontLeft_sensor': 'RFsrFL_frame',
49  'RFoot/FSR/RearLeft_sensor': 'RFsrRL_frame',
50  'RFoot/FSR/FrontRight_sensor': 'RFsrFR_frame',
51  'RFoot/FSR/RearRight_sensor': 'RFsrRR_frame',
52  'LFoot/FSR/FrontLeft_sensor': 'LFsrFL_frame',
53  'LFoot/FSR/RearLeft_sensor': 'LFsrRL_frame',
54  'LFoot/FSR/FrontRight_sensor': 'LFsrFR_frame',
55  'LFoot/FSR/RearRight_sensor': 'LFsrRR_frame',
56  'Sonar/Right_sensor': 'RSonar_frame',
57  'Sonar/Left_sensor': 'LSonar_frame',
58  'InfraredL_sensor': 'LInfraRed_frame',
59  'InfraredR_sensor': 'RInfraRed_frame',
60  'CameraTop_sensor': 'CameraTop_frame',
61  'CameraBottom_sensor': 'CameraBottom_frame',
62  'LFoot/Bumper/Left_sensor': 'LFootBumperLeft_frame',
63  'LFoot/Bumper/Right_sensor': 'LFootBumperRight_frame',
64  'RFoot/Bumper/Left_sensor': 'RFootBumperLeft_frame',
65  'RFoot/Bumper/Right_sensor': 'RFootBumperRight_frame',
66  'ChestBoard/Button_sensor': 'ChestButton_frame',
67  'Head/Touch/Front_sensor': 'HeadTouchFront_frame',
68  'Head/Touch/Middle_sensor': 'HeadTouchMiddle_frame',
69  'Head/Touch/Rear_sensor': 'HeadTouchRear_frame',
70  'LHand/Touch/Left_sensor': 'LHandTouchLeft_frame',
71  'LHand/Touch/Back_sensor': 'LHandTouchBack_frame',
72  'LHand/Touch/Right_sensor': 'LHandTouchRight_frame',
73  'RHand/Touch/Left_sensor': 'RHandTouchLeft_frame',
74  'RHand/Touch/Back_sensor': 'RHandTouchBack_frame',
75  'RHand/Touch/Right_sensor': 'RHandTouchRight_frame',
76  'Accelerometer_sensor': 'ImuTorsoAccelerometer_frame',
77  'Gyrometer_sensor': 'ImuTorsoGyrometer_frame',
78  'MicroFront_sensor': 'MicroFrontCenter_frame',
79  'MicroRear_sensor': 'MicroRearCenter_frame',
80  'MicroLeft_sensor': 'MicroSurroundLeft_frame',
81  'MicroRight_sensor': 'MicroSurroundRight_frame',
82  }
83 
84 Nao_visu = {
85  u'Torso_link': ur.Cylinder(0.015, 0.2115),
86  u'HeadPitch_link': ur.Cylinder(0.04, 0.14),
87  u'LShoulderRoll_link': ur.Cylinder(0.015, 0.09),
88  u'LElbowRoll_link': ur.Cylinder(0.015, 0.05065),
89  u'LHipPitch_link': ur.Cylinder(0.015, 0.1),
90  u'LKneePitch_link': ur.Cylinder(0.015, 0.1),
91  u'RHipPitch_link': ur.Cylinder(0.015, 0.1),
92  u'RKneePitch_link': ur.Cylinder(0.015, 0.1),
93  u'RShoulderRoll_link': ur.Cylinder(0.015, 0.09),
94  u'RElbowRoll_link': ur.Cylinder(0.015, 0.05065),
95  u'LAnkleRoll_link': ur.Box((0.16, 0.06, 0.015)),
96  u'RAnkleRoll_link': ur.Box((0.16, 0.06, 0.015)),
97  u'LWristYaw_link': ur.Cylinder(0.015, 0.058),
98  u'RWristYaw_link': ur.Cylinder(0.015, 0.058),
99  }
100 
101 Nao_orig = {
102  u'Torso_link': ur.Pose((0, 0, 0.02075), (0, 0, 0)),
103  u'HeadPitch_link': ur.Pose((0, 0, 0.058), (pi_2, 0, 0)),
104  u'LShoulderRoll_link': ur.Pose((0.045, 0, 0), (pi_2, 0, pi_2)),
105  u'LElbowRoll_link': ur.Pose((0.025325, 0, 0), (pi_2, 0, pi_2)),
106  u'LHipPitch_link': ur.Pose((0, 0, -0.05), (0, 0, 0)),
107  u'LKneePitch_link': ur.Pose((0, 0, -0.05), (0, 0, 0)),
108  u'RHipPitch_link': ur.Pose((0, 0, -0.05), (0, 0, 0)),
109  u'RKneePitch_link': ur.Pose((0, 0, -0.05), (0, 0, 0)),
110  u'RShoulderRoll_link': ur.Pose((0.045, 0, 0), (pi_2, 0, pi_2)),
111  u'RElbowRoll_link': ur.Pose((0.025325, 0, 0), (pi_2, 0, pi_2)),
112  u'LAnkleRoll_link': ur.Pose((0.02, 0, 0.0075), (0, 0, 0)),
113  u'RAnkleRoll_link': ur.Pose((0.02, 0, 0.0075), (0, 0, 0)),
114  u'LWristYaw_link': ur.Pose((0.029, 0, 0), (pi_2, 0, pi_2)),
115  u'RWristYaw_link': ur.Pose((0.029, 0, 0), (pi_2, 0, pi_2)),
116  }


naoqi_tools
Author(s): Mikael Arguedas
autogenerated on Thu Jul 16 2020 03:18:37