cmvr-es/model/xiaozhao/xml/touch_scene.xml

52 lines
3.3 KiB
XML
Raw Permalink Normal View History

<mujoco model="xiaozhao_touch_scene">
<!-- Fixed cockpit screen, referencing the DEEPAL S05 15.4-inch Sunflower version.
Units: metres/radians; base_link = world = driver H-point reference.
+X forward, +Y left, +Z up; left-hand-drive layout.
Official reference: 15.4-inch diagonal, up to 15 deg driver/passenger swivel.
https://www.changaneurope.com/uk/models/changan-deepal-s05-bev
Simulation estimates (not measured S05 dimensions): 16:10 glass aspect,
glass center (0.60, -0.25, 0.38) m, 15 deg rearward recline.
Glass size: 331.703 x 207.314 mm; left/right swivel set to 0 deg.
Local +Y is the front normal, +Z is up, -X is the viewer's right.
Rotation: Ry(15 deg) * Rz(90 deg).
Body position compensates the local glass front offset (0, 0.015, 0).
The head camera remains attached through head_camera.xml. -->
<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.614488887394 -0.25 0.376117714323"
quat="0.701057384650 0.092295955641 0.092295955641 0.701057384650">
<geom name="screen_frame" type="box" size="0.173851508297 0.012 0.111657192686"
material="screen_frame_material" contype="1" conaffinity="1"/>
<geom name="screen_surface" type="box" pos="0 0.013 0"
size="0.165851508297 0.002 0.103657192686" 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.165851508297 0.015 0.103657192686" size="0.002" rgba="1 1 0 1"/>
<site name="screen_top_right" pos="-0.165851508297 0.015 0.103657192686" size="0.002" rgba="1 1 0 1"/>
<site name="screen_bottom_left" pos="0.165851508297 0.015 -0.103657192686" size="0.002" rgba="1 1 0 1"/>
<site name="screen_bottom_right" pos="-0.165851508297 0.015 -0.103657192686" size="0.002" rgba="1 1 0 1"/>
<!-- ID 1: 20 mm texture including quiet zone, 16 mm black tag region.
Top-left 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.137101508297 0.0151 0.074907192686" 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>
<!-- Simplified fixed rear mount; not a measured dashboard or collision model. -->
<geom name="screen_mount" type="box" pos="0 -0.05 -0.07" size="0.03 0.038 0.025"
material="screen_frame_material" contype="0" conaffinity="0"/>
</body>
</worldbody>
</mujoco>