<?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.049483945072317966 0.006662523384639341 0.004908686206067156" pos="0.24997171195029738 0.25979447239260484 0.20490868620606717" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01977899742653306 0.030733563051438765 0.0029500424064579796" pos="0.061982298104012845 -0.2641438136298392 0.202950042406458" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.040864301888855994 0.018993138178122336 0.004588737427617635" pos="-0.18891487526551887 0.046829233043543694 0.20458873742761766" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030331020211885343 0.002347439054846705 0.0010347460219532474" pos="-0.010867171165475364 0.058012710401433576 0.20103474602195326" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005299838184775239 0.016157644374096947 0.0027532862628615413" pos="0.10726269289178503 0.20170016650445072 0.20275328626286154" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03825368115896481 0.03932274325529414 0.0014742526774950452" pos="-0.10634826929785154 0.07719393820999748 0.20147425267749505" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009505188594096294 0.045536643830879846 0.003651048473125308" pos="-0.265265006327906 0.15052890808145675 0.20365104847312532" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026617241775738678 0.04701765087805935 0.002571696195583946" pos="0.04565808045229852 0.20355338016188212 0.20257169619558396" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04606177730063518 0.04467811123391838 0.0028658951236526673" pos="0.07598242789914827 -0.2992172622246655 0.2028658951236527" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.326038334063 0.5866964895125 0.413002992122" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3815.69711452" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.256669338657368"></joint>
            <site name="object0" pos="0.04896166593700002 0.09830351048750008 0.0069970078780000056" 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.0029921220989 0.0029921220989 0.0029921220989" file="mujoco_models/hubble_model_kit_1.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/knitted_0124.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>
    