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

43 lines
2.2 KiB
XML
Raw Normal View History

<mujoco model="xiaozhao_hand_camera">
<!-- generate_mujoco_xml.py merges these assets and attaches the worldbody
children to link7-right. Positions below are expressed in right J7 axes. -->
<asset>
<!-- tag36h11 ID 0: 20 mm texture including quiet zone, 16 mm black tag. -->
<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>
<!-- Use the existing CAD housing. Selected front window is at J7
(0.0325, -0.12555, 0.036); optical center sits 0.5 mm outside it. -->
<body name="hand_camera_mount" pos="0.0325 -0.12605 0.036">
<!-- Camera -Z points along the fingers (J7 -Y); camera +Y is J7 +Z. -->
<camera name="hand_cam" pos="0 0 0"
quat="0 0 0.7071067811865476 0.7071067811865476"
fovy="60"/>
<!-- Thin lens marker behind the optical center; no additional case. -->
<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>
<!-- Tag H sits on the +X end of the camera backplate (left in the rear view),
facing J7 +Y. Backplate y=-0.095; tag back face is 0.1 mm outside it.
The 20 mm texture keeps the established mounting center and orientation.
In H coordinates: TCP position=(-0.0275,0.081,-0.1354), rotation=Rx(pi/2).
The existing 5 mm red tcp-right sphere remains the touch endpoint. -->
<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>
</worldbody>
</mujoco>