<mujoco model="ant">
	<compiler angle="degree" coordinate="local" inertiafromgeom="true"/>
	<option integrator="RK4" timestep="0.002"/>
	<custom>
		<numeric data="0.0 0.0 0.55 1.0 0.0 0.0 0.0 0.0 1.0 0.0 -1.0 0.0 -1.0 0.0 1.0" name="init_qpos"/>
	</custom>
	<default>
		<joint armature="1" damping="1" limited="true"/>
		<geom conaffinity="0" condim="3" density="5.0" friction="1 0.5 0.5" margin="0.01" rgba="0.8 0.6 0.4 1"/>
	</default>
	<asset>
		<texture builtin="gradient" height="100" rgb1="1 1 1" rgb2="0 0 0" type="skybox" width="100"/>
		<texture builtin="flat" height="1278" mark="cross" markrgb="1 1 1" name="texgeom" random="0.01" rgb1="0.8 0.6 0.4" rgb2="0.8 0.6 0.4" type="cube" width="127"/>
		<texture builtin="checker" height="100" name="texplane" rgb1="0 0 0" rgb2="0.8 0.8 0.8" type="2d" width="100"/>
		<material name="MatPlane" reflectance="0.5" shininess="1" specular="1" texrepeat="60 60" texture="texplane"/>
		<material name="geom" texture="texgeom" texuniform="true"/>
	</asset>
	<worldbody>
		<light cutoff="100" diffuse="1 1 1" dir="-0 0 -1.3" directional="true" exponent="1" pos="0 0 1.3" specular=".1 .1 .1"/>
		<geom conaffinity="1" condim="3" material="MatPlane" name="floor" pos="0 0 0" rgba="0.8 0.9 0.8 1" size="40 40 40" type="plane"/>
		<body name="torso" pos="0 0 0.75">


			<!--머리-->
			<geom name="head" pos="0.85 0 0.1" size="0.16" type="sphere"/>
			<geom name="torso_geom" pos="0.65 0 0.1" size="0.25" type="sphere"/>
			<!--<geom name="belly" pos="0.2 0 0.1" size="0.3" type="sphere"/>-->
			<geom name="tail" fromto="0.2 0 0.08 0 0 0.08" size="0.25" type="capsule"/>



			<joint armature="0" damping="0" limited="false" margin="0.01" name="root" pos="0 0 0" type="free"/>

			<!--다리1-->
			<body name="first_leg" pos="0.8 0.2 0">
				<joint axis="0 0 1" name="hip_1" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 0.2 0.2 0.0" name="joint_1_geom" size="0.1" type="capsule"/>
				<!--<joint axis="-1 1 0" name="up_1" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 0.02 0.0 0.2 0.2 0.3" name="aux_1_geom" size="0.08" type="capsule"/>-->


				<body name="aux_1" pos="0.2 0.2 0">
					<!--<joint axis="-1 1 0" name="hip_1" pos="0 0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 0.2 0.2 0.0" name="first_leg_geom" size="0.08" type="capsule"/>

					<body pos="0.2 0.2 0">
						<joint axis="-1 1 0" name="ankle_1" pos="0.0 0.0 0.0" range="30 70" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 0.4 0.4 0.0" name="first_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>

			<!--다리2-->
			<body name="second_leg" pos="0.7 0.2 0">

				<joint axis="0 0 1" name="hip_2" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 0.08 0.28284 0.0" name="joint_2_geom" size="0.1" type="capsule"/>
				<!--<joint axis="1 0 0" name="up_2" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 0.02 0.0 0.08 0.28284 0.3" name="aux_2_geom" size="0.08" type="capsule"/>-->

				<body name="aux_2" pos="0.08 0.28284 0">
					<!--<joint axis="1 0 0" name="hip_2" pos="0.0 0.0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 0.08 0.28284 0.0" name="second_leg_geom" size="0.08" type="capsule"/>

					<body pos="0.08 0.28284 0">
						<joint axis="1 0 0" name="ankle_2" pos="0.0 0.0 0.0" range="-70 -30" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 0.16 0.56568 0.0" name="second_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>

			<!--다리3-->
			<body name="third_leg" pos="0.6 0.2 0">

				<joint axis="0 0 1" name="hip_3" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 -0.08 0.28284 0.0" name="joint_3_geom" size="0.1" type="capsule"/>
				<!--<joint axis="1 0 0" name="up_3" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 0.02 0.0 -0.08 0.28284 0.3" name="aux_3_geom" size="0.08" type="capsule"/>-->

				<body name="aux_3" pos="-0.08 0.28284 0">
					<!--<joint axis="1 0 0" name="hip_3" pos="0.0 0.0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 -0.08 0.28284 0.0" name="third_leg_geom" size="0.08" type="capsule"/>

					<body pos="-0.08 0.28284 0">
						<joint axis="1 0 0" name="ankle_3" pos="0.0 0.0 0.0" range="-70 -30" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 -0.16 0.56568 0.0" name="third_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>

			<!--다리4-->
			<body name="fourth_leg" pos="0.5 0.2 0">
				<joint axis="0 0 1" name="hip_4" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 -0.2 0.2 0.0" name="joint_4_geom" size="0.1" type="capsule"/>
				<!--<joint axis="1 1 0" name="up_4" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 0.02 0.0 -0.2 0.2 0" name="aux_4_geom" size="0.08" type="capsule"/>-->

				<body name="aux_4" pos="-0.2 0.2 0">
					<!--<joint axis="1 1 0" name="hip_4" pos="0.0 0.0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 -0.2 0.2 0.0" name="fourth_leg_geom" size="0.08" type="capsule"/>

					<body pos="-0.2 0.2 0">
						<joint axis="1 1 0" name="ankle_4" pos="0.0 0.0 0.0" range="-70 -30" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 -0.4 0.4 0.0" name="fourth_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>

			<!--다리5-->
			<body name="fifth_leg" pos="0.5 -0.2 0">

				<joint axis="0 0 1" name="hip_5" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 -0.2 -0.2 0.0" name="joint_5_geom" size="0.1" type="capsule"/>
				<!--<joint axis="-1 1 0" name="up_5" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 -0.02 0.0 -0.2 -0.2 0.3" name="aux_5_geom" size="0.08" type="capsule"/>-->
				
				<body name="aux_5" pos="-0.2 -0.2 0">
					<!--<joint axis="-1 1 0" name="hip_5" pos="0.0 0.0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 -0.2 -0.2 0.0" name="fifth_leg_geom" size="0.08" type="capsule"/>
					
					<body pos="-0.2 -0.2 0">
						<joint axis="-1 1 0" name="ankle_5" pos="0.0 0.0 0.0" range="-70 -30" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 -0.4 -0.4 0.0" name="fifth_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>


			<!--다리6-->
			<body name="sixth_leg" pos="0.6 -0.2 0">

				<joint axis="0 0 1" name="hip_6" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 -0.08 -0.28284 0.0" name="joint_6_geom" size="0.1" type="capsule"/>
				<!--<joint axis="-1 0 0" name="up_6" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 -0.02 0.0 -0.08 -0.28284 0.3" name="aux_6_geom" size="0.08" type="capsule"/>-->
			
				<body name="aux_6" pos="-0.08 -0.28284 0">
					<!--<joint axis="-1 0 0" name="hip_6" pos="0.0 0.0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 -0.08 -0.28284 0.0" name="sixth_leg_geom" size="0.08" type="capsule"/>
					
					<body pos="-0.08 -0.28284 0">
						<joint axis="-1 0 0" name="ankle_6" pos="0.0 0.0 0.0" range="-70 -30" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 -0.16 -0.56568 0.0" name="sixth_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>

			<!--다리 7-->
			<body name="seven_leg" pos="0.7 -0.2 0">
				<joint axis="0 0 1" name="hip_7" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 0.08 -0.28284 0.0" name="joint_7_geom" size="0.1" type="capsule"/>

				<!--<joint axis="1 0 0" name="up_7" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 -0.02 0.0 0.08 -0.28284 0.3" name="aux_7_geom" size="0.08" type="capsule"/>-->
				
				<body name="aux_7" pos="0.08 -0.28284 0">
					<!--<joint axis="1 0 0" name="hip_7" pos="0.0 0.0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 0.08 -0.28284 0.0" name="seventh_leg_geom" size="0.08" type="capsule"/>
					
					<body pos="0.08 -0.28284 0">
						<joint axis="1 0 0" name="ankle_7" pos="0.0 0.0 0.0" range="30 70" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 0.16 -0.56568 0.0" name="seventh_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>

			<!--다리 8-->
			<body name="eighth_leg" pos="0.8 -0.2 0">
				<joint axis="0 0 1" name="hip_8" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
				<geom fromto="0.0 0.0 0.0 0.2 -0.2 0.0" name="joint_8_geom" size="0.1" type="capsule"/>

				<!--<joint axis="1 1 0" name="up_8" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>-->
				<!--<geom fromto="0.02 -0.02 0.0 0.2 -0.2 0.3" name="aux_8_geom" size="0.08" type="capsule"/>-->
				
				<body name="aux_8" pos="0.2 -0.2 0">
					<!--<joint axis="1 1 0" name="hip_8" pos="0.0 0.0 0.3" range="-30 30" type="hinge"/>-->
					<geom fromto="0.0 0.0 0.0 0.2 -0.2 0.0" name="eighth_leg_geom" size="0.08" type="capsule"/>
					
					<body pos="0.2 -0.2 0">
						<joint axis="1 1 0" name="ankle_8" pos="0.0 0.0 0.0" range="30 70" type="hinge"/>
						<geom fromto="0.0 0.0 0.0 0.4 -0.4 0.0" name="eighth_ankle_geom" size="0.08" type="capsule"/>
					</body>
				</body>
			</body>

		</body>
	</worldbody>

	<actuator>
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_1" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_1" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_1" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_1" gear="150"/>

		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_2" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_2" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_2" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_2" gear="150"/>

		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_3" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_3" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_3" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_3" gear="150"/>

		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_4" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_4" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_4" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_4" gear="150"/>

		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_5" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_5" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_5" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_5" gear="150"/>

		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_6" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_6" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_6" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_6" gear="150"/>

		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_7" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_7" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_7" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_7" gear="150"/>

		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="joint_8" gear="150"/>-->
		<!--<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="up_8" gear="150"/>-->
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_8" gear="150"/>
		<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_8" gear="150"/>
	</actuator>


	<!--<sensor>

		<touch name="touch_first_ankle_geom" site="first_ankle_geom"/>
		<touch name="touch_second_ankle_geom" site="second_ankle_geom"/>
		<touch name="touch_third_ankle_geom" site="third_ankle_geom"/>
		<touch name="touch_fourth_ankle_geom" site="fourth_ankle_geom"/>
		<touch name="touch_fifth_ankle_geom" site="fifth_ankle_geom"/>
		<touch name="touch_sixth_ankle_geom" site="sixth_ankle_geom"/>
		<touch name="touch_fourth_ankle_geom" site="seventh_ankle_geom"/>
		<touch name="touch_fifth_ankle_geom" site="eighth_ankle_geom"/>

	</sensor>-->



</mujoco>
