diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..a225c4b03d774eec06e71c83370236eb87e4309d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,45 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +robot/assets/ankle_l_v1.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/ankle_left.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/ankle_r_v1.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/ankle_right.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/bearing_roll.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/bottom_head_shell.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/elec_rpi_robot_hat_pcb.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/face_part.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/foot_left.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/foot_right.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/hip_l.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/jaw.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/jaw_soft.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/left_shell.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/left_upper_leg.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/leg.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/m12_lens_holder.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/motor_support.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/neck_pitch.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/np_f970.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/pcb__raspberry_pi_zero_2_w.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/power_support.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/right_shell.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/right_upper_leg.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/rim.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/roller_blade.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/seeed_bearing__configuration__22x16x4.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/seeed_bearing__configuration_default.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/soft_mouth_top.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/sole_left.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/sole_right.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/tire.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/top_head_shell.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/trunk_base.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/trunk_shell_left.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/trunk_shell_right.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/upper_leg_left.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/upper_leg_right.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/upper_leg_rigidity_plate.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/xl330.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/yaw2roll.stl filter=lfs diff=lfs merge=lfs -text +robot/assets/yaw_roll_motion.stl filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..64f42622975c895a80d37505e8b036700a69770e --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ +--- +language: +- en +- ko +tags: +- robotics +- reinforcement-learning +- mujoco +- onnx +- humanoid +- bipedal +license: mit +pipeline_tag: robotics +--- + +# ๐Ÿฆ† MicroDuck: Bipedal Robot Reinforcement Learning Policies + +This repository contains trained Deep Reinforcement Learning (RL) policy models and MuJoCo simulation assets for the **MicroDuck** small bipedal robot. + +## ๐Ÿ“ฆ Repository Contents + +- `policies/`: Pre-trained ONNX policy checkpoints + - `alpha_walking.onnx`: Dynamic omnidirectional bipedal locomotion + - `alpha_stand.onnx`: Stable posture hold and disturbance rejection + - `alpha_sitstand.onnx`: Continuous sit and stand-up transition + - `alpha_ground_pick.onnx`: Ground object picking motion + - `ball_kick_left.onnx`: Precision left foot ball kick + - `roulade.onnx`: Dynamic forward roll (roulade) motion recovery +- `robot/`: MuJoCo MJCF XML definitions and 3D mesh assets (`scene.xml`, `robot_allcollisions.xml`, `assets/*.stl`) +- `infer_engine.py`: Standalone policy inference engine +- `app.py`: Interactive simulation viewer and rendering script + +## ๐Ÿš€ Quick Start + +### 1. Requirements +```bash +pip install mujoco onnxruntime numpy imageio imageio-ffmpeg +``` + +### 2. Run Inference +You can load the ONNX models directly with ONNX Runtime and MuJoCo to simulate and control the robot. + +```python +import mujoco +from infer_engine import SpacePolicyInference + +model = mujoco.MjModel.from_xml_path("robot/scene.xml") +data = mujoco.MjData(model) +engine = SpacePolicyInference(model, data, policies_dir="policies") + +# Set forward walking velocity +engine.set_vel_cmd(lin_vel_x=0.25, lin_vel_y=0.0, ang_vel_z=0.0) +``` diff --git a/app.py b/app.py new file mode 100644 index 0000000000000000000000000000000000000000..44ee1533c4e7975720f8710677b5519b6227e98b --- /dev/null +++ b/app.py @@ -0,0 +1,203 @@ +import os +import tempfile +import numpy as np +import imageio +import gradio as gr +import mujoco + +from infer_engine import SpacePolicyInference + +CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) +ROBOT_DIR = os.path.join(CURRENT_DIR, "robot") +POLICIES_DIR = os.path.join(CURRENT_DIR, "policies") + +def simulate_motion(motion_type, duration, camera_angle, progress=gr.Progress()): + progress(0, desc="์‹œ๋ฎฌ๋ ˆ์ด์…˜ ํ™˜๊ฒฝ ์ดˆ๊ธฐํ™” ์ค‘...") + + # Select XML model + if motion_type == "โšฝ ์™ผ๋ฐœ ๊ณต์ฐจ๊ธฐ (Ball Kick)": + xml_path = os.path.join(ROBOT_DIR, "scene_ball.xml") + else: + xml_path = os.path.join(ROBOT_DIR, "scene.xml") + + model = mujoco.MjModel.from_xml_path(xml_path) + model.opt.timestep = 0.005 + data = mujoco.MjData(model) + + # Initialize policy + engine = SpacePolicyInference(model, data, POLICIES_DIR) + + # Reset robot position to standing default + freejoint_id = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, "trunk_base_freejoint") + qpos_adr = model.jnt_qposadr[freejoint_id] + data.qpos[qpos_adr + 0] = 0.0 + data.qpos[qpos_adr + 1] = 0.0 + data.qpos[qpos_adr + 2] = 0.125 + data.qpos[qpos_adr + 3:qpos_adr + 7] = [1, 0, 0, 0] + for i, idx in enumerate(engine.joint_qpos_indices): + data.qpos[idx] = engine.default_pose[i] + data.ctrl[:] = engine.default_pose + mujoco.mj_forward(model, data) + + # Configure behavior + if motion_type == "๐Ÿšถ ์ „์ง„ ๊ฑท๊ธฐ (Forward Walk)": + engine.set_vel_cmd(0.25, 0.0, 0.0) + elif motion_type == "๐Ÿšถ ํ›„์ง„ ๊ฑท๊ธฐ (Backward Walk)": + engine.set_vel_cmd(-0.2, 0.0, 0.0) + elif motion_type == "๐Ÿ”„ ์ขŒํšŒ์ „ (Turn Left)": + engine.set_vel_cmd(0.1, 0.0, 0.8) + elif motion_type == "๐Ÿ”„ ์šฐํšŒ์ „ (Turn Right)": + engine.set_vel_cmd(0.1, 0.0, -0.8) + elif motion_type == "๐Ÿง ์ œ์ž๋ฆฌ ์„œ๊ธฐ (Standing Balance)": + engine.set_vel_cmd(0.0, 0.0, 0.0) + elif motion_type == "๐Ÿคธ ์•ž๊ตฌ๋ฅด๊ธฐ (Roulade)": + engine.trigger_behavior("roulade") + elif motion_type == "โšฝ ์™ผ๋ฐœ ๊ณต์ฐจ๊ธฐ (Ball Kick)": + engine.trigger_behavior("kick_left") + elif motion_type == "๐ŸงŽ ๋ฐ”๋‹ฅ ์ค๊ธฐ (Ground Pick)": + engine.trigger_ground_pick() + elif motion_type == "๐Ÿช‘ ์•‰๊ธฐ (Sit Down)": + engine.trigger_sit() + + # Offscreen renderer + width, height = 640, 480 + renderer = mujoco.Renderer(model, height, width) + + # Setup camera + camera = mujoco.MjvCamera() + mujoco.mjv_defaultCamera(camera) + + frames = [] + fps = 30 + control_freq = 50 # Hz + decimation = 4 + total_steps = int(duration * control_freq) + dt = 1.0 / control_freq + + # Render frequency (every ~1.66 control steps to reach 30 fps) + sim_time = 0.0 + next_render_time = 0.0 + + for step_i in range(total_steps): + engine.update(dt) + engine.step() + + for _ in range(decimation): + mujoco.mj_step(model, data) + + sim_time += dt + + if sim_time >= next_render_time: + # Update camera to track robot + robot_pos = data.qpos[qpos_adr:qpos_adr + 3] + camera.lookat = [robot_pos[0], robot_pos[1], robot_pos[2] + 0.05] + + if camera_angle == "์ธก๋ฉด ์ถ”์  (Side View)": + camera.distance = 1.1 + camera.elevation = -15 + camera.azimuth = 90 + elif camera_angle == "์ •๋ฉด ๋ทฐ (Front View)": + camera.distance = 1.0 + camera.elevation = -10 + camera.azimuth = 180 + elif camera_angle == "๋Œ€๊ฐ์„  ๋ทฐ (Isometric)": + camera.distance = 1.2 + camera.elevation = -22 + camera.azimuth = 135 + elif camera_angle == "ํ›„๋ฐฉ 3์ธ์นญ (Behind View)": + camera.distance = 1.1 + camera.elevation = -12 + camera.azimuth = 0 + + renderer.update_scene(data, camera=camera) + img = renderer.render() + frames.append(img) + next_render_time += 1.0 / fps + + if step_i % 15 == 0: + progress(step_i / total_steps, desc=f"์‹œ๋ฎฌ๋ ˆ์ด์…˜ ์ง„ํ–‰ ์ค‘... ({step_i}/{total_steps})") + + progress(0.95, desc="๋น„๋””์˜ค ํŒŒ์ผ ์ƒ์„ฑ ์ค‘...") + temp_dir = tempfile.mkdtemp() + video_path = os.path.join(temp_dir, "output.mp4") + imageio.mimsave(video_path, frames, fps=fps) + + final_pos = data.qpos[qpos_adr:qpos_adr + 3] + distance = np.linalg.norm(final_pos[:2]) + + status_md = f""" +### ๐Ÿ“Š ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ๊ฒฐ๊ณผ ์š”์•ฝ +- **์„ ํƒ๋œ ๋™์ž‘**: `{motion_type}` +- **์‹œ๋ฎฌ๋ ˆ์ด์…˜ ์‹œ๊ฐ„**: `{duration:.1f}์ดˆ` (์ด {len(frames)} ํ”„๋ ˆ์ž„ / 30 FPS) +- **์ตœ์ข… ์ด๋™ ๊ฑฐ๋ฆฌ**: `{distance:.3f} m` (X: `{final_pos[0]:.2f}m`, Y: `{final_pos[1]:.2f}m`, Z: `{final_pos[2]:.2f}m`) +- **๋กœ๋ด‡ ์ƒํƒœ**: `์ •์ƒ ์•ˆ์ • ์ƒํƒœ ์œ ์ง€ ์™„๋ฃŒ` +""" + return video_path, status_md + +# Gradio Interface +custom_css = """ +#container { max-width: 960px; margin: 0 auto; } +.gr-button-primary { background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%) !important; border: none !important; } +""" + +with gr.Blocks(title="๐Ÿฆ† MicroDuck 3D Robot Simulator", css=custom_css, theme=gr.themes.Soft()) as demo: + gr.Markdown( + """ + # ๐Ÿฆ† MicroDuck 3D ๋กœ๋ด‡ ๊ฐ•ํ™”ํ•™์Šต ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ + MuJoCo ๋ฌผ๋ฆฌ ์—”์ง„๊ณผ ์˜จ๋‹‰์Šค(ONNX) ์‹ฌ์ธต๊ฐ•ํ™”ํ•™์Šต(Deep RL) ์ •์ฑ… ๋ชจ๋ธ๋กœ ๊ตฌ๋™๋˜๋Š” **MicroDuck** ๋กœ๋ด‡์˜ ๋™์ž‘์„ ์›น์—์„œ ์ง์ ‘ ์‹คํ–‰ํ•˜๊ณ  ๊ด€์ฐฐํ•ด๋ณด์„ธ์š”. + """ + ) + + with gr.Row(): + with gr.Column(scale=4): + motion_input = gr.Radio( + label="๐ŸŽฏ ๋กœ๋ด‡ ๋™์ž‘ (Motion Policy)", + choices=[ + "๐Ÿšถ ์ „์ง„ ๊ฑท๊ธฐ (Forward Walk)", + "๐Ÿšถ ํ›„์ง„ ๊ฑท๊ธฐ (Backward Walk)", + "๐Ÿ”„ ์ขŒํšŒ์ „ (Turn Left)", + "๐Ÿ”„ ์šฐํšŒ์ „ (Turn Right)", + "๐Ÿง ์ œ์ž๋ฆฌ ์„œ๊ธฐ (Standing Balance)", + "๐Ÿคธ ์•ž๊ตฌ๋ฅด๊ธฐ (Roulade)", + "โšฝ ์™ผ๋ฐœ ๊ณต์ฐจ๊ธฐ (Ball Kick)", + "๐ŸงŽ ๋ฐ”๋‹ฅ ์ค๊ธฐ (Ground Pick)", + "๐Ÿช‘ ์•‰๊ธฐ (Sit Down)", + ], + value="๐Ÿšถ ์ „์ง„ ๊ฑท๊ธฐ (Forward Walk)" + ) + + duration_input = gr.Slider( + label="โฑ๏ธ ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ์‹œ๊ฐ„ (์ดˆ)", + minimum=1.5, + maximum=4.5, + value=2.5, + step=0.5 + ) + + camera_input = gr.Dropdown( + label="๐ŸŽฅ ์นด๋ฉ”๋ผ ์•ต๊ธ€", + choices=["์ธก๋ฉด ์ถ”์  (Side View)", "์ •๋ฉด ๋ทฐ (Front View)", "๋Œ€๊ฐ์„  ๋ทฐ (Isometric)", "ํ›„๋ฐฉ 3์ธ์นญ (Behind View)"], + value="๋Œ€๊ฐ์„  ๋ทฐ (Isometric)" + ) + + run_btn = gr.Button("๐ŸŽฌ 3D ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ๋ Œ๋”๋ง ์‹œ์ž‘", variant="primary", size="lg") + + with gr.Column(scale=6): + video_output = gr.Video(label="๐Ÿ“น ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ๋ Œ๋”๋ง ์˜์ƒ", autoplay=True, loop=True) + status_output = gr.Markdown("์‹œ๋ฎฌ๋ ˆ์ด์…˜์„ ์‹คํ–‰ํ•˜๋ฉด ๊ฒฐ๊ณผ ํ†ต๊ณ„๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.") + + run_btn.click( + fn=simulate_motion, + inputs=[motion_input, duration_input, camera_input], + outputs=[video_output, status_output] + ) + + gr.Markdown( + """ + --- + ๐Ÿ’ก **MicroDuck ๊ธฐ์ˆ  ์Šคํƒ**: MuJoCo Physics, ONNX Runtime, Isaac Gym / Genesis RL Trained Policies. + """ + ) + +if __name__ == "__main__": + demo.launch() diff --git a/infer_engine.py b/infer_engine.py new file mode 100644 index 0000000000000000000000000000000000000000..b348c51cba172ef97ab5679cd2581990afa89740 --- /dev/null +++ b/infer_engine.py @@ -0,0 +1,206 @@ +import os +import math +import numpy as np +import mujoco +import onnxruntime as ort + +# Default pose used by the policy (14 DoF) +DEFAULT_POSE = np.array([ + 0.0, # left_hip_yaw + -0.0873, # left_hip_roll + -0.4579, # left_hip_pitch + -0.0049, # left_knee + 0.4530, # left_ankle + 0.3491, # neck_pitch + 0.3491, # head_pitch + 0.0, # head_yaw + 0.0, # head_roll + 0.0, # right_hip_yaw + 0.0873, # right_hip_roll + 0.4579, # right_hip_pitch + 0.0049, # right_knee + -0.4530, # right_ankle +], dtype=np.float32) + +BALL_OFFSET_X = 0.09 +BALL_OFFSET_ABS_Y = 0.042 +BALL_RADIUS = 0.035 + +class SpacePolicyInference: + def __init__(self, model, data, policies_dir): + self.model = model + self.data = data + self.action_scale = 1.0 + self.use_projected_gravity = True + self.new_cmd_obs = True + self.switch_threshold = 0.05 + + # Load ONNX policies + walking_path = os.path.join(policies_dir, "alpha_walking.onnx") + standing_path = os.path.join(policies_dir, "alpha_stand.onnx") + sitstand_path = os.path.join(policies_dir, "alpha_sitstand.onnx") + ground_pick_path = os.path.join(policies_dir, "alpha_ground_pick.onnx") + kick_left_path = os.path.join(policies_dir, "ball_kick_left.onnx") + roulade_path = os.path.join(policies_dir, "roulade.onnx") + + self.walking_session = ort.InferenceSession(walking_path) if os.path.exists(walking_path) else None + self.standing_session = ort.InferenceSession(standing_path) if os.path.exists(standing_path) else None + self.sit_session = ort.InferenceSession(sitstand_path) if os.path.exists(sitstand_path) else None + self.ground_pick_session = ort.InferenceSession(ground_pick_path) if os.path.exists(ground_pick_path) else None + + self.behavior_sessions = {} + self.behavior_durations = {} + if os.path.exists(kick_left_path): + self.behavior_sessions["kick_left"] = ort.InferenceSession(kick_left_path) + self.behavior_durations["kick_left"] = 3.0 + if os.path.exists(roulade_path): + self.behavior_sessions["roulade"] = ort.InferenceSession(roulade_path) + self.behavior_durations["roulade"] = 2.0 + + self.is_sitstand = True + self.sit_mode = False + self.ground_pick_mode = False + self.ground_pick_phase = 0.0 + self.ground_pick_period = 4.0 + self.behavior_mode = None + self.behavior_time_left = 0.0 + + self.current_policy = "walking" if self.walking_session else "standing" + self.ort_session = self.walking_session if self.walking_session else self.standing_session + self.input_name = self.ort_session.get_inputs()[0].name + self.output_name = self.ort_session.get_outputs()[0].name + + self.imu_ang_vel_id = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_SENSOR, "imu_ang_vel") + self.trunk_base_id = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_BODY, "trunk_base") + _trunk_jid = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, "trunk_base_freejoint") + self._trunk_qpos_adr = int(model.jnt_qposadr[_trunk_jid]) + _ball_jid = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, "ball_free") + self.ball_qpos_adr = int(model.jnt_qposadr[_ball_jid]) if _ball_jid >= 0 else None + self.ball_qvel_adr = int(model.jnt_dofadr[_ball_jid]) if _ball_jid >= 0 else None + + self.n_joints = model.nu + self.joint_qpos_indices = [int(model.jnt_qposadr[model.actuator_trnid[i, 0]]) for i in range(model.nu)] + self.joint_qvel_indices = [int(model.jnt_dofadr[model.actuator_trnid[i, 0]]) for i in range(model.nu)] + + self.default_pose = DEFAULT_POSE[:self.n_joints] + self.last_action = np.zeros(self.n_joints, dtype=np.float32) + self.vel_cmd = np.zeros(3, dtype=np.float32) + self.body_cmd = np.zeros(6, dtype=np.float32) + self.head_offset = np.zeros(4, dtype=np.float32) + self.command = np.zeros(13, dtype=np.float32) + + def _update_command(self): + if self.behavior_mode is not None: + self.command = np.zeros(13, dtype=np.float32) + return + cmd = np.zeros(13, dtype=np.float32) + if self.current_policy == "walking": + cmd[0:3] = self.vel_cmd + elif self.current_policy == "sit" and self.is_sitstand: + cmd[0] = 1.0 if self.sit_mode else 0.0 + cmd[3:7] = self.head_offset + cmd[7:13] = self.body_cmd + self.command = cmd + + def set_vel_cmd(self, lin_vel_x=0.0, lin_vel_y=0.0, ang_vel_z=0.0): + self.vel_cmd = np.array([lin_vel_x, lin_vel_y, ang_vel_z], dtype=np.float32) + magnitude = float(np.linalg.norm(self.vel_cmd)) + if magnitude <= self.switch_threshold and self.standing_session: + self.current_policy = "standing" + self.ort_session = self.standing_session + elif self.walking_session: + self.current_policy = "walking" + self.ort_session = self.walking_session + self._update_command() + + def trigger_behavior(self, name): + if name in self.behavior_sessions: + if name == "kick_left": + self._place_ball() + self.behavior_mode = name + self.behavior_time_left = self.behavior_durations[name] + self.current_policy = name + self.ort_session = self.behavior_sessions[name] + self._update_command() + + def trigger_sit(self): + if self.sit_session: + self.sit_mode = True + self.current_policy = "sit" + self.ort_session = self.sit_session + self._update_command() + + def trigger_ground_pick(self): + if self.ground_pick_session: + self.ground_pick_mode = True + self.ground_pick_phase = 0.0 + self.current_policy = "ground_pick" + self.ort_session = self.ground_pick_session + + def _place_ball(self): + if self.ball_qpos_adr is None: + return + adr = self._trunk_qpos_adr + x, y = float(self.data.qpos[adr]), float(self.data.qpos[adr + 1]) + qw, qx, qy, qz = self.data.qpos[adr + 3:adr + 7] + yaw = math.atan2(2.0 * (qw * qz + qx * qy), 1.0 - 2.0 * (qy * qy + qz * qz)) + off_y = BALL_OFFSET_ABS_Y + bx = x + math.cos(yaw) * BALL_OFFSET_X - math.sin(yaw) * off_y + by = y + math.sin(yaw) * BALL_OFFSET_X + math.cos(yaw) * off_y + self.data.qpos[self.ball_qpos_adr:self.ball_qpos_adr + 7] = [bx, by, BALL_RADIUS, 1, 0, 0, 0] + if self.ball_qvel_adr is not None: + self.data.qvel[self.ball_qvel_adr:self.ball_qvel_adr + 6] = 0.0 + + def update(self, dt: float): + if self.ground_pick_mode: + new_phase = self.ground_pick_phase + dt / self.ground_pick_period + if new_phase >= 0.7: + self.ground_pick_mode = False + self.current_policy = "walking" if self.walking_session else "standing" + self.ort_session = self.walking_session if self.walking_session else self.standing_session + self._update_command() + else: + self.ground_pick_phase = new_phase + self.command[0] = np.cos(2 * np.pi * self.ground_pick_phase) + self.command[1] = np.sin(2 * np.pi * self.ground_pick_phase) + self.command[2] = 0.0 + elif self.behavior_mode is not None: + self.behavior_time_left -= dt + if self.behavior_time_left <= 0.0: + self.behavior_mode = None + self.current_policy = "walking" if self.walking_session else "standing" + self.ort_session = self.walking_session if self.walking_session else self.standing_session + self._update_command() + + def quat_rotate_inverse(self, quat, vec): + w = quat[0] + xyz = quat[1:4] + t = np.cross(xyz, vec) * 2 + return vec - w * t + np.cross(xyz, t) + + def get_observations(self): + obs = [] + sensor_adr = self.model.sensor_adr[self.imu_ang_vel_id] + ang_vel = self.data.sensordata[sensor_adr:sensor_adr + 3].copy().astype(np.float32) + obs.append(ang_vel) + + quat = self.data.xquat[self.trunk_base_id].copy().astype(np.float32) + proj_grav = self.quat_rotate_inverse(quat, np.array([0.0, 0.0, -1.0], dtype=np.float32)) + obs.append(proj_grav) + + current_pos = self.data.qpos[self.joint_qpos_indices].copy().astype(np.float32) + obs.append(current_pos - self.default_pose) + + joint_vel = self.data.qvel[self.joint_qvel_indices].copy().astype(np.float32) + obs.append(joint_vel) + + obs.append(self.last_action) + obs.append(self.command) + return np.concatenate(obs).astype(np.float32) + + def step(self): + obs = self.get_observations().reshape(1, -1) + action = self.ort_session.run([self.output_name], {self.input_name: obs})[0].squeeze(0).astype(np.float32) + self.last_action = action.copy() + target_positions = self.default_pose + action * self.action_scale + self.data.ctrl[:] = target_positions diff --git a/packages.txt b/packages.txt new file mode 100644 index 0000000000000000000000000000000000000000..719b702f69b2621c6f22a098752ca106ee6d9564 --- /dev/null +++ b/packages.txt @@ -0,0 +1,4 @@ +libgl1-mesa-glx +libosmesa6-dev +libglib2.0-0 +ffmpeg diff --git a/policies/alpha_ground_pick.onnx b/policies/alpha_ground_pick.onnx new file mode 100644 index 0000000000000000000000000000000000000000..3bc3882e5ecba23c6f3715d5978f77bafebe452a --- /dev/null +++ b/policies/alpha_ground_pick.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffbf5109982ff999b0ba53afe86b9ae731bbec679d67fb7f8ab4c52152c88872 +size 793685 diff --git a/policies/alpha_sitstand.onnx b/policies/alpha_sitstand.onnx new file mode 100644 index 0000000000000000000000000000000000000000..6b26011782f296dec5aa8165c19f400983d68d97 --- /dev/null +++ b/policies/alpha_sitstand.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6c40e35e726eabd803d633e090d112994f469921152448367953fbaf9799bc8 +size 793695 diff --git a/policies/alpha_stand.onnx b/policies/alpha_stand.onnx new file mode 100644 index 0000000000000000000000000000000000000000..c5e77aeb98cbff5e877316ee4bbf759a187858e4 --- /dev/null +++ b/policies/alpha_stand.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1569268713e40deea795dd2922dba50d3621e15a872855408b6b1b125b1c094b +size 793705 diff --git a/policies/alpha_walking.onnx b/policies/alpha_walking.onnx new file mode 100644 index 0000000000000000000000000000000000000000..a43a72e68dfec1d358ec1d9de2b0d26e38bbc94a --- /dev/null +++ b/policies/alpha_walking.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e36332d383997d51401897734cd3e79cf5038406feddb18b4d57ecfb141daa6c +size 793705 diff --git a/policies/ball_kick_left.onnx b/policies/ball_kick_left.onnx new file mode 100644 index 0000000000000000000000000000000000000000..52d5b3e96d4cbfe5eb58cdc0b8a897c574e3fd22 --- /dev/null +++ b/policies/ball_kick_left.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6928284dccd3dd61e08bf2f760effa74309fbefd97b2b31afb2a60f526d196a +size 793685 diff --git a/policies/ball_kick_right.onnx b/policies/ball_kick_right.onnx new file mode 100644 index 0000000000000000000000000000000000000000..cecab18cafb7737f1501a6d525ef94e680f0803b --- /dev/null +++ b/policies/ball_kick_right.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:147a32c388c6b19111b3ac3b550a9a6dc8b8bf267118af4d8c3712522eedb5af +size 793685 diff --git a/policies/roller.onnx b/policies/roller.onnx new file mode 100644 index 0000000000000000000000000000000000000000..89cbd63de4c17acbdfba545a88d3f2e3aaed110e --- /dev/null +++ b/policies/roller.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf05651d2708a2f9364212e86b866c97a70ace8131c492500105e8f28bf99afd +size 793685 diff --git a/policies/roller_crouch.onnx b/policies/roller_crouch.onnx new file mode 100644 index 0000000000000000000000000000000000000000..e8406b95a84d11647a32e24cdeeb34f82a747f17 --- /dev/null +++ b/policies/roller_crouch.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1a084be240469c76ac9d3fa44d4792f16d4b1da60398b3ecd3cfc5e2244d990 +size 793685 diff --git a/policies/roulade.onnx b/policies/roulade.onnx new file mode 100644 index 0000000000000000000000000000000000000000..060c707c0533b9ab7dc3b7ce9b3e5f1408cdcb85 --- /dev/null +++ b/policies/roulade.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d60da08fc13f29c1b57f41977aa898132c0d60042100149d8e775affcbca32b +size 793685 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..1808bcb7854bbee890910d9a0fa323b13ddfdb3c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +gradio>=4.44.0 +mujoco>=3.1.0 +onnxruntime>=1.18.0 +numpy +imageio +imageio-ffmpeg diff --git a/robot/add_backlash.py b/robot/add_backlash.py new file mode 100644 index 0000000000000000000000000000000000000000..2a89138b3c5d031699453791db5f97e6499ea8c1 --- /dev/null +++ b/robot/add_backlash.py @@ -0,0 +1,139 @@ +#!/usr/bin/env python3 +"""Inject gearbox-backlash joints into an onshape-to-robot MJCF export. + +For every actuated servo joint (``class="chosen_actuator"``) this inserts an +unactuated hinge on the same body / same axis right after it: + + + + +The composite link rotation is main + backlash: the main joint is the servo +output (BAM drives it), the backlash joint is the play between the servo and +the link, free to wander within ยฑ(backlash/2). + +Naming: the ``passive_`` prefix means the new joints are automatically excluded +by every existing regex in the task configs (actuators ``^(?!passive_).*``, +joint obs, pose reward). The encoder-through-backlash handling lives on the +mjlab side (BacklashEncoderBamActuatorCfg + joint_pos/vel_rel_backlash obs). + +Meant to run as the LAST post_import_command of an onshape-to-robot config +(see config_mjcf_allcollisions_backlash.json), but works standalone on any +already-exported robot xml: + + python3 add_backlash.py robot_allcollisions_backlash.xml --backlash-deg 2.0 + +``--backlash-deg`` is the TOTAL peak-to-peak play (what you measure wiggling +the horn with the servo held); the joint range is symmetric ยฑdeg/2. +""" + +import argparse +import math +import re +import sys + +JOINT_RE = re.compile(r'^(\s*)]*/>\s*$') +ATTR_RE = re.compile(r'(\w+)="([^"]*)"') + + +def build_backlash_default(half_range_rad: float, damping: float, + armature: float, frictionloss: float, + total_deg: float) -> str: + return ( + f" \n" + f" \n" + f" \n" + f" \n" + f" \n" + f" \n" + f" \n" + ) + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("xml", help="MJCF file to modify in place") + parser.add_argument("--backlash-deg", type=float, default=2.0, + help="TOTAL backlash play in degrees (peak-to-peak); " + "joint range is symmetric +/-deg/2 (default: 2.0)") + parser.add_argument("--damping", type=float, default=0.01, + help="backlash joint damping (default: 0.01)") + parser.add_argument("--armature", type=float, default=0.001, + help="backlash joint armature, kept small but non-zero " + "for solver conditioning (default: 0.001)") + parser.add_argument("--frictionloss", type=float, default=0.0, + help="backlash joint frictionloss (default: 0)") + parser.add_argument("--joint-class", default="chosen_actuator", + help="default class of the joints that get backlash " + "(default: chosen_actuator)") + parser.add_argument("--exclude", default=None, + help="optional regex of joint names to skip " + "(e.g. '.*(neck|head).*')") + args = parser.parse_args() + + half_range = math.radians(args.backlash_deg) / 2.0 + exclude = re.compile(args.exclude) if args.exclude else None + + with open(args.xml) as f: + lines = f.readlines() + + if any('class="backlash"' in line for line in lines): + print(f"[add_backlash] {args.xml} already contains backlash joints โ€” aborting.") + return 1 + + out = [] + added = [] + default_inserted = False + for line in lines: + # Insert the defaults block right before . + if not default_inserted and "" in line: + out.append(build_backlash_default( + half_range, args.damping, args.armature, args.frictionloss, + args.backlash_deg)) + default_inserted = True + + out.append(line) + + m = JOINT_RE.match(line) + if m is None: + continue + attrs = dict(ATTR_RE.findall(line)) + if attrs.get("class") != args.joint_class: + continue + name = attrs.get("name") + if not name or (exclude and exclude.match(name)): + continue + indent = m.group(1) + axis = attrs.get("axis", "0 0 1") + pos = f' pos="{attrs["pos"]}"' if "pos" in attrs else "" + out.append( + f'{indent}\n' + ) + added.append(name) + + if not default_inserted: + print("[add_backlash] ERROR: no found โ€” is this an MJCF file?") + return 1 + if not added: + print(f"[add_backlash] ERROR: no joints with class=\"{args.joint_class}\" found.") + return 1 + + with open(args.xml, "w") as f: + f.writelines(out) + + print(f"[add_backlash] added {len(added)} backlash joints " + f"(+/-{args.backlash_deg / 2:g} deg = +/-{half_range:.5f} rad) to {args.xml}: " + f"{', '.join(added)}") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/robot/additional.xml b/robot/additional.xml new file mode 100644 index 0000000000000000000000000000000000000000..cd9ee901063e58a6533bd2783c7bc46c7508f16b --- /dev/null +++ b/robot/additional.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/robot/assets/ankle_l_v1.part b/robot/assets/ankle_l_v1.part new file mode 100644 index 0000000000000000000000000000000000000000..6c514673325067c34b5502287532e4fffc24ce93 --- /dev/null +++ b/robot/assets/ankle_l_v1.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "a48e2e3940da29620aa227db", + "fullConfiguration": "default", + "id": "MnipPqhb15cTaf16d", + "isStandardContent": false, + "name": "ankle-l-v1 <1>", + "partId": "RbFD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/ankle_l_v1.stl b/robot/assets/ankle_l_v1.stl new file mode 100644 index 0000000000000000000000000000000000000000..1ff2f93194c3f4799eb51317a8a230e5fcaa1409 --- /dev/null +++ b/robot/assets/ankle_l_v1.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70ecf0629559e3edf8f194f286a5fa0bd0ef77b75429b5f24f8bae70c7aa7446 +size 235984 diff --git a/robot/assets/ankle_left.part b/robot/assets/ankle_left.part new file mode 100644 index 0000000000000000000000000000000000000000..71bc94079d9cfc606908e81270bb03944a9c7b1e --- /dev/null +++ b/robot/assets/ankle_left.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "48ccc523b8461dff097d59f9", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "MnipPqhb15cTaf16d", + "isStandardContent": false, + "name": "ankle_left <1>", + "partId": "RTBH", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/ankle_left.stl b/robot/assets/ankle_left.stl new file mode 100644 index 0000000000000000000000000000000000000000..baec8870577e9c080aefab2e6d62f71bd2eed89e --- /dev/null +++ b/robot/assets/ankle_left.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98f14ba6e6cd138740aa822a615aaa0db34527d499c40b2379aacd13427a1379 +size 248984 diff --git a/robot/assets/ankle_r_v1.part b/robot/assets/ankle_r_v1.part new file mode 100644 index 0000000000000000000000000000000000000000..246cafa96fb44e9475c45a03b9e2975d41c1763c --- /dev/null +++ b/robot/assets/ankle_r_v1.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "a48e2e3940da29620aa227db", + "fullConfiguration": "default", + "id": "M/kz+prC94C355xoU", + "isStandardContent": false, + "name": "ankle_r_v1 <1>", + "partId": "RNHH", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/ankle_r_v1.stl b/robot/assets/ankle_r_v1.stl new file mode 100644 index 0000000000000000000000000000000000000000..8652950b76e4895a2fe5184dc694ec3a30dc4dd3 --- /dev/null +++ b/robot/assets/ankle_r_v1.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3f277879aa6eb24e118795f4d8d8525acab9192c202a569d1403408ec656754 +size 235784 diff --git a/robot/assets/ankle_right.part b/robot/assets/ankle_right.part new file mode 100644 index 0000000000000000000000000000000000000000..d81b9506de48aad4b05e26412278f14324d899d8 --- /dev/null +++ b/robot/assets/ankle_right.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "48ccc523b8461dff097d59f9", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "M/kz+prC94C355xoU", + "isStandardContent": false, + "name": "ankle_right <1>", + "partId": "R8CD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/ankle_right.stl b/robot/assets/ankle_right.stl new file mode 100644 index 0000000000000000000000000000000000000000..4ebb850922d4b6fbf989ed1f24adf4cff2770a5b --- /dev/null +++ b/robot/assets/ankle_right.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:836032fdeaa4b1f47f75cb24fa4ad9ebdb09acec158a0d787b3890c6dc4d4c6e +size 248884 diff --git a/robot/assets/banana_pcb_locker.part b/robot/assets/banana_pcb_locker.part new file mode 100644 index 0000000000000000000000000000000000000000..a13dbcff6217b0148f2f035057acba0b0c618bce --- /dev/null +++ b/robot/assets/banana_pcb_locker.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "MBeyWD9BcBiAC88kr", + "isStandardContent": false, + "name": "Banana_PCB_locker <1>", + "partId": "RfDD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/banana_pcb_locker.stl b/robot/assets/banana_pcb_locker.stl new file mode 100644 index 0000000000000000000000000000000000000000..b7b521560dd5c345fdae427e61dfb71158c1aa87 Binary files /dev/null and b/robot/assets/banana_pcb_locker.stl differ diff --git a/robot/assets/bearing_roll.part b/robot/assets/bearing_roll.part new file mode 100644 index 0000000000000000000000000000000000000000..e15d232b1915a9baff5dafbe46ed90b8d295cae2 --- /dev/null +++ b/robot/assets/bearing_roll.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "MnzpqZwaCaK4P1f41", + "isStandardContent": false, + "name": "bearing_roll <1>", + "partId": "RKBD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/bearing_roll.stl b/robot/assets/bearing_roll.stl new file mode 100644 index 0000000000000000000000000000000000000000..8a11de6649e0bb1fbe8ad4b623022c36efdf8f0f --- /dev/null +++ b/robot/assets/bearing_roll.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b30cbdb110c5cca7092a9b2658c9e899e294bf2df71635828858e1d1a20abfe +size 121084 diff --git a/robot/assets/bottom_head_shell.part b/robot/assets/bottom_head_shell.part new file mode 100644 index 0000000000000000000000000000000000000000..919a5662a70de90d16dfc70def9c9fbb295f6240 --- /dev/null +++ b/robot/assets/bottom_head_shell.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "MlY/PdlncxN6Lc433", + "isStandardContent": false, + "name": "bottom_head_shell <2>", + "partId": "J/H", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/bottom_head_shell.stl b/robot/assets/bottom_head_shell.stl new file mode 100644 index 0000000000000000000000000000000000000000..4c2c3b8575ab1a9b1800361c4bae98aadd7541fc --- /dev/null +++ b/robot/assets/bottom_head_shell.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ce9532854a712c93e00e0fd2bbc2ce6b1c45f9418fd29d6e82f6ad8af8fc1af +size 1048584 diff --git a/robot/assets/elec_rpi_robot_hat_pcb.part b/robot/assets/elec_rpi_robot_hat_pcb.part new file mode 100644 index 0000000000000000000000000000000000000000..910249124a5740515706a302c89b0e9622926c2f --- /dev/null +++ b/robot/assets/elec_rpi_robot_hat_pcb.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "c1085f5be782740f05cd18b2", + "fullConfiguration": "default", + "id": "MReezno9wlhkqhOa/", + "isStandardContent": false, + "name": "elec_RPI_Robot_HAT_PCB <1>", + "partId": "JFD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/elec_rpi_robot_hat_pcb.stl b/robot/assets/elec_rpi_robot_hat_pcb.stl new file mode 100644 index 0000000000000000000000000000000000000000..5626147a92136ee4062d541ffca968eb48bf82b3 --- /dev/null +++ b/robot/assets/elec_rpi_robot_hat_pcb.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45b904bcb378161d274d313cd067d3967305db0bf22c0955530145e18cdd2cd8 +size 942884 diff --git a/robot/assets/face_part.part b/robot/assets/face_part.part new file mode 100644 index 0000000000000000000000000000000000000000..c7608df54f8a873660a3e716f28fc51443f59f92 --- /dev/null +++ b/robot/assets/face_part.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "M/rAeuKSeRbB6zGHy", + "isStandardContent": false, + "name": "face_part <1>", + "partId": "RQBD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/face_part.stl b/robot/assets/face_part.stl new file mode 100644 index 0000000000000000000000000000000000000000..ea406f8a1871a20a4972cada9616baf4ca64a858 --- /dev/null +++ b/robot/assets/face_part.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30eaa56fc38129ba16e2b4e247ac419b0ae9e5b0fe9e748697f4838d338b952e +size 570684 diff --git a/robot/assets/foot_left.part b/robot/assets/foot_left.part new file mode 100644 index 0000000000000000000000000000000000000000..1196109fc21212b96e0af0f059a40449e50bd976 --- /dev/null +++ b/robot/assets/foot_left.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "48ccc523b8461dff097d59f9", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "MWwuFYNVBMata0ArD", + "isStandardContent": false, + "name": "foot_left <1>", + "partId": "RACD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/foot_left.stl b/robot/assets/foot_left.stl new file mode 100644 index 0000000000000000000000000000000000000000..593be82715e01dc3a5b960a526d7faa635f98543 --- /dev/null +++ b/robot/assets/foot_left.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5de2622a7b894e0fc9988dc6cff6579ee1dc818ffaddd0319f49cf5d5bd05587 +size 996184 diff --git a/robot/assets/foot_right.part b/robot/assets/foot_right.part new file mode 100644 index 0000000000000000000000000000000000000000..170b4fa6567cba35f401cece4e679f1ac7e0743d --- /dev/null +++ b/robot/assets/foot_right.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "48ccc523b8461dff097d59f9", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "Mf+5HUbxEOCokX7m4", + "isStandardContent": false, + "name": "foot_right <1>", + "partId": "R8CL", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/foot_right.stl b/robot/assets/foot_right.stl new file mode 100644 index 0000000000000000000000000000000000000000..54e80c688e93340e68fa8a44c46ed470a7571b47 --- /dev/null +++ b/robot/assets/foot_right.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ffa894b29578edc78f5e982a7d89a8f5e4fa1dc27232b88c22a8a0a74cfbaa7 +size 995784 diff --git a/robot/assets/hip_l.part b/robot/assets/hip_l.part new file mode 100644 index 0000000000000000000000000000000000000000..fd1ec34aa3707e7506fff2eafe45d2a87c9cdaa9 --- /dev/null +++ b/robot/assets/hip_l.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "M+QhBpslsJGbwRNpO", + "isStandardContent": false, + "name": "hip_l <1>", + "partId": "RODD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/hip_l.stl b/robot/assets/hip_l.stl new file mode 100644 index 0000000000000000000000000000000000000000..7475143fd996e9299c352e9ea3e69589eda27bed --- /dev/null +++ b/robot/assets/hip_l.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02bc777ce76a31b3d5c415188f8268b989f4eca57bc440a2900825ac459dec38 +size 1048584 diff --git a/robot/assets/jaw.part b/robot/assets/jaw.part new file mode 100644 index 0000000000000000000000000000000000000000..725e6bb036615ba22887bac0b38abf75eafafa7e --- /dev/null +++ b/robot/assets/jaw.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "MaQI9NUJXlumL8U6p", + "isStandardContent": false, + "name": "jaw <2>", + "partId": "J6D", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/jaw.stl b/robot/assets/jaw.stl new file mode 100644 index 0000000000000000000000000000000000000000..12278e6c20091daa4a7f1d9b4557dadb75c4967b --- /dev/null +++ b/robot/assets/jaw.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65c300349113d3c6cd4a2cc587f76f7228115565a854492e42358ba8df71796a +size 495984 diff --git a/robot/assets/jaw_soft.part b/robot/assets/jaw_soft.part new file mode 100644 index 0000000000000000000000000000000000000000..15b4de253be3f0095939b811dc9e7c96b4f0a066 --- /dev/null +++ b/robot/assets/jaw_soft.part @@ -0,0 +1,14 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "9306fb07735e782de209a230", + "documentVersion": "f0b9dc2ed2b65290c37daecc", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "M4M8XlOWpIPvmIr8/", + "isStandardContent": false, + "name": "jaw_soft <1>", + "partId": "RaCD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/jaw_soft.stl b/robot/assets/jaw_soft.stl new file mode 100644 index 0000000000000000000000000000000000000000..900c7a84a6b317c5f78c9f6e1be6ff67befa8353 --- /dev/null +++ b/robot/assets/jaw_soft.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61a426890f748713d45a9c0844149bcb0340d326f75295dcf7de2a4d768cbc85 +size 336384 diff --git a/robot/assets/left_shell.part b/robot/assets/left_shell.part new file mode 100644 index 0000000000000000000000000000000000000000..8c3749f65a98061a22716bc5a077b2b39f8e2a9a --- /dev/null +++ b/robot/assets/left_shell.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "Mx9wCEl1i0Lb7LDyx", + "isStandardContent": false, + "name": "left_shell <1>", + "partId": "RiED", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/left_shell.stl b/robot/assets/left_shell.stl new file mode 100644 index 0000000000000000000000000000000000000000..632caaec068515eac4638a04d5186b9d98a1c51b --- /dev/null +++ b/robot/assets/left_shell.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efc16f55a4c32d21d74bf834faba27346788f154e29b40850cbcc69fda2f2396 +size 1048584 diff --git a/robot/assets/left_upper_leg.part b/robot/assets/left_upper_leg.part new file mode 100644 index 0000000000000000000000000000000000000000..0d5b3324c0d56d37cee9ac5913a07b23c8301cd9 --- /dev/null +++ b/robot/assets/left_upper_leg.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "49900cb439825f734c36e098", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "MCzyiRc5ESe5zlNkJ", + "isStandardContent": false, + "name": "left_upper_leg <1>", + "partId": "RoCD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/left_upper_leg.stl b/robot/assets/left_upper_leg.stl new file mode 100644 index 0000000000000000000000000000000000000000..1d11a793428f57f724539d506a953cf7fdd7e03f --- /dev/null +++ b/robot/assets/left_upper_leg.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b84e46d681cb971029e421c252de85e2f31e8858abee610dc26cd18037ef0224 +size 612584 diff --git a/robot/assets/leg.part b/robot/assets/leg.part new file mode 100644 index 0000000000000000000000000000000000000000..e12ab7acc90a2cab38af1190dd0ba8326c6ae6d7 --- /dev/null +++ b/robot/assets/leg.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "MS3g6LBmQDJMHE7cl", + "isStandardContent": false, + "name": "leg <2>", + "partId": "R1ED", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/leg.stl b/robot/assets/leg.stl new file mode 100644 index 0000000000000000000000000000000000000000..6c7e472ac97e9eb0de2f8fa3a71dce219c4a26cd --- /dev/null +++ b/robot/assets/leg.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b57d55ec2504dfb90b07bfc781dbf9b4bb6560becaf1dddbadd6a3914fdc423f +size 738884 diff --git a/robot/assets/lens.part b/robot/assets/lens.part new file mode 100644 index 0000000000000000000000000000000000000000..93d569a019d796d0712e5ee03b24b0d5bdaadf4f --- /dev/null +++ b/robot/assets/lens.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "42eb36bcd4029eaa3ed8308f", + "fullConfiguration": "default", + "id": "M/ROtwU5VWibkq8MR", + "isStandardContent": false, + "name": "Lens <1>", + "partId": "JFD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/lens.stl b/robot/assets/lens.stl new file mode 100644 index 0000000000000000000000000000000000000000..beff90540f3bebf4c43dfdfec8dba373e335e5ca Binary files /dev/null and b/robot/assets/lens.stl differ diff --git a/robot/assets/m12_lens_holder.part b/robot/assets/m12_lens_holder.part new file mode 100644 index 0000000000000000000000000000000000000000..67935d4be9bae7a788d4b902cdbaa287421ef93a --- /dev/null +++ b/robot/assets/m12_lens_holder.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "42eb36bcd4029eaa3ed8308f", + "fullConfiguration": "default", + "id": "MqHplZVsJg1E257Bg", + "isStandardContent": false, + "name": "M12 lens holder <1>", + "partId": "JFH", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/m12_lens_holder.stl b/robot/assets/m12_lens_holder.stl new file mode 100644 index 0000000000000000000000000000000000000000..2d5822b91d6faf1ac46643447a76f955f03b8237 --- /dev/null +++ b/robot/assets/m12_lens_holder.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a9989bbe776ddd7a268013e63cdf0efc2fdae245ad2754a6b18d6bfbe21c2ed +size 549684 diff --git a/robot/assets/motor_support.part b/robot/assets/motor_support.part new file mode 100644 index 0000000000000000000000000000000000000000..75f25db9fc5f2f77ee41339993f1e90a2fe79fd4 --- /dev/null +++ b/robot/assets/motor_support.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "M5y2lEokqUzNhieFD", + "isStandardContent": false, + "name": "motor_support <2>", + "partId": "RYGD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/motor_support.stl b/robot/assets/motor_support.stl new file mode 100644 index 0000000000000000000000000000000000000000..42acb9d61d568295bcf9829c9b6521f04b7e4f40 --- /dev/null +++ b/robot/assets/motor_support.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a741ee0dc71b349b8d6def4bffb826c4b9304c47cf0f00ffd1a3140b9205220 +size 180884 diff --git a/robot/assets/neck.part b/robot/assets/neck.part new file mode 100644 index 0000000000000000000000000000000000000000..23e86bf49f1e14381bcd296a5bb8213a5a6e580a --- /dev/null +++ b/robot/assets/neck.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "Mp1N9lFNNnGzVouAX", + "isStandardContent": false, + "name": "neck <2>", + "partId": "R6BD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/neck.stl b/robot/assets/neck.stl new file mode 100644 index 0000000000000000000000000000000000000000..ce34b0be3d7712548200dcf12111f709fd499aff Binary files /dev/null and b/robot/assets/neck.stl differ diff --git a/robot/assets/neck_pitch.part b/robot/assets/neck_pitch.part new file mode 100644 index 0000000000000000000000000000000000000000..682c0b5700e45b0d04fa4734cd82c477036f7a87 --- /dev/null +++ b/robot/assets/neck_pitch.part @@ -0,0 +1,14 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "9306fb07735e782de209a230", + "documentVersion": "f0b9dc2ed2b65290c37daecc", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "MLZ8mVman8YHTKSXj", + "isStandardContent": false, + "name": "neck_pitch <1>", + "partId": "RdDD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/neck_pitch.stl b/robot/assets/neck_pitch.stl new file mode 100644 index 0000000000000000000000000000000000000000..908246be34e267730f3f95e994e09f6f17e1554d --- /dev/null +++ b/robot/assets/neck_pitch.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9aed695e03da3819d244ecc66f1ad2d3c5c435f759403bb9e0f3b9ca2876453 +size 356084 diff --git a/robot/assets/noenoeil.part b/robot/assets/noenoeil.part new file mode 100644 index 0000000000000000000000000000000000000000..052f9ab42ad4772d864b88d5e3afb844ecd014b1 --- /dev/null +++ b/robot/assets/noenoeil.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "MYFat2pb9IuxkqfjY", + "isStandardContent": false, + "name": "noenoeil <1>", + "partId": "RALD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/noenoeil.stl b/robot/assets/noenoeil.stl new file mode 100644 index 0000000000000000000000000000000000000000..40ef4d074244dd8e1eef792a76c075f6b4f725fc Binary files /dev/null and b/robot/assets/noenoeil.stl differ diff --git a/robot/assets/np_f970.part b/robot/assets/np_f970.part new file mode 100644 index 0000000000000000000000000000000000000000..65bb004867591885b05eb1004d5658248c89d1ef --- /dev/null +++ b/robot/assets/np_f970.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "2e7ae1b0d9ba087c7bcd41de", + "fullConfiguration": "default", + "id": "MRjnbJSLuN6LprqOg", + "isStandardContent": false, + "name": "NP-F970 <1>", + "partId": "JFD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/np_f970.stl b/robot/assets/np_f970.stl new file mode 100644 index 0000000000000000000000000000000000000000..62eb580af031af360593c249354d31efb3ce0c40 --- /dev/null +++ b/robot/assets/np_f970.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:979ca81251d4ec5862b6c987b46095aa07d0534ca1ec15f3cf438bbf7189deda +size 1048584 diff --git a/robot/assets/pcb__raspberry_pi_zero_2_w.part b/robot/assets/pcb__raspberry_pi_zero_2_w.part new file mode 100644 index 0000000000000000000000000000000000000000..3958cae4aee4ca6a8a09e644abc9e728ba64a439 --- /dev/null +++ b/robot/assets/pcb__raspberry_pi_zero_2_w.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "c1085f5be782740f05cd18b2", + "fullConfiguration": "default", + "id": "MrOXTXNp4AShbRVlx", + "isStandardContent": false, + "name": "PCB, Raspberry Pi Zero 2 W <1>", + "partId": "KF7G", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/pcb__raspberry_pi_zero_2_w.stl b/robot/assets/pcb__raspberry_pi_zero_2_w.stl new file mode 100644 index 0000000000000000000000000000000000000000..d32eec6ea4fc3bd64fbbd3e0d288e7c236053b68 --- /dev/null +++ b/robot/assets/pcb__raspberry_pi_zero_2_w.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0608b3cc7d15e479ae3a275c03096df44322ed06a8dbfc59fe790c46b3690753 +size 1048584 diff --git a/robot/assets/power_support.part b/robot/assets/power_support.part new file mode 100644 index 0000000000000000000000000000000000000000..1bb80579e8c24af766a2e21e3579cd7c9b76bd1f --- /dev/null +++ b/robot/assets/power_support.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "MKtTPacZZyojWma+b", + "isStandardContent": false, + "name": "power_support <1>", + "partId": "RDCD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/power_support.stl b/robot/assets/power_support.stl new file mode 100644 index 0000000000000000000000000000000000000000..3cb7d8c737d081ac082f1a83de8bb106af0e8e17 --- /dev/null +++ b/robot/assets/power_support.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb43ba9351f51559f49ffc89679478288cfe6e9682b31898397406165b520cbe +size 641684 diff --git a/robot/assets/right_shell.part b/robot/assets/right_shell.part new file mode 100644 index 0000000000000000000000000000000000000000..67e2f543b4b81749a3aa4846fc323527cda7c659 --- /dev/null +++ b/robot/assets/right_shell.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "M7Gm6FOo6Hf6qW5Fn", + "isStandardContent": false, + "name": "right_shell <1>", + "partId": "RaGD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/right_shell.stl b/robot/assets/right_shell.stl new file mode 100644 index 0000000000000000000000000000000000000000..fc4af9edbe60c67ce5387c02cf7cc5ef1affd2fe --- /dev/null +++ b/robot/assets/right_shell.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:484779f2bbe856f212d96a152550bb6834fd3c69603da315b6f70d1a3766d120 +size 1048584 diff --git a/robot/assets/right_upper_leg.part b/robot/assets/right_upper_leg.part new file mode 100644 index 0000000000000000000000000000000000000000..8300eedbe499dfc47c2618a8c51fab3b126b65e9 --- /dev/null +++ b/robot/assets/right_upper_leg.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "49900cb439825f734c36e098", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "MtnGERvz7RcFa4xeC", + "isStandardContent": false, + "name": "right_upper_leg <1>", + "partId": "R7GD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/right_upper_leg.stl b/robot/assets/right_upper_leg.stl new file mode 100644 index 0000000000000000000000000000000000000000..9211187ae2c892a035109ac8cc1439cb046a521c --- /dev/null +++ b/robot/assets/right_upper_leg.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:208f4c94a94a9c6b978030ea194440a94a0508390cf5b0ce8efc5e560f559f21 +size 612584 diff --git a/robot/assets/rim.part b/robot/assets/rim.part new file mode 100644 index 0000000000000000000000000000000000000000..5e14debc5a304b0b21de0229b7cdc3e9d50eef88 --- /dev/null +++ b/robot/assets/rim.part @@ -0,0 +1,14 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "f694115e325b201fc7eee9eb", + "documentVersion": "f839e201fb05eeec735c386e", + "elementId": "a48e2e3940da29620aa227db", + "fullConfiguration": "default", + "id": "M5j7f+l/mYiBJew4g", + "isStandardContent": false, + "name": "rim <1>", + "partId": "RVHD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/rim.stl b/robot/assets/rim.stl new file mode 100644 index 0000000000000000000000000000000000000000..3d817edda7e5503778bc7787480a8418b025f6bf --- /dev/null +++ b/robot/assets/rim.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2a84cd05ed8ce87bbdd64950bca415ba5945641385f5ec7cdbb161aa37281a4 +size 115284 diff --git a/robot/assets/roller_blade.part b/robot/assets/roller_blade.part new file mode 100644 index 0000000000000000000000000000000000000000..d767c37fc022466b565b4491a02475eca1d6f334 --- /dev/null +++ b/robot/assets/roller_blade.part @@ -0,0 +1,14 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "f694115e325b201fc7eee9eb", + "documentVersion": "f839e201fb05eeec735c386e", + "elementId": "a48e2e3940da29620aa227db", + "fullConfiguration": "default", + "id": "MlRvMQE63m7hFBxbA", + "isStandardContent": false, + "name": "roller_blade <1>", + "partId": "RbHD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/roller_blade.stl b/robot/assets/roller_blade.stl new file mode 100644 index 0000000000000000000000000000000000000000..36d2e14836ffb9bf378106e534494a659dc6c95e --- /dev/null +++ b/robot/assets/roller_blade.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b13447a82624d952e958d83572ed0c6e610d595db1f7f60217b6c8f059fec15 +size 1048484 diff --git a/robot/assets/seeed_bearing__configuration__22x16x4.part b/robot/assets/seeed_bearing__configuration__22x16x4.part new file mode 100644 index 0000000000000000000000000000000000000000..a5c068a41d33d8858adb995ba2081dc00c7a6e3e --- /dev/null +++ b/robot/assets/seeed_bearing__configuration__22x16x4.part @@ -0,0 +1,13 @@ +{ + "configuration": "List_ydxZOkfPyEIdF6=_22x16x4", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "92eaf48a756ec816309fc756", + "fullConfiguration": "List_ydxZOkfPyEIdF6=_22x16x4", + "id": "MQ5Bx0sg5RW0ntDAW", + "isStandardContent": false, + "name": "Seeed bearing <8>", + "partId": "JHD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/seeed_bearing__configuration__22x16x4.stl b/robot/assets/seeed_bearing__configuration__22x16x4.stl new file mode 100644 index 0000000000000000000000000000000000000000..6808709c9c0d93f272f43dfe4f20d21cc1542082 --- /dev/null +++ b/robot/assets/seeed_bearing__configuration__22x16x4.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:154412afeab1875acfc8bbd437f193f02c86cdd6a556395db10bb7126c545c6e +size 1048584 diff --git a/robot/assets/seeed_bearing__configuration_default.part b/robot/assets/seeed_bearing__configuration_default.part new file mode 100644 index 0000000000000000000000000000000000000000..3b22146bc37d669b317e54b6398928a3a8b47ec4 --- /dev/null +++ b/robot/assets/seeed_bearing__configuration_default.part @@ -0,0 +1,13 @@ +{ + "configuration": "List_ydxZOkfPyEIdF6=Default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "92eaf48a756ec816309fc756", + "fullConfiguration": "List_ydxZOkfPyEIdF6=Default", + "id": "MHnJznQ2OhdOOo7w5", + "isStandardContent": false, + "name": "Seeed bearing <10>", + "partId": "JHD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/seeed_bearing__configuration_default.stl b/robot/assets/seeed_bearing__configuration_default.stl new file mode 100644 index 0000000000000000000000000000000000000000..7ccba0f0afb07a5bfceb2c22602493491d9819e0 --- /dev/null +++ b/robot/assets/seeed_bearing__configuration_default.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d0d4c174a167e5f783b52b212a14a5bbd8a3180988c744c299c330a6b3de448 +size 1048584 diff --git a/robot/assets/soft_mouth_top.part b/robot/assets/soft_mouth_top.part new file mode 100644 index 0000000000000000000000000000000000000000..8c713e0f21b9833d4d76a029d94a8eade149035d --- /dev/null +++ b/robot/assets/soft_mouth_top.part @@ -0,0 +1,14 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "9306fb07735e782de209a230", + "documentVersion": "f0b9dc2ed2b65290c37daecc", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "MSnJgmvIMI2MH46WD", + "isStandardContent": false, + "name": "soft_mouth_top <1>", + "partId": "RHCD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/soft_mouth_top.stl b/robot/assets/soft_mouth_top.stl new file mode 100644 index 0000000000000000000000000000000000000000..abfbf6b642833633e866514161154a4b32bdb44e --- /dev/null +++ b/robot/assets/soft_mouth_top.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16f662c82bd3e24f0e64ee22b6b549b9a2a76f6de7b7477b9f89f5861f3e91a1 +size 393584 diff --git a/robot/assets/sole_left.part b/robot/assets/sole_left.part new file mode 100644 index 0000000000000000000000000000000000000000..59ff7dd59df63d4fbcff99f915d3291b7859df59 --- /dev/null +++ b/robot/assets/sole_left.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "48ccc523b8461dff097d59f9", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "MGDwbMclRQjrME1m+", + "isStandardContent": false, + "name": "sole_left <1>", + "partId": "R0BD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/sole_left.stl b/robot/assets/sole_left.stl new file mode 100644 index 0000000000000000000000000000000000000000..7512f49fc3661cfd6c629a6be8adc12c05667920 --- /dev/null +++ b/robot/assets/sole_left.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db35f3b231c075fe1f9cb5449e7a698fb8ea97362daf8432be3e9700c2067574 +size 789484 diff --git a/robot/assets/sole_right.part b/robot/assets/sole_right.part new file mode 100644 index 0000000000000000000000000000000000000000..809347b161434b2dcd96874ac3483f491a2010ec --- /dev/null +++ b/robot/assets/sole_right.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "48ccc523b8461dff097d59f9", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "M29FL+tazLvANCmWh", + "isStandardContent": false, + "name": "sole_right <1>", + "partId": "R8CH", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/sole_right.stl b/robot/assets/sole_right.stl new file mode 100644 index 0000000000000000000000000000000000000000..00e81e0b97fe751040a1c49e5833860e5ae3f62a --- /dev/null +++ b/robot/assets/sole_right.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4f5c114aae7137d559cacfb71d77c981588850335de5a09a14f95a4192a218f +size 794484 diff --git a/robot/assets/speaker.part b/robot/assets/speaker.part new file mode 100644 index 0000000000000000000000000000000000000000..a790e12eea406e8dd53e9dc060d0e5c4a14564e0 --- /dev/null +++ b/robot/assets/speaker.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "f622c3133a65333d713a0880", + "fullConfiguration": "default", + "id": "MulH+XC1B6nhcOdGg", + "isStandardContent": false, + "name": "speaker <1>", + "partId": "JHD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/speaker.stl b/robot/assets/speaker.stl new file mode 100644 index 0000000000000000000000000000000000000000..1f4de82900f5a13ef397d39a61b0b8985fb5c956 Binary files /dev/null and b/robot/assets/speaker.stl differ diff --git a/robot/assets/tire.part b/robot/assets/tire.part new file mode 100644 index 0000000000000000000000000000000000000000..b6c128d1f418525d75aea899dcc8bda85e4c8316 --- /dev/null +++ b/robot/assets/tire.part @@ -0,0 +1,14 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "f694115e325b201fc7eee9eb", + "documentVersion": "f839e201fb05eeec735c386e", + "elementId": "a48e2e3940da29620aa227db", + "fullConfiguration": "default", + "id": "M9smhH3H3mAiXciQc", + "isStandardContent": false, + "name": "tire <1>", + "partId": "RYHD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/tire.stl b/robot/assets/tire.stl new file mode 100644 index 0000000000000000000000000000000000000000..beda34da22ab88a190a3dca4a977f61d934fdef3 --- /dev/null +++ b/robot/assets/tire.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f680806474bcfaa5b0a1db5b008578ccbedb33b60a39221c494cbff409033c9 +size 352884 diff --git a/robot/assets/top_head_shell.part b/robot/assets/top_head_shell.part new file mode 100644 index 0000000000000000000000000000000000000000..0512d4cba020194be96b5cc07bfc4a53690fda3a --- /dev/null +++ b/robot/assets/top_head_shell.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "MCM/35G26Fd1GFOzR", + "isStandardContent": false, + "name": "top_head_shell <1>", + "partId": "J/D", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/top_head_shell.stl b/robot/assets/top_head_shell.stl new file mode 100644 index 0000000000000000000000000000000000000000..c7313cca3de6984f7d1538746e85298d7fb9b953 --- /dev/null +++ b/robot/assets/top_head_shell.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc64288c0d54e13ec907256c2b99535937d370af1410de498905ec3cf8d7c3df +size 806084 diff --git a/robot/assets/trunk_base.part b/robot/assets/trunk_base.part new file mode 100644 index 0000000000000000000000000000000000000000..062b31ee8c86d4b0738382f708325a81c74cd2a7 --- /dev/null +++ b/robot/assets/trunk_base.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "MJcJLYFe5PHdcbIOw", + "isStandardContent": false, + "name": "trunk_base <1>", + "partId": "RlBD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/trunk_base.stl b/robot/assets/trunk_base.stl new file mode 100644 index 0000000000000000000000000000000000000000..1a39a745173e415c151d1321c56b371b302581df --- /dev/null +++ b/robot/assets/trunk_base.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fabfecefb73fbdc027e0fc8fc482a3857b86682a8dac0ca2ed88ae3011c01659 +size 184984 diff --git a/robot/assets/trunk_shell_left.part b/robot/assets/trunk_shell_left.part new file mode 100644 index 0000000000000000000000000000000000000000..60a8cba9940af8171e33cbd71153f42e701b20be --- /dev/null +++ b/robot/assets/trunk_shell_left.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "49900cb439825f734c36e098", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "Mx9wCEl1i0Lb7LDyx", + "isStandardContent": false, + "name": "trunk_shell_left <1>", + "partId": "RwKD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/trunk_shell_left.stl b/robot/assets/trunk_shell_left.stl new file mode 100644 index 0000000000000000000000000000000000000000..a712072a9f0751a1e75425b1f0d257187054cf74 --- /dev/null +++ b/robot/assets/trunk_shell_left.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:508bf1436c09bb5acb27568b157477f74ccd985f5cb0911a0d0e25d178882772 +size 708384 diff --git a/robot/assets/trunk_shell_right.part b/robot/assets/trunk_shell_right.part new file mode 100644 index 0000000000000000000000000000000000000000..30b4a415beffa93debd2dfa6ec32a5e65225df8d --- /dev/null +++ b/robot/assets/trunk_shell_right.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "49900cb439825f734c36e098", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "M7Gm6FOo6Hf6qW5Fn", + "isStandardContent": false, + "name": "trunk_shell_right <1>", + "partId": "R+LD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/trunk_shell_right.stl b/robot/assets/trunk_shell_right.stl new file mode 100644 index 0000000000000000000000000000000000000000..b1a5e84e7128bbcb48ffb87396d4297dc5ddd0bb --- /dev/null +++ b/robot/assets/trunk_shell_right.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5761d6995bfc175ddf429bab8ee2fab2fa9dea1ff52da30531a3b79be1c730e +size 567984 diff --git a/robot/assets/upper_leg_left.part b/robot/assets/upper_leg_left.part new file mode 100644 index 0000000000000000000000000000000000000000..1c92ce4e75579669e7217041b2e223dfd79f3e2c --- /dev/null +++ b/robot/assets/upper_leg_left.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "MCzyiRc5ESe5zlNkJ", + "isStandardContent": false, + "name": "upper_leg_left <1>", + "partId": "R+DD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/upper_leg_left.stl b/robot/assets/upper_leg_left.stl new file mode 100644 index 0000000000000000000000000000000000000000..1d11a793428f57f724539d506a953cf7fdd7e03f --- /dev/null +++ b/robot/assets/upper_leg_left.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b84e46d681cb971029e421c252de85e2f31e8858abee610dc26cd18037ef0224 +size 612584 diff --git a/robot/assets/upper_leg_right.part b/robot/assets/upper_leg_right.part new file mode 100644 index 0000000000000000000000000000000000000000..2e37a2e0f00eb1f82809ed8e8c14a6cd12cc5528 --- /dev/null +++ b/robot/assets/upper_leg_right.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "MtnGERvz7RcFa4xeC", + "isStandardContent": false, + "name": "upper_leg_right <1>", + "partId": "RsED", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/upper_leg_right.stl b/robot/assets/upper_leg_right.stl new file mode 100644 index 0000000000000000000000000000000000000000..4bd95e09c57cb1eb2583e5bfbca6ca9d0eac1186 --- /dev/null +++ b/robot/assets/upper_leg_right.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6ed49dc77a539c65b9db1251f16b1e037f5ccf4334607e487dd624f9e12f59e +size 612584 diff --git a/robot/assets/upper_leg_rigidity_plate.part b/robot/assets/upper_leg_rigidity_plate.part new file mode 100644 index 0000000000000000000000000000000000000000..042d47e74e0fffade6b0cd792cde49e7a28c70a1 --- /dev/null +++ b/robot/assets/upper_leg_rigidity_plate.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "451317b8e3aacc7f88e8f8ed", + "fullConfiguration": "default", + "id": "MpYBlDWICMN4d9B39", + "isStandardContent": false, + "name": "upper_leg_rigidity_plate <1>", + "partId": "RxED", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/upper_leg_rigidity_plate.stl b/robot/assets/upper_leg_rigidity_plate.stl new file mode 100644 index 0000000000000000000000000000000000000000..fd4273f3dd435bd089dd736d946a7db788bd502b --- /dev/null +++ b/robot/assets/upper_leg_rigidity_plate.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41a4f826b5badfb75a1c0a6d26527c49761de88597d67c25ad731df2cdab7995 +size 180084 diff --git a/robot/assets/xl330.part b/robot/assets/xl330.part new file mode 100644 index 0000000000000000000000000000000000000000..562b08cb0ca100faf81abe1d1cb283c39476bd75 --- /dev/null +++ b/robot/assets/xl330.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "e34e27a4a091c95d26a71da8", + "fullConfiguration": "default", + "id": "MNMyVEwhc7HfSm3EX", + "isStandardContent": false, + "name": "xl330 <11>", + "partId": "JND", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/xl330.stl b/robot/assets/xl330.stl new file mode 100644 index 0000000000000000000000000000000000000000..396387ea74be2461095d664e8c0c79bcf99b4f39 --- /dev/null +++ b/robot/assets/xl330.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9f6bf7dd9d8b307a4174b40ff12517b3ea470e5535319a5b7dcce4ba52cdfe1 +size 206384 diff --git a/robot/assets/yaw2roll.part b/robot/assets/yaw2roll.part new file mode 100644 index 0000000000000000000000000000000000000000..b1ff9583c274bc6a0a8a9ff1547d56462f2a9755 --- /dev/null +++ b/robot/assets/yaw2roll.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "d6fcdccc8b25aaa256e7e213", + "fullConfiguration": "default", + "id": "MO3UG60E/crGUBuqS", + "isStandardContent": false, + "name": "yaw2roll <1>", + "partId": "JgD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/yaw2roll.stl b/robot/assets/yaw2roll.stl new file mode 100644 index 0000000000000000000000000000000000000000..a9d4fa0e3979e3a131f0f41280c307f860ac8a6e --- /dev/null +++ b/robot/assets/yaw2roll.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56ce1110e43c2279c6580f79a2a8c9e3f91b3bf5cdf8cf00b1caa3cab127a6a7 +size 620284 diff --git a/robot/assets/yaw_roll_motion.part b/robot/assets/yaw_roll_motion.part new file mode 100644 index 0000000000000000000000000000000000000000..bb6ae0d319afa79d2359d054e70ff506e7eb7df2 --- /dev/null +++ b/robot/assets/yaw_roll_motion.part @@ -0,0 +1,13 @@ +{ + "configuration": "default", + "documentId": "804927696f06d877f3f1803e", + "documentMicroversion": "fc8237658b0c3e9ada6f813b", + "elementId": "cceb83ef371fcd79b077022f", + "fullConfiguration": "default", + "id": "M8nmO8TdXJ1yzOlXl", + "isStandardContent": false, + "name": "yaw_roll_motion <1>", + "partId": "RcBD", + "suppressed": false, + "type": "Part" +} \ No newline at end of file diff --git a/robot/assets/yaw_roll_motion.stl b/robot/assets/yaw_roll_motion.stl new file mode 100644 index 0000000000000000000000000000000000000000..4dcec1c0787ccd78af7b127e7076b72b85a0c6b9 --- /dev/null +++ b/robot/assets/yaw_roll_motion.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41149f07f2fb4f2c62b589b3e43c17bedbc57e17d2de5d4e22c4f4e4d3e73dc7 +size 290784 diff --git a/robot/ball.xml b/robot/ball.xml new file mode 100644 index 0000000000000000000000000000000000000000..ec3b7b1d8ae3e6c243fad65fd15847b8564b68d2 --- /dev/null +++ b/robot/ball.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + diff --git a/robot/config_mjcf_allcollisions.json b/robot/config_mjcf_allcollisions.json new file mode 100644 index 0000000000000000000000000000000000000000..44ac1f8b6594bf033eed42ea9482c9a2d653e76e --- /dev/null +++ b/robot/config_mjcf_allcollisions.json @@ -0,0 +1,48 @@ +{ + "url": "https://cad.onshape.com/documents/804927696f06d877f3f1803e/w/5b75db19292e71970de02dee/e/ef6e972847fec8d82570b35e", + "outputFormat": "mujoco", + "robot_name": "microduck", + "output_filename": "robot_allcollisions", + "simplify_stls": true, + "max_stl_size": 1.0, + "ignore": { + "*": "collision", + "!sole_left": "collision", + "!sole_right": "collision", + "!leg": "collision", + "!power_support": "collision", + + "!top_head_shell": "collision", + "!bottom_head_shell": "collision", + "!jaw": "collision", + "!left_upper_leg": "collision", + "!right_upper_leg": "collision", + "!hip_l": "collision", + "!NP-F970": "collision", + "!trunk_shell_left": "collision", + "!trunk_shell_right": "collision", + + }, + "additional_xml": [ + "joints_properties.xml", + "sensors.xml", + "additional.xml" + ], + "post_import_commands": [ + "sed -i 's/body name=\"trunk_base\" pos=\"[^\"]*\"/body name=\"trunk_base\" pos=\"0 0 0.12\"/' robot_allcollisions.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"left_foot_collision\" class=\"collision\"/}' robot_allcollisions.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"right_foot_collision\" class=\"collision\"/}' robot_allcollisions.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_allcollisions.xml", + "sed -i 's/ inheritrange=\"1\"//g' robot_allcollisions.xml", + "sed -i 's|]*name=\"head_camera\"[^>]*pos=\"\\([^\"]*\\)\"[^>]*/>|&\\n |' robot_allcollisions.xml" + ], + "joint_properties": { + "default": { + "class": "chosen_actuator" + }, + "passive*": { + "actuated": false, + "class" : "passive_joint" + } + } +} \ No newline at end of file diff --git a/robot/config_mjcf_allcollisions_backlash.json b/robot/config_mjcf_allcollisions_backlash.json new file mode 100644 index 0000000000000000000000000000000000000000..7af0a9b27c80dc3226269a6f947eeef3de114f9a --- /dev/null +++ b/robot/config_mjcf_allcollisions_backlash.json @@ -0,0 +1,49 @@ +{ + "url": "https://cad.onshape.com/documents/804927696f06d877f3f1803e/w/5b75db19292e71970de02dee/e/ef6e972847fec8d82570b35e", + "outputFormat": "mujoco", + "robot_name": "microduck", + "output_filename": "robot_allcollisions_backlash", + "simplify_stls": true, + "max_stl_size": 1.0, + "ignore": { + "*": "collision", + "!sole_left": "collision", + "!sole_right": "collision", + "!leg": "collision", + "!power_support": "collision", + + "!top_head_shell": "collision", + "!bottom_head_shell": "collision", + "!jaw": "collision", + "!left_upper_leg": "collision", + "!right_upper_leg": "collision", + "!hip_l": "collision", + "!NP-F970": "collision", + "!trunk_shell_left": "collision", + "!trunk_shell_right": "collision", + + }, + "additional_xml": [ + "joints_properties.xml", + "sensors.xml", + "additional.xml" + ], + "post_import_commands": [ + "sed -i 's/body name=\"trunk_base\" pos=\"[^\"]*\"/body name=\"trunk_base\" pos=\"0 0 0.12\"/' robot_allcollisions_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"left_foot_collision\" class=\"collision\"/}' robot_allcollisions_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"right_foot_collision\" class=\"collision\"/}' robot_allcollisions_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_allcollisions_backlash.xml", + "sed -i 's/ inheritrange=\"1\"//g' robot_allcollisions_backlash.xml", + "sed -i 's|]*name=\"head_camera\"[^>]*pos=\"\\([^\"]*\\)\"[^>]*/>|&\\n |' robot_allcollisions_backlash.xml", + "python3 add_backlash.py robot_allcollisions_backlash.xml --backlash-deg 2.0" + ], + "joint_properties": { + "default": { + "class": "chosen_actuator" + }, + "passive*": { + "actuated": false, + "class" : "passive_joint" + } + } +} diff --git a/robot/config_mjcf_allcollisions_rollers.json b/robot/config_mjcf_allcollisions_rollers.json new file mode 100644 index 0000000000000000000000000000000000000000..b62b3cc04740771287b3cc8cb46d21ca79c336c1 --- /dev/null +++ b/robot/config_mjcf_allcollisions_rollers.json @@ -0,0 +1,49 @@ +{ + "url": "https://cad.onshape.com/documents/804927696f06d877f3f1803e/w/5b75db19292e71970de02dee/e/ed34b749f5a3718f68024fd5", + "outputFormat": "mujoco", + "robot_name": "microduck", + "output_filename": "robot_allcollisions_rollers", + "simplify_stls": true, + "max_stl_size": 1.0, + "ignore": { + "*": "collision", + "!sole_left": "collision", + "!sole_right": "collision", + "!leg": "collision", + "!power_support": "collision", + + "!top_head_shell": "collision", + "!bottom_head_shell": "collision", + "!jaw": "collision", + "!left_upper_leg": "collision", + "!right_upper_leg": "collision", + "!hip_l": "collision", + "!NP-F970": "collision", + "!trunk_shell_left": "collision", + "!trunk_shell_right": "collision", + "!tire": "collision", + + }, + "additional_xml": [ + "joints_properties.xml", + "sensors.xml", + "additional.xml" + ], + "post_import_commands": [ + "sed -i 's/body name=\"trunk_base\" pos=\"[^\"]*\"/body name=\"trunk_base\" pos=\"0 0 0.12\"/' robot_allcollisions_rollers.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"left_foot_collision\" class=\"collision\"/}' robot_allcollisions_rollers.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"right_foot_collision\" class=\"collision\"/}' robot_allcollisions_rollers.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_allcollisions_rollers.xml", + "sed -i 's/ inheritrange=\"1\"//g' robot_allcollisions_rollers.xml", + "sed -i 's|]*name=\"head_camera\"[^>]*pos=\"\\([^\"]*\\)\"[^>]*/>|&\\n |' robot_allcollisions_rollers.xml" + ], + "joint_properties": { + "default": { + "class": "chosen_actuator" + }, + "passive*": { + "actuated": false, + "class" : "passive_joint" + } + } +} \ No newline at end of file diff --git a/robot/config_mjcf_allcollisions_rollers_backlash.json b/robot/config_mjcf_allcollisions_rollers_backlash.json new file mode 100644 index 0000000000000000000000000000000000000000..e776dd5a2cf697d9f6f272412ec3677b32aec727 --- /dev/null +++ b/robot/config_mjcf_allcollisions_rollers_backlash.json @@ -0,0 +1,50 @@ +{ + "url": "https://cad.onshape.com/documents/804927696f06d877f3f1803e/w/5b75db19292e71970de02dee/e/ed34b749f5a3718f68024fd5", + "outputFormat": "mujoco", + "robot_name": "microduck", + "output_filename": "robot_allcollisions_rollers_backlash", + "simplify_stls": true, + "max_stl_size": 1.0, + "ignore": { + "*": "collision", + "!sole_left": "collision", + "!sole_right": "collision", + "!leg": "collision", + "!power_support": "collision", + + "!top_head_shell": "collision", + "!bottom_head_shell": "collision", + "!jaw": "collision", + "!left_upper_leg": "collision", + "!right_upper_leg": "collision", + "!hip_l": "collision", + "!NP-F970": "collision", + "!trunk_shell_left": "collision", + "!trunk_shell_right": "collision", + "!tire": "collision", + + }, + "additional_xml": [ + "joints_properties.xml", + "sensors.xml", + "additional.xml" + ], + "post_import_commands": [ + "sed -i 's/body name=\"trunk_base\" pos=\"[^\"]*\"/body name=\"trunk_base\" pos=\"0 0 0.12\"/' robot_allcollisions_rollers_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"left_foot_collision\" class=\"collision\"/}' robot_allcollisions_rollers_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"right_foot_collision\" class=\"collision\"/}' robot_allcollisions_rollers_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_allcollisions_rollers_backlash.xml", + "sed -i 's/ inheritrange=\"1\"//g' robot_allcollisions_rollers_backlash.xml", + "sed -i 's|]*name=\"head_camera\"[^>]*pos=\"\\([^\"]*\\)\"[^>]*/>|&\\n |' robot_allcollisions_rollers_backlash.xml", + "python3 add_backlash.py robot_allcollisions_rollers_backlash.xml --backlash-deg 2.0" + ], + "joint_properties": { + "default": { + "class": "chosen_actuator" + }, + "passive*": { + "actuated": false, + "class" : "passive_joint" + } + } +} diff --git a/robot/config_mjcf_walk.json b/robot/config_mjcf_walk.json new file mode 100644 index 0000000000000000000000000000000000000000..7f988d469f0e494b15218079114fd868e72ed256 --- /dev/null +++ b/robot/config_mjcf_walk.json @@ -0,0 +1,39 @@ +{ + "url": "https://cad.onshape.com/documents/804927696f06d877f3f1803e/w/5b75db19292e71970de02dee/e/ef6e972847fec8d82570b35e", + "outputFormat": "mujoco", + "robot_name": "microduck", + "output_filename": "robot_walk", + "simplify_stls": true, + "max_stl_size": 1.0, + "ignore": { + "*": "collision", + "!sole_left": "collision", + "!sole_right": "collision", + "!leg": "collision", + "!power_support": "collision" + }, + "additional_xml": [ + "joints_properties.xml", + "sensors.xml", + "additional.xml" + ], + "post_import_commands": [ + "sed -i 's/body name=\"trunk_base\" pos=\"[^\"]*\"/body name=\"trunk_base\" pos=\"0 0 0.12\"/' robot_walk.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"left_foot_collision\" class=\"collision\"/}' robot_walk.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"right_foot_collision\" class=\"collision\"/}' robot_walk.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_walk.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_walk.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_walk.xml", + "sed -i 's/ inheritrange=\"1\"//g' robot_walk.xml", + "sed -i 's|]*name=\"head_camera\"[^>]*pos=\"\\([^\"]*\\)\"[^>]*/>|&\\n |' robot_walk.xml" + ], + "joint_properties": { + "default": { + "class": "chosen_actuator" + }, + "passive*": { + "actuated": false, + "class" : "passive_joint" + } + } +} \ No newline at end of file diff --git a/robot/config_mjcf_walk_backlash.json b/robot/config_mjcf_walk_backlash.json new file mode 100644 index 0000000000000000000000000000000000000000..15d07b0b0008a50816e17651572f5656dcb4fe97 --- /dev/null +++ b/robot/config_mjcf_walk_backlash.json @@ -0,0 +1,40 @@ +{ + "url": "https://cad.onshape.com/documents/804927696f06d877f3f1803e/w/5b75db19292e71970de02dee/e/ef6e972847fec8d82570b35e", + "outputFormat": "mujoco", + "robot_name": "microduck", + "output_filename": "robot_walk_backlash", + "simplify_stls": true, + "max_stl_size": 1.0, + "ignore": { + "*": "collision", + "!sole_left": "collision", + "!sole_right": "collision", + "!leg": "collision", + "!power_support": "collision" + }, + "additional_xml": [ + "joints_properties.xml", + "sensors.xml", + "additional.xml" + ], + "post_import_commands": [ + "sed -i 's/body name=\"trunk_base\" pos=\"[^\"]*\"/body name=\"trunk_base\" pos=\"0 0 0.12\"/' robot_walk_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"left_foot_collision\" class=\"collision\"/}' robot_walk_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/name=\"right_foot_collision\" class=\"collision\"/}' robot_walk_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_walk_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_walk_backlash.xml", + "sed -i '//{n; n; s/class=\"collision\"/class=\"self_collision_only\"/}' robot_walk_backlash.xml", + "sed -i 's/ inheritrange=\"1\"//g' robot_walk_backlash.xml", + "sed -i 's|]*name=\"head_camera\"[^>]*pos=\"\\([^\"]*\\)\"[^>]*/>|&\\n |' robot_walk_backlash.xml", + "python3 add_backlash.py robot_walk_backlash.xml --backlash-deg 2.0" + ], + "joint_properties": { + "default": { + "class": "chosen_actuator" + }, + "passive*": { + "actuated": false, + "class" : "passive_joint" + } + } +} diff --git a/robot/joints_properties.xml b/robot/joints_properties.xml new file mode 100644 index 0000000000000000000000000000000000000000..31bc6bca6b3b6741fa48eaa1a1a3a1fac429c12f --- /dev/null +++ b/robot/joints_properties.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/robot/robot_allcollisions.xml b/robot/robot_allcollisions.xml new file mode 100644 index 0000000000000000000000000000000000000000..4e94298a13df5b801b237813de7df97d6208d594 --- /dev/null +++ b/robot/robot_allcollisions.xml @@ -0,0 +1,434 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/robot_allcollisions_backlash.xml b/robot/robot_allcollisions_backlash.xml new file mode 100644 index 0000000000000000000000000000000000000000..666f05e7dd26e54d2c5d7262deef544c51084b1d --- /dev/null +++ b/robot/robot_allcollisions_backlash.xml @@ -0,0 +1,459 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/robot_allcollisions_rollers.xml b/robot/robot_allcollisions_rollers.xml new file mode 100644 index 0000000000000000000000000000000000000000..7bbdbfec1d362576a132e0995e2e325096dbb8a5 --- /dev/null +++ b/robot/robot_allcollisions_rollers.xml @@ -0,0 +1,470 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/robot_allcollisions_rollers_backlash.xml b/robot/robot_allcollisions_rollers_backlash.xml new file mode 100644 index 0000000000000000000000000000000000000000..6c6d08f1439b5f461de31748985af5034e6102ea --- /dev/null +++ b/robot/robot_allcollisions_rollers_backlash.xml @@ -0,0 +1,495 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/robot_walk.xml b/robot/robot_walk.xml new file mode 100644 index 0000000000000000000000000000000000000000..ad9e5cdfba2f6eb5c09ff094540e465bd49097d6 --- /dev/null +++ b/robot/robot_walk.xml @@ -0,0 +1,428 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/robot_walk_backlash.xml b/robot/robot_walk_backlash.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c20025a427ba0cd79ce2afac6b0fba629d4ed45 --- /dev/null +++ b/robot/robot_walk_backlash.xml @@ -0,0 +1,453 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/scene.xml b/robot/scene.xml new file mode 100644 index 0000000000000000000000000000000000000000..d14790c9488a46d28c65e718cb5c854943a4e4af --- /dev/null +++ b/robot/scene.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/robot/scene_backlash.xml b/robot/scene_backlash.xml new file mode 100644 index 0000000000000000000000000000000000000000..95307ff751a3cc6fa6c0675cd6d0be7161b10d92 --- /dev/null +++ b/robot/scene_backlash.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/robot/scene_ball.xml b/robot/scene_ball.xml new file mode 100644 index 0000000000000000000000000000000000000000..ebd199289f5a1144db1217be507a4d764a89d33e --- /dev/null +++ b/robot/scene_ball.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/scene_rollers.xml b/robot/scene_rollers.xml new file mode 100644 index 0000000000000000000000000000000000000000..9b9907775bd3705fd99c80b074ffaadf6a33e9f6 --- /dev/null +++ b/robot/scene_rollers.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/robot/scene_walk.xml b/robot/scene_walk.xml new file mode 100644 index 0000000000000000000000000000000000000000..2d65ece385aec7ced50e7ea34cee1c4d3f17a132 --- /dev/null +++ b/robot/scene_walk.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/robot/scene_walk_backlash.xml b/robot/scene_walk_backlash.xml new file mode 100644 index 0000000000000000000000000000000000000000..75f03f4a1231d6bf528269c763eaa11e6ad1722f --- /dev/null +++ b/robot/scene_walk_backlash.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/robot/sensors.xml b/robot/sensors.xml new file mode 100644 index 0000000000000000000000000000000000000000..bc1eba7af3e05bd606033e525367a4fe64300420 --- /dev/null +++ b/robot/sensors.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file