diff options
| author | 2026-11-09 17:48:23 +0000 | |
|---|---|---|
| committer | 2026-11-09 18:03:25 +0000 | |
| commit | bd1b82e7eba0695ad7bb62ca0482e756dc374ba4 (patch) | |
| tree | 8cc51952853cd21cd55b48974c94d57f955ea555 /res/robot.sdf | |
| download | summer-practice-master.tar.gz | |
Diffstat (limited to 'res/robot.sdf')
| -rw-r--r-- | res/robot.sdf | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/res/robot.sdf b/res/robot.sdf new file mode 100644 index 0000000..d6f8ab1 --- /dev/null +++ b/res/robot.sdf | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | <?xml version="1.0"?> | ||
| 2 | <sdf version="1.12"> | ||
| 3 | <model name="robot" canonical_link="foundation"> | ||
| 4 | <!-- | ||
| 5 | <material name="static_m"> <color rgba="0.5 0.5 0.5 1"/></material> | ||
| 6 | <material name="shoulder_m"><color rgba="0.7 0.3 0.3 1"/></material> | ||
| 7 | <material name="rod_m"> <color rgba="0.3 0.3 0.7 1"/></material> | ||
| 8 | <material name="carriage_m"><color rgba="0.3 0.7 0.3 1"/></material> | ||
| 9 | --> | ||
| 10 | |||
| 11 | <link name="foundation"> | ||
| 12 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 13 | <visual name="foundation_v"><geometry><mesh><uri>file://meshes/foundation.stl</uri></mesh></geometry></visual> | ||
| 14 | <collision name="foundation_c"><geometry><mesh><uri>file://meshes/foundation.stl</uri></mesh></geometry></collision> | ||
| 15 | </link> | ||
| 16 | |||
| 17 | <link name="base_link"> | ||
| 18 | <pose relative_to="base_link_joint">0 0 0 0 0 0</pose> | ||
| 19 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 20 | <visual name="base_v"><geometry><mesh><uri>file://meshes/base-link.stl</uri></mesh></geometry></visual> | ||
| 21 | <collision name="base_c"><geometry><mesh><uri>file://meshes/base-link.stl</uri></mesh></geometry></collision> | ||
| 22 | </link> | ||
| 23 | |||
| 24 | <link name="shoulder_left"> | ||
| 25 | <pose>0.274 -0.15 1.48 0 0.261799 1.047198</pose> | ||
| 26 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 27 | <visual name="shoulder_left_v"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></visual> | ||
| 28 | <collision name="shoulder_left_c"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></collision> | ||
| 29 | </link> | ||
| 30 | |||
| 31 | <link name="rod_left_lower"> | ||
| 32 | <pose relative_to="shoulder_left">0.549 -0.02 -0.04 -0.139626 0 -1.396263</pose> | ||
| 33 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 34 | <visual name="rod_left_lower_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual> | ||
| 35 | <collision name="rod_left_lower_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision> | ||
| 36 | </link> | ||
| 37 | |||
| 38 | <link name="rod_left_upper"> | ||
| 39 | <pose relative_to="shoulder_left">0.549 -0.02 0 -0.139626 3.141593 -1.745329</pose> | ||
| 40 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 41 | <visual name="rod_left_upper_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual> | ||
| 42 | <collision name="rod_left_upper_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision> | ||
| 43 | </link> | ||
| 44 | |||
| 45 | <link name="shoulder_right"> | ||
| 46 | <pose>0.305 0.15 1.6 3.141593 -0.261799 1.047198</pose> | ||
| 47 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 48 | <visual name="shoulder_right_v"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></visual> | ||
| 49 | <collision name="shoulder_right_c"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></collision> | ||
| 50 | </link> | ||
| 51 | |||
| 52 | <link name="rod_right_lower"> | ||
| 53 | <pose>0.549 -0.02 0.04 -0.0523599 3.141593 -1.396263</pose> | ||
| 54 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 55 | <visual name="rod_right_lower_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual> | ||
| 56 | <collision name="rod_right_lower_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision> | ||
| 57 | </link> | ||
| 58 | |||
| 59 | <link name="rod_right_upper"> | ||
| 60 | <pose>0.549 -0.02 -0.04 -0.0523599 0 -1.745329</pose> | ||
| 61 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 62 | <visual name="rod_right_upper_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual> | ||
| 63 | <collision name="rod_right_upper_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision> | ||
| 64 | </link> | ||
| 65 | |||
| 66 | <link name="shoulder_upper"> | ||
| 67 | <pose>0.282 -0.02 1.684 -1.570796 0 -0.523599</pose> | ||
| 68 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 69 | <visual name="shoulder_upper_v"><geometry><mesh><uri>file://meshes/shoulder-vertical.stl</uri></mesh></geometry></visual> | ||
| 70 | <collision name="shoulder_upper_c"><geometry><mesh><uri>file://meshes/shoulder-vertical.stl</uri></mesh></geometry></collision> | ||
| 71 | </link> | ||
| 72 | |||
| 73 | <link name="rod_upper_left"> | ||
| 74 | <!-- | ||
| 75 | <pose>0.552 0.022 -0.05 0 0 1.48353</pose> | ||
| 76 | --> | ||
| 77 | <pose relative_to="shoulder_upper">0 0 0 0 0 0</pose> | ||
| 78 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 79 | <visual name="rod_upper_left_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual> | ||
| 80 | <collision name="rod_upper_left_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision> | ||
| 81 | </link> | ||
| 82 | |||
| 83 | <link name="rod_upper_right"> | ||
| 84 | <pose>0.552 0.022 0.05 3.141593 0 -1.832596</pose> | ||
| 85 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 86 | <visual name="rod_upper_right_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual> | ||
| 87 | <collision name="rod_upper_right_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision> | ||
| 88 | </link> | ||
| 89 | |||
| 90 | <link name="carriage"> | ||
| 91 | <pose>1.170 -0.004 1.332 0 0 0</pose> | ||
| 92 | <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial> | ||
| 93 | <visual name="carriage_v"><geometry><mesh><uri>file://meshes/carriage.stl</uri></mesh></geometry></visual> | ||
| 94 | <collision name="carriage_c"><geometry><mesh><uri>file://meshes/carriage.stl</uri></mesh></geometry></collision> | ||
| 95 | </link> | ||
| 96 | |||
| 97 | <joint name="base_link_joint" type="fixed"> | ||
| 98 | <pose relative_to="foundation">0 0 0.19 0 0 0</pose> | ||
| 99 | <parent>foundation</parent> | ||
| 100 | <child>base_link</child> | ||
| 101 | <axis><xyz>0 0 1</xyz></axis> | ||
| 102 | </joint> | ||
| 103 | |||
| 104 | <joint name="shoulder_left_joint" type="revolute"><parent>base_link</parent><child>shoulder_left</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 105 | <joint name="shoulder_left_rod_lower_joint" type="ball"><parent>shoulder_left</parent><child>rod_left_lower</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 106 | <joint name="shoulder_left_rod_upper_joint" type="ball"><parent>shoulder_left</parent><child>rod_left_upper</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 107 | |||
| 108 | <joint name="shoulder_right_joint" type="revolute"><parent>base_link</parent><child>shoulder_right</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 109 | <joint name="shoulder_right_rod_lower_joint" type="ball"><parent>shoulder_right</parent><child>rod_right_lower</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 110 | <joint name="shoulder_right_rod_upper_joint" type="ball"><parent>shoulder_right</parent><child>rod_right_upper</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 111 | |||
| 112 | <joint name="shoulder_upper_joint" type="revolute"><parent>base_link</parent><child>shoulder_upper</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 113 | <joint name="shoulder_upper_rod_left_joint" type="ball"><parent>shoulder_upper</parent><child>rod_upper_left </child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 114 | <joint name="shoulder_upper_rod_right_joint" type="ball"><parent>shoulder_upper</parent><child>rod_upper_right</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 115 | |||
| 116 | <joint name="carriage_rod_left_lower_joint" type="ball"><parent>rod_left_lower </parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 117 | <joint name="carriage_rod_left_upper_joint" type="ball"><parent>rod_left_upper </parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 118 | <joint name="carriage_rod_right_lower_joint" type="ball"><parent>rod_right_lower</parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 119 | <joint name="carriage_rod_right_upper_joint" type="ball"><parent>rod_right_upper</parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 120 | <joint name="carriage_rod_upper_left_joint" type="ball"><parent>rod_upper_left </parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 121 | <joint name="carriage_rod_upper_right_joint" type="ball"><parent>rod_upper_right</parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint> | ||
| 122 | </model> | ||
| 123 | </sdf> | ||
