|
1 | 1 | <!-- UR5e inspired from https://github.com/google-deepmind/mujoco_menagerie/tree/main/universal_robots_ur5e --> |
2 | 2 | <mujoco model="fanuc scene"> |
3 | 3 | <compiler angle="radian" autolimits="true" /> |
4 | | - <option integrator="RK4" timestep="0.005" /> |
| 4 | + <option integrator="implicit" /> |
5 | 5 | <include file="lrmate200id/lrmate200id_globals.xml" /> |
| 6 | + <include file="tool.xml" /> |
6 | 7 |
|
7 | 8 | <asset> |
8 | 9 | <!-- Define textures and materials --> |
|
82 | 83 | <!-- Define the block with AprilTags on each face --> |
83 | 84 | <body name="block1" pos="0.2 0.75 0.575"> |
84 | 85 | <freejoint name="block1" /> |
| 86 | + <site name="block1" pos="0 0 0" /> |
85 | 87 | <geom |
86 | 88 | type="box" |
87 | 89 | size="0.025 0.025 0.025" |
|
91 | 93 | </body> |
92 | 94 | <body name="block2" pos="0.0 0.75 0.575"> |
93 | 95 | <freejoint name="block2" /> |
| 96 | + <site name="block2" pos="0 0 0" /> |
94 | 97 | <geom class="visual" mesh="cube" pos="0 0 -0.03" /> |
95 | 98 | <geom class="collision" type="box" size="0.025 0.025 0.025" pos="0 0 0" /> |
96 | 99 | </body> |
97 | 100 | <body name="block3" pos="-0.2 0.75 0.575"> |
98 | 101 | <freejoint name="block3" /> |
| 102 | + <site name="block3" pos="0 0 0" /> |
99 | 103 | <geom |
100 | 104 | type="box" |
101 | 105 | size="0.025 0.025 0.025" |
|
106 | 110 | <!-- Add a scene camera --> |
107 | 111 | <site |
108 | 112 | name="scene_camera_optical_frame" |
109 | | - pos="0.0 1.6 1.6" |
110 | | - euler="2.2415 0 3.1415" |
| 113 | + pos="1.1 1.1 1.5" |
| 114 | + euler="2.6 -0.8 -2.14" |
111 | 115 | /> |
112 | 116 | <camera |
113 | 117 | name="scene_camera" |
114 | | - pos="0.0 1.6 1.6" |
| 118 | + pos="1.1 1.1 1.5" |
115 | 119 | fovy="58" |
116 | 120 | mode="fixed" |
117 | 121 | resolution="640 480" |
118 | | - euler="-0.9 0 3.1415" |
| 122 | + euler="-0.54 0.8 2.14" |
119 | 123 | /> |
120 | | - <body name="arm_mount"> |
| 124 | + <body name="arm_pedestal" pos="0.0 0.3 0.15"> |
| 125 | + <geom type="box" size="0.2 0.2 0.15" /> |
| 126 | + <geom type="box" size="0.06 0.01 0.01" pos="0.23 0.03 0.1" /> |
| 127 | + <geom type="box" size="0.06 0.01 0.01" pos="0.23 -0.03 0.1" /> |
| 128 | + <site name="tool_holder_site" pos="0.25 0 0.15" euler="3.1415 0 0" /> |
| 129 | + </body> |
| 130 | + <body name="arm_mount" pos="0.0 0.3 0.3"> |
121 | 131 | <include file="lrmate200id/lrmate200id.xml" /> |
122 | 132 | </body> |
123 | 133 | </worldbody> |
| 134 | + |
| 135 | + <!-- Define weld constraints between the robot flange (tool0) and the gripper, and between the suction cup (tool_tip) |
| 136 | + and the blocks in the scene --> |
| 137 | + <equality> |
| 138 | + <weld |
| 139 | + name="tool_attachment" |
| 140 | + body1="tool0" |
| 141 | + body2="gripper_base" |
| 142 | + active="false" |
| 143 | + torquescale="1" |
| 144 | + /> |
| 145 | + <weld |
| 146 | + name="suction_cup_block1" |
| 147 | + body1="tool_tip" |
| 148 | + body2="block1" |
| 149 | + active="false" |
| 150 | + torquescale="1" |
| 151 | + /> |
| 152 | + <weld |
| 153 | + name="suction_cup_block2" |
| 154 | + body1="tool_tip" |
| 155 | + body2="block2" |
| 156 | + active="false" |
| 157 | + torquescale="1" |
| 158 | + /> |
| 159 | + <weld |
| 160 | + name="suction_cup_block3" |
| 161 | + body1="tool_tip" |
| 162 | + body2="block3" |
| 163 | + active="false" |
| 164 | + torquescale="1" |
| 165 | + /> |
| 166 | + </equality> |
124 | 167 | </mujoco> |
0 commit comments