<?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.042673241354192634 0.013074443217793868 0.003009250750188112" pos="0.19563193942515839 -0.03223363251332306 0.20300925075018814" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04430815387227891 0.0070031430853368165 0.004285203777045034" pos="-0.10377303963014667 -0.010710450948747341 0.20428520377704504" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.007102618383490134 0.046372566348367734 0.002660067092269124" pos="0.020419853204527216 -0.10019098604785445 0.20266006709226914" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016346514948720657 0.048916278788483605 0.0007346787544401746" pos="0.07036734745407347 0.28465081992949554 0.20073467875444018" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.043439694800941286 0.03858749255913253 0.003345687187386808" pos="-0.18418846704468933 -0.16764191191362354 0.20334568718738683" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03662236434144904 0.009436489286130924 0.0041028010569200595" pos="0.16941222071079598 -0.26696721676831875 0.20410280105692008" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.010804636643086767 0.0030586874583928185 0.003346967006503625" pos="-0.022910564401729006 -0.23372102830400626 0.20334696700650365" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04339083562018257 0.024152860768779236 0.002913620984303471" pos="-0.13004137558104492 -0.1630527928261515 0.2029136209843035" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.015607625696150165 0.006677752040008683 0.0027584744546851818" pos="-0.17133914784586804 -0.21840315258691123 0.2027584744546852" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03822005985800638 0.005818309524909338 0.0008277079851875202" pos="0.009225099694519123 -0.0010812750707400176 0.20082770798518754" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.008384478204882567 0.002469593730452967 0.0025592655216796225" pos="-0.035213771592268794 0.2921653876428825 0.20255926552167963" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03803791785711911 0.0056496258930089655 0.0046496717903433465" pos="-0.1384266727937618 0.20719622660815745 0.20464967179034335" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3172428343054998 0.616540972222 0.4112648107329999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="3063.36837151" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="2.4120616809759206"></joint>
            <site name="object0" pos="0.05775716569450018 0.06845902777800006 0.008735189267000065" 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.000774638062305 0.000774638062305 0.000774638062305" file="mujoco_models/fox.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/stratified_0073.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>
    