cmvr-es/model/xiaozhao/xml/touch_scene.xml
lgv 90bae95654 feat(mujoco): integrate xiaozhao dual-arm and touch simulation
Update xiaozhao geometry, base axes, TCPs, neck joints and actuators.
Add mesh generation tools, simplified visuals, screen and hand tags,
and hand/head camera attachments.

Configure both arms and enable the right-arm visual touch workflow with
updated calibration, a camera-visible initial pose and higher-resolution
external perception. Keep touch tests distance-limited with ZeroSimTouch.

Release MuJoCo joint state control on torqueOff, latch the disabled state
until torqueOn, and add regression coverage for actuator and fallback modes.

Validation: isolated device/task initialization, camera acquisition and
AprilTag pose checks passed. Full visual-servo motion was not validated.
2026-11-17 17:26:05 +08:00

46 lines
2.8 KiB
XML

<mujoco model="xiaozhao_touch_scene">
<!-- Fixed touch-test equipment, adapted from right_arm_eye_to_hand.xml.
Units: metres/radians; base_link = world. Robot front is world +X.
Screen: 500 x 300 mm, front normal -X, glass front at x = +0.585 m.
Move touch_screen here; the external camera is attached to the head
through head_camera.xml and generate_mujoco_xml.py. -->
<asset>
<texture name="screen_apriltag_tex" type="2d"
file="../../april_tag/tag36_11_00001.png"/>
<material name="screen_apriltag_mat" texture="screen_apriltag_tex"
texrepeat="-1 -1" rgba="1 1 1 1" emission="1"
specular="0" shininess="0" reflectance="0"/>
<material name="screen_material" rgba="0.04 0.05 0.06 1"
specular="0.25" shininess="0.4"/>
<material name="screen_frame_material" rgba="0.15 0.15 0.15 1"
specular="0.2" shininess="0.3"/>
</asset>
<worldbody>
<body name="touch_screen" pos="0.60 0 0.38" quat="0.7071067811865476 0 0 0.7071067811865476">
<geom name="screen_frame" type="box" size="0.265 0.012 0.165"
material="screen_frame_material" contype="1" conaffinity="1"/>
<geom name="screen_surface" type="box" pos="0 0.013 0"
size="0.25 0.002 0.15" material="screen_material"
contype="1" conaffinity="1" friction="0.5 0.005 0.0001"/>
<site name="screen_center" pos="0 0.015 0" size="0.0025" rgba="1 0 0 1"/>
<site name="screen_top_left" pos="-0.25 0.015 0.15" size="0.002" rgba="1 1 0 1"/>
<site name="screen_top_right" pos="0.25 0.015 0.15" size="0.002" rgba="1 1 0 1"/>
<site name="screen_bottom_left" pos="-0.25 0.015 -0.15" size="0.002" rgba="1 1 0 1"/>
<site name="screen_bottom_right" pos="0.25 0.015 -0.15" size="0.002" rgba="1 1 0 1"/>
<!-- ID 1: 20 mm texture including quiet zone, 16 mm black tag region.
Top-right as viewed by the robot: local -X, +Z; 18.75 mm edge margins.
Entire tag stays inside the glass, offset 0.2 mm from its face. -->
<body name="SCREEN_APRILTAG" pos="-0.22125 0.0151 0.12125" quat="0.7071067811865476 -0.7071067811865476 0 0">
<geom name="SCREEN_APRILTAG_GEOM" type="box" size="0.01 0.01 0.0001"
material="screen_apriltag_mat" contype="0" conaffinity="0" mass="0" group="2"/>
<site name="SCREEN_APRILTAG_SITE" size="0.002" rgba="0 1 0 0"/>
</body>
<!-- A fixed visual stand reaches the floor at z = -0.183 m. -->
<geom name="screen_stand" type="box" pos="0 -0.02 -0.36" size="0.025 0.025 0.19"
material="screen_frame_material" contype="0" conaffinity="0"/>
<geom name="screen_stand_foot" type="box" pos="0 -0.02 -0.553" size="0.18 0.12 0.01"
material="screen_frame_material" contype="0" conaffinity="0"/>
</body>
</worldbody>
</mujoco>