<?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.030414907096124575 0.029301880816991373 0.004500237084635991" pos="0.26798661396520734 0.11418546406641172 0.204500237084636" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026523513364171893 0.032099046475191496 0.004619582010025353" pos="-0.22481783968824365 -0.018817451280522868 0.20461958201002536" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.019821223123112124 0.0335255706713525 0.0026917833435141174" pos="-0.2010124657317035 -0.11598728598685779 0.20269178334351412" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04581440977186761 0.013186958606681662 0.0029540793479702985" pos="0.07008972387398127 0.24660054117669988 0.2029540793479703" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03668797085768447 0.043246961664136496 0.0036441064530969747" pos="-0.23689011410640676 -0.28457977607743373 0.203644106453097" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.036106314936248954 0.013962620144774708 0.004155809825610894" pos="0.04187457806730516 0.2972140775217504 0.2041558098256109" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008922688480588137 0.03686170564292175 0.0016903728359791619" pos="-0.19951961833639315 -0.0211043644641688 0.20169037283597918" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04113990088110936 0.04970314047062098 0.0009518797022993577" pos="-0.21849080710244292 -0.2179429341462613 0.20095187970229936" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4446625546185 0.5422748212265 0.4130043766135" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="838.339897872" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="4.871651982528573"></joint>
            <site name="object0" pos="-0.0696625546184999 0.1427251787735001 0.006995623386500005" 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.00437661339572 0.00437661339572 0.00437661339572" file="mujoco_models/hubble_model_kit_5.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bubbly_0067.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>
    