<?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.04174285525462818 0.010247163230752376 0.00017587094240147566" pos="-0.2729757474159662 -0.036687290912683634 0.2001758709424015" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.018310699490304092 0.014369599433463262 0.0007012613632896801" pos="0.05857121963201778 -0.01813827919125266 0.2007012613632897" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02933465490904384 0.027259723897404987 0.002287932444472135" pos="0.2919067593596611 -0.20953514786756694 0.20228793244447216" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.022701238342550695 0.01932992916125666 0.004163472960708687" pos="0.272895484681906 0.08967809960228984 0.2041634729607087" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04392368630564504 0.022612890716043933 0.0027086176689447177" pos="-0.13659912800156682 -0.19024532604746142 0.20270861766894474" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03264377199918155 0.027053726769446118 0.004150410930110319" pos="0.10826062725353647 -0.19658727882528637 0.20415041093011033" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.014852345113863852 0.04161516415843058 0.0005355632336621004" pos="0.0872878660801647 -0.10477156671281199 0.20053556323366212" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030045051414950952 0.034692623420956456 0.004856143223886321" pos="0.15025758594536126 0.013558361387708495 0.20485614322388634" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.0450812356872477 0.016139946699741965 0.0003131614179611786" pos="-0.038292289990453254 -0.02661441234426054 0.20031316141796118" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04301908490698658 0.01476245999773933 0.004262209505744122" pos="-0.029827214527393286 0.2294014360416053 0.20426220950574414" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.005626409038079261 0.015545589849699129 0.002593044735291592" pos="-0.024497921690072533 0.14068178590928304 0.2025930447352916" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.006051788662121822 0.045449560510849946 0.004282053132895474" pos="-0.28452688933614884 -0.2797249597576676 0.2042820531328955" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.4341974432225 0.8165265191665 0.41300389290399997" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="54.5651225677" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="1.4729303354184737"></joint>
            <site name="object0" pos="-0.05919744322249998 -0.13152651916649993 0.006996107096000015" 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.003892903890755 0.003892903890755 0.003892903890755" file="mujoco_models/hubble_model_kit_7.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/smeared_0082.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>
    