<?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.013112908559778723 0.028677117638389035 0.0005632508275544824" pos="-0.08205157897939039 -0.051652900895859694 0.2005632508275545" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.024220897841330972 0.04564969638908222 0.003263976291041584" pos="-0.1496892552429921 0.16655270983763826 0.2032639762910416" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022900053630777614 0.034881038319830374 0.00040215105405126634" pos="-0.18148914043391962 0.03852587327512702 0.20040215105405126" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03350521485138067 0.008422261553140156 0.004866143800118344" pos="-0.1903618619368771 0.21376511702149764 0.20486614380011836" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016123979285004704 0.04352536046287407 0.0017234655499870502" pos="0.1765897529547647 -0.23105419158227525 0.20172346554998707" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008911546022642033 0.04024573119608415 0.002665229048532288" pos="-0.21503907111561235 -0.09613209435562467 0.2026652290485323" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04671477959385932 0.041061215169845046 0.0030922709924052954" pos="0.179729890824333 -0.033019148276702326 0.20309227099240532" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.028340319793716987 0.0014142953810974222 0.0009475417594936055" pos="0.1370569894891106 0.24592539927381757 0.20094754175949361" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02046919753943639 0.006343448303658217 0.00479766553040652" pos="-0.29726690553470264 0.26911447771152724 0.20479766553040654" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01273056065408882 0.01651566056679653 0.0031104211680970184" pos="0.1913119360419921 0.08350746994541824 0.20311042116809702" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.045227413602472066 0.04850580635451133 0.00018706413355088327" pos="0.04139823125590164 -0.2610444715213935 0.2001870641335509" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4342813840285 0.5620536353965 0.41300372440699995" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="852.93278087" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.6429135874466776"></joint>
            <site name="object0" pos="-0.05928138402850003 0.12294636460350006 0.006996275593000034" 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.00372440690522 0.00372440690522 0.00372440690522" file="mujoco_models/hubble_model_kit_5.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/smeared_0100.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>
    