<?xml version="1.0" encoding="utf-8"?>
<mujoco>
    <compiler angle="radian" coordinate="local" meshdir="../stls/fetch" texturedir="../textures"></compiler>
    <option timestep="0.002">
        <flag warmstart="enable"></flag>
    </option>

    <include file="shared.xml"></include>
    
    <worldbody>
        <geom name="floor0" pos="1.42 0.75 0" size="1.0 0.7 1" type="plane" condim="3" material="floor_mat"></geom>
        <body name="floor0" pos="1.42 0.75 0">
            <site name="target0" pos="0 0 0.5" size="0.02 0.02 0.02" rgba="1 0 0 1" type="sphere"></site>
        </body>

        <include file="robot.xml"></include>
        
        <body pos="1.65 0.75 0.2" name="table0">
            <geom size="0.5 0.45 0.2" type="box" mass="20000" material="table_mat"></geom><geom size="0.00809817580869496 0.031803755278478486 0.0031529398181786464" pos="-0.1356102955225135 -0.2544418103238257 0.20315293981817867" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.046289859217528595 0.04582075751790757 0.00039863153140804277" pos="-0.2206219788595974 0.19798476636504203 0.20039863153140805" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040099986671786304 0.02881473026131085 0.0004710675947393358" pos="0.21301383979106064 -0.1581761834614323 0.20047106759473934" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.042694610961536324 0.021345158052032926 0.004260531373556372" pos="-0.2748309792168097 -0.10322591924742683 0.20426053137355638" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024877249157328203 0.04543242533615347 0.0009182588086409833" pos="-0.21778827542274798 -0.17571751698145585 0.200918258808641" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005374321843176882 0.012333060598074458 0.0008726634966087631" pos="0.160915371063504 -0.006191559420629489 0.20087266349660876" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.035169531666757285 0.014597193915786264 0.0036194222591172318" pos="0.15948184776821445 -0.12881510471263793 0.20361942225911725" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045609155139503865 0.03174913553246137 0.0008133158850102499" pos="0.07098170099085188 -0.24898920864195317 0.20081331588501025" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04929375095183002 0.036792106336825794 0.0006939465808318893" pos="0.28889112507081244 -0.16909100343727004 0.2006939465808319" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02293332705159049 0.028469983764071612 0.0019999442029075727" pos="-0.21950445267458996 0.09339500721433991 0.2019999442029076" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4315676043485 0.8102392215809999 0.41300371996249996" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="532.557550133" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.189377945424209"></joint>
            <site name="object0" pos="-0.056567604348499945 -0.12523922158099987 0.0069962800375000245" size="0.002 0.002 0.002" rgba="1 0 0 0" type="sphere"></site>
        </body>

        <body name="hook" pos="1.0 0.025 0.025">
            <joint name="hook:joint" type="free" damping="0.01"></joint>
            <geom size="0.4 0.015 0.015" type="box" condim="3" name="hook_base" material="block_mat" mass="2"></geom>
            <geom size="0.015 0.1 0.015" pos="0.4 0.085 0." type="box" condim="3" name="hook_head" material="block_mat" mass="2"></geom>
            <site name="hook" pos="-0.25 0 0" size="0.002 0.002 0.002" rgba="1 0 0 1" type="sphere"></site>
        </body>

        <light directional="true" ambient="0.2 0.2 0.2" diffuse="0.8 0.8 0.8" specular="0.3 0.3 0.3" castshadow="false" pos="0 0 4" dir="0 0 -1" name="light0"></light>
    </worldbody>

    <asset>
        <mesh scale="0.00371996213131 0.00371996213131 0.00371996213131" file="mujoco_models/hubble_model_kit_7.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/matted_0159.png" name="object"/>
        <material specular="1" texture="object" rgba="0.9 0.9 0.9 1" shininess="0.3" name="object"/>
    </asset>
    
    <actuator>
        <position ctrllimited="true" ctrlrange="0 0.2" joint="robot0:l_gripper_finger_joint" kp="30000" name="robot0:l_gripper_finger_joint" user="1"></position>
        <position ctrllimited="true" ctrlrange="0 0.2" joint="robot0:r_gripper_finger_joint" kp="30000" name="robot0:r_gripper_finger_joint" user="1"></position>
    </actuator>
</mujoco>
    