<?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.043516522083717216 0.018151688186405304 0.002288679703959799" pos="0.1802218177889907 0.2951229481603372 0.2022886797039598" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.016144458687127113 0.0025417847687672157 0.002075147495279962" pos="-0.12700231950525492 0.051766839357305916 0.20207514749527997" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04289390710967283 0.04158884805982668 0.000801413755182742" pos="0.21398796046697405 -0.02636693079895963 0.20080141375518276" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.01447538734314176 0.04760302942725173 0.002151143919221853" pos="0.17338366406123823 -0.1956377306589728 0.20215114391922187" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.030595996798489834 0.03420384880995149 0.0021016770827628796" pos="0.163148360337108 0.15227028739117132 0.2021016770827629" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.02766634633079965 0.0034840305026049875 0.003137467624609746" pos="-0.13751202894441786 -0.1843947969843812 0.20313746762460977" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.03859560708951793 0.027432596323419906 0.004877900233896462" pos="-0.18127369216219347 -0.047213166317252475 0.20487790023389646" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.047555427944904104 0.00970463908157268 0.000954640461790202" pos="-0.1978288787684236 0.21183828102599395 0.2009546404617902" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.013433317378423272 0.015289153930605169 0.004289841044427487" pos="-0.13953950076329397 0.020235391122542468 0.2042898410444275" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.026948111184736556 0.02198350393026956 0.0014186724155781148" pos="-0.08378017384025507 0.1071163427971284 0.20141867241557812" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.009458657926595653 0.01500927586371244 0.004392022591032611" pos="-0.04200034713672074 0.19368190140929026 0.20439202259103262" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
<geom size="0.04352564978717322 0.04551300946060156 0.0005781090569626835" pos="-0.04362861055139383 0.21003865651103876 0.2005781090569627" type="box" mass="200" rgba="0.4 0.4 0.4 1"></geom>
        </body>
        
        <body pos="1.3711822865399999 0.6749999999999999 0.4129999999999999" name="object0">
            <light castshadow="false"/>
            <geom type="mesh" density="5192.00975747" rgba="1 1 1 1" material="object" mesh="object_mesh" conaffinity="0" contype="1"/>
            <joint name="object0:joint" type="free" damping="3.8776571428968203"></joint>
            <site name="object0" pos="0.0038177134600001494 0.01000000000000012 0.007000000000000062" 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.003055579992155 0.003055579992155 0.003055579992155" file="mujoco_models/famicon-port-cover.stl" name="object_mesh"/>
        <texture file="textures/obj_textures/bumpy_0200.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>
    