Add Xiaozhao arms and head models, device selection, and fresh GetPose queries with configurable end links. Reset polling, commands, and plots on device changes. Expose MoveJ jerk and joint zero calibration, improve joint naming and plot handling, and cover model switching and request lifecycles with regression tests. Update AprilTag generation to default to PDF and include the refreshed exports, model meshes, and existing workspace artifacts.
179 lines
17 KiB
XML
179 lines
17 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
<mujoco model="xiaozhao">
|
|
<!-- Generated from ../urdf/xiaozhao.urdf with MuJoCo 3.3.7; base_link is the single fixed root. -->
|
|
<!-- Simplified visuals are in meshes/visual; original collision meshes and inertias are retained. -->
|
|
<!-- Collision group 3 is hidden by default. Contact exclusions, environment and actuators are included by scene.xml. -->
|
|
<!-- Inertial-origin rotations are incorporated in link-frame tensors before conversion. -->
|
|
<!-- TCP visual spheres from URDF are represented by non-colliding, massless sites. -->
|
|
<!-- Cameras and hand AprilTag are mounted from hand_camera.xml and head_camera.xml by the generator. -->
|
|
<compiler angle="radian" meshdir="../meshes" />
|
|
<asset>
|
|
<mesh name="base_link_visual" file="visual/base_link.STL" />
|
|
<mesh name="base_link" file="base_link.obj" />
|
|
<mesh name="link1-left_visual" file="visual/link1-left.STL" />
|
|
<mesh name="link1-left" file="link1-left.STL" />
|
|
<mesh name="link2-left_visual" file="visual/link2-left.STL" />
|
|
<mesh name="link2-left" file="link2-left.STL" />
|
|
<mesh name="link3-left_visual" file="visual/link3-left.STL" />
|
|
<mesh name="link3-left" file="link3-left.STL" />
|
|
<mesh name="link4-left_visual" file="visual/link4-left.STL" />
|
|
<mesh name="link4-left" file="link4-left.STL" />
|
|
<mesh name="link5-left_visual" file="visual/link5-left.STL" />
|
|
<mesh name="link5-left" file="link5-left.STL" />
|
|
<mesh name="link6-left_visual" file="visual/link6-left.STL" />
|
|
<mesh name="link6-left" file="link6-left.STL" />
|
|
<mesh name="link7-left_visual" content_type="model/stl" file="visual/link7-left.STL" />
|
|
<mesh name="link7-left" content_type="model/obj" file="link7-left.obj" />
|
|
<mesh name="link1-right_visual" content_type="model/stl" file="visual/link1-right.STL" />
|
|
<mesh name="link1-right" content_type="model/stl" file="link1-right.STL" />
|
|
<mesh name="link2-right_visual" content_type="model/stl" file="visual/link2-right.STL" />
|
|
<mesh name="link2-right" content_type="model/stl" file="link2-right.STL" />
|
|
<mesh name="link3-right_visual" content_type="model/stl" file="visual/link3-right.STL" />
|
|
<mesh name="link3-right" content_type="model/stl" file="link3-right.STL" />
|
|
<mesh name="link4-right_visual" content_type="model/stl" file="visual/link4-right.STL" />
|
|
<mesh name="link4-right" content_type="model/stl" file="link4-right.STL" />
|
|
<mesh name="link5-right_visual" content_type="model/stl" file="visual/link5-right.STL" />
|
|
<mesh name="link5-right" content_type="model/stl" file="link5-right.STL" />
|
|
<mesh name="link6-right_visual" content_type="model/stl" file="visual/link6-right.STL" />
|
|
<mesh name="link6-right" content_type="model/stl" file="link6-right.STL" />
|
|
<mesh name="link7-right_visual" content_type="model/stl" file="visual/link7-right.STL" />
|
|
<mesh name="link7-right" content_type="model/obj" file="link7-right.obj" />
|
|
<mesh name="neck_Link1_visual" file="visual/neck_Link1.STL" />
|
|
<mesh name="neck_Link1" file="neck_Link1.STL" />
|
|
<mesh name="neck_Link2_visual" file="visual/neck_Link2.STL" />
|
|
<mesh name="neck_Link2" content_type="model/stl" file="neck_Link2.STL" />
|
|
<mesh name="neck_Link3_visual" content_type="model/stl" file="visual/neck_Link3.STL" />
|
|
<mesh name="neck_Link3" content_type="model/stl" file="neck_Link3.STL" />
|
|
<texture name="hand_apriltag_tex" type="2d" file="../../april_tag/tag36_11.png" />
|
|
<material name="hand_apriltag_mat" texture="hand_apriltag_tex" texrepeat="1 1" rgba="1 1 1 1" emission="1" specular="0" shininess="0" reflectance="0" />
|
|
</asset>
|
|
<worldbody>
|
|
<body name="base_link">
|
|
<inertial pos="-0.0158821 -1.19385e-06 0.0601573" quat="0.567469 0.567478 -0.421866 0.421873" mass="12.0939" diaginertia="0.132319 0.107992 0.0771993" />
|
|
<geom pos="0 0 0" quat="0.707107 0 0 0.707107" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.752941 0.752941 0.752941 1" mesh="base_link_visual" />
|
|
<geom pos="0 0 0" quat="0.707107 0 0 0.707107" type="mesh" rgba="0.752941 0.752941 0.752941 1" mesh="base_link" group="3" />
|
|
<body name="link1-left" pos="-0.0405 0.1478 0.441" quat="0.499999 -0.500001 0.500001 0.499999">
|
|
<inertial pos="6.75324e-05 -0.00414125 0.0357014" quat="0.509548 0.489669 0.510529 0.489842" mass="0.304091" diaginertia="0.000428415 0.000350261 0.000245055" />
|
|
<joint name="joint1-left" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link1-left_visual" />
|
|
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link1-left" group="3" />
|
|
<body name="link2-left" pos="0 -0.04975 0.053" quat="0.707108 0.707105 0 0">
|
|
<inertial pos="7.2506e-05 0.080783 -0.0422541" quat="0.55751 0.436682 -0.437069 0.554493" mass="0.238736" diaginertia="0.000254541 0.000233071 0.000168039" />
|
|
<joint name="joint2-left" pos="0 0 0" axis="0 0 1" range="-1.57 1.57" />
|
|
<geom quat="0 -1 0 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link2-left_visual" />
|
|
<geom quat="0 -1 0 0" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link2-left" group="3" />
|
|
<body name="link3-left" pos="0 0.1575 -0.04975" quat="0.707108 -0.707105 0 0">
|
|
<inertial pos="0.000612208 0.00229659 0.0517903" quat="0.554126 0.440405 0.547991 0.445751" mass="0.206576" diaginertia="0.000213017 0.000187538 0.000106796" />
|
|
<joint name="joint3-left" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
|
<geom quat="0.707107 0 0 -0.707107" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link3-left_visual" />
|
|
<geom quat="0.707107 0 0 -0.707107" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link3-left" group="3" />
|
|
<body name="link4-left" pos="0 -0.04125 0.0945" quat="0.707105 0.707108 0 0">
|
|
<inertial pos="0.00026874 0.0373909 -0.035949" quat="0.498863 0.503434 -0.501111 0.496565" mass="0.0803293" diaginertia="0.000120598 0.000106626 1.58831e-05" />
|
|
<joint name="joint4-left" pos="0 0 0" axis="0 0 1" range="-2.355 0" />
|
|
<geom pos="-0.0038192 0 -0.0416" quat="0.707107 0 -0.707107 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link4-left_visual" />
|
|
<geom pos="-0.0038192 0 -0.0416" quat="0.707107 0 -0.707107 0" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link4-left" group="3" />
|
|
<body name="link5-left" pos="0 0.1315 -0.04125" quat="0.707105 -0.707108 0 0">
|
|
<inertial pos="-0.000647708 0.00811978 0.041878" quat="0.703234 -0.0446477 -0.0360034 0.708642" mass="0.171116" diaginertia="0.000175707 0.000110948 8.42989e-05" />
|
|
<joint name="joint5-left" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link5-left_visual" />
|
|
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link5-left" group="3" />
|
|
<body name="link6-left" pos="0 -0.0369 0.1145" quat="0.707108 0.707105 0 0">
|
|
<inertial pos="0.0160148 0.000660039 -0.0380435" quat="0.706915 0.00969709 0.00781159 0.707189" mass="0.0326968" diaginertia="3.0484e-05 2.67251e-05 6.25024e-06" />
|
|
<joint name="joint6-left" pos="0 0 0" axis="0 0 1" range="-0.785 0.45" />
|
|
<geom quat="0 -1 0 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link6-left_visual" />
|
|
<geom quat="0 -1 0 0" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link6-left" group="3" />
|
|
<body name="link7-left" pos="-0.037 0 -0.0369" quat="0.707105 2.59734e-06 -0.707108 2.59735e-06">
|
|
<inertial pos="0.00178605 0.0813605 -0.0221116" quat="0.591603 0.379349 -0.390017 0.594969" mass="0.0935117" diaginertia="5.86461e-05 5.06687e-05 2.54633e-05" />
|
|
<joint name="joint7-left" pos="0 0 0" axis="0 0 1" range="-1.05 1.05" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="1 1 1 1" mesh="link7-left_visual" />
|
|
<geom type="mesh" rgba="1 1 1 1" mesh="link7-left" group="3" />
|
|
<body name="tcp-left" pos="0.007 0.23 -0.045">
|
|
<site size="0.0025" rgba="1 0 0 1" name="tcp-left" type="sphere" group="1" />
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
<body name="link1-right" pos="-0.0405 -0.1478 0.441" quat="0.707105 0.707108 -1.29868e-06 -1.29867e-06">
|
|
<inertial pos="0.00186095 -6.57028e-05 0.0370126" quat="0.707342 0.706656 -0.0127919 0.0118593" mass="0.286348" diaginertia="0.000422643 0.00034441 0.000244327" />
|
|
<joint name="joint1-right" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link1-right_visual" />
|
|
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link1-right" group="3" />
|
|
<body name="link2-right" pos="0.04975 0 0.053" quat="0.499998 -0.5 0.500002 -0.5">
|
|
<inertial pos="7.27313e-05 -0.080783 -0.0425927" quat="0.434354 0.554857 -0.55773 0.438642" mass="0.238736" diaginertia="0.000254603 0.00023307 0.000167979" />
|
|
<joint name="joint2-right" pos="0 0 0" axis="0 0 1" range="-1.57 1.57" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link2-right_visual" />
|
|
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link2-right" group="3" />
|
|
<body name="link3-right" pos="0 -0.164 -0.04975" quat="0.499998 0.5 -0.5 0.500002">
|
|
<inertial pos="-0.00460139 0.00042661 0.0434471" quat="0.703869 0.701746 -0.0777895 0.0779152" mass="0.19403" diaginertia="0.000209946 0.000185096 0.000105795" />
|
|
<joint name="joint3-right" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
|
<geom quat="0.707107 0 0 0.707107" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link3-right_visual" />
|
|
<geom quat="0.707107 0 0 0.707107" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link3-right" group="3" />
|
|
<body name="link4-right" pos="0.04125 0 0.088" quat="0.499998 -0.5 0.500002 -0.5">
|
|
<inertial pos="0.000268623 -0.0373908 -0.0354483" quat="0.501111 0.496565 -0.498863 0.503434" mass="0.0803292" diaginertia="0.000120598 0.000106626 1.58831e-05" />
|
|
<joint name="joint4-right" pos="0 0 0" axis="0 0 1" range="0 2.355" />
|
|
<geom pos="0.0038192 0 -0.0416" quat="0.707107 0 -0.707107 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link4-right_visual" />
|
|
<geom pos="0.0038192 0 -0.0416" quat="0.707107 0 -0.707107 0" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link4-right" group="3" />
|
|
<body name="link5-right" pos="0 -0.1315 -0.04125" quat="0.499998 0.5 -0.5 0.500002">
|
|
<inertial pos="-0.0081198 0.000647653 0.0416257" quat="0.998699 -0.0504829 -0.00612479 -0.00374546" mass="0.171116" diaginertia="0.000175707 0.000110871 8.43751e-05" />
|
|
<joint name="joint5-right" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link5-right_visual" />
|
|
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link5-right" group="3" />
|
|
<body name="link6-right" pos="0.0369 0 0.1145" quat="0.499998 -0.5 0.500002 -0.5">
|
|
<inertial pos="0.0160148 -0.000660099 -0.0368135" quat="0.706915 0.00969709 0.00781159 0.707189" mass="0.0326968" diaginertia="3.0484e-05 2.67251e-05 6.25024e-06" />
|
|
<joint name="joint6-right" pos="0 0 0" axis="0 0 1" range="-0.45 0.785" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link6-right_visual" />
|
|
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link6-right" group="3" />
|
|
<body name="link7-right" pos="-0.037 0 -0.0369" quat="0.707105 0 -0.707108 0">
|
|
<inertial pos="-7.26286e-06 0.0250589 0.014929" quat="0.34053 0.620312 -0.619198 0.34036" mass="0.0419947" diaginertia="3.51757e-05 3.12202e-05 1.41845e-05" />
|
|
<joint name="joint7-right" pos="0 0 0" axis="0 0 1" range="-1.05 1.05" />
|
|
<geom pos="0 0 0" quat="0 1 0 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="1 1 1 1" mesh="link7-right_visual" />
|
|
<geom pos="0 0 0" quat="0 1 0 0" type="mesh" rgba="1 1 1 1" mesh="link7-right" group="3" />
|
|
<body name="tcp-right" pos="0.007 -0.23 -0.045">
|
|
<site size="0.0025" rgba="1 0 0 1" name="tcp-right" type="sphere" group="1" />
|
|
</body>
|
|
<body name="hand_camera_mount" pos="0.0325 -0.12605 0.036">
|
|
<camera name="hand_cam" pos="0 0 0" quat="0 0 0.7071067811865476 0.7071067811865476" fovy="60" />
|
|
<geom name="hand_camera_lens" type="cylinder" pos="0 0.00025 0" quat="0.7071067811865476 0.7071067811865476 0 0" size="0.0025 0.0002" rgba="0.05 0.12 0.18 1" mass="0" contype="0" conaffinity="0" group="1" />
|
|
</body>
|
|
<body name="R_HAND_APRILTAG" pos="0.0345 -0.0946 0.036" quat="0.7071067811865476 -0.7071067811865476 0 0">
|
|
<geom name="R_HAND_APRILTAG_GEOM" type="box" size="0.01 0.01 0.0003" material="hand_apriltag_mat" rgba="1 1 1 1" mass="0" contype="0" conaffinity="0" group="2" />
|
|
<site name="R_HAND_APRILTAG_SITE" pos="0 0 0" size="0.002" rgba="1 0 1 0" />
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
<body name="neck_Link1" pos="-0.0405 0 0.5195" quat="0.707107 0 0 0.707107">
|
|
<inertial pos="0.0151599 -6.12013e-08 0.0402005" quat="0.990522 -9.51036e-07 0.137352 4.13566e-06" mass="0.189845" diaginertia="0.000279557 0.000265167 9.02885e-05" />
|
|
<joint name="neck-joint1" pos="0 0 0" axis="0 0 1" range="-1.57 1.57" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="1 1 1 1" mesh="neck_Link1_visual" />
|
|
<geom type="mesh" rgba="1 1 1 1" mesh="neck_Link1" group="3" />
|
|
<body name="neck_Link2" pos="0.031 0 0.1085" quat="0.707105 0 0.707108 0">
|
|
<inertial pos="-2.81713e-05 -0.00170019 -0.0313059" quat="0.702579 -0.0761365 0.0834642 0.702581" mass="0.12185" diaginertia="5.84236e-05 4.54167e-05 3.63665e-05" />
|
|
<joint name="neck-joint2" pos="0 0 0" axis="0 0 1" range="-1.57 0.44" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="1 1 1 1" mesh="neck_Link2_visual" />
|
|
<geom type="mesh" rgba="1 1 1 1" mesh="neck_Link2" group="3" />
|
|
<body name="neck_Link3" pos="0 0.0035 -0.035" quat="0.499998 0.5 -0.5 0.500002">
|
|
<inertial pos="0.000267765 0.0821521 0.0266246" quat="0.541671 0.45374 -0.460711 0.537083" mass="0.521691" diaginertia="0.00207398 0.00140524 0.00121223" />
|
|
<joint name="neck-joint3" pos="0 0 0" axis="0 0 1" range="-0.44 0.44" />
|
|
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.631373 0.658824 0.678431 1" mesh="neck_Link3_visual" />
|
|
<geom type="mesh" rgba="0.631373 0.658824 0.678431 1" mesh="neck_Link3" group="3" />
|
|
<body name="external_camera_mount" pos="0.0325 0.10347742 0.08039297">
|
|
<camera name="external_touch_cam" pos="0 0 0" quat="0 0 0.963863295733281 0.26639734821911742" fovy="50" />
|
|
<site name="external_touch_cam_site" size="0.001" rgba="0.1 0.8 0.3 0" quat="0 0 0.963863295733281 0.26639734821911742" />
|
|
<geom name="external_camera_lens" type="cylinder" pos="0 0.000125 -0.000216506351" quat="0.9659258262890683 0.25881904510252074 0 0" size="0.0025 0.0002" rgba="0.05 0.12 0.18 1" mass="0" contype="0" conaffinity="0" group="1" />
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</body>
|
|
</worldbody>
|
|
</mujoco>
|