arm
A serial robot arm on a weighted base (yaw, pitch joints, roll wrist, gripper), sized by statics and rigid-body dynamics. Per joint: the torque needed in the worst pose (arm straight out, level, payload at the fingertips, plus inertia at the given angular acceleration) against what its drive gives (motor x usable fraction x ratio x efficiency, capped at the gearbox rating), and the margin. Per tube link: weight, cantilever sag, root stress. Whole arm: reach, mass, tip sag, tip-over margin, joint speeds, fingertip of the shown pose. Motor, gearbox and material figures are inputs (assumptions until replaced by datasheets). Files: parts.csv, joints.csv, shoulder_torque.csv, scene.glb (the arm in its pose, metres, one mesh per part, metal finishes).
- Field
- Dynamics and control
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 2 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001one level link of 2 kg, 1 m, 1 kg at its end: shoulder torque g(mL/2 + PL) = 19.6133 N m, reach 1 mpassed
joints.J2.required_Nm{"value": 19.6133, "rel_tol": 1e-12}reach_m1 ± 1e-121lockedunder 0.01 % of the tolerance usedr0002two 1 m links, shoulder up 90, elbow -90: fingertip at x = 1, y = 0.5 + 1; shoulder torque level g(1x0.5 + 1x1.5) = 19.6133 N mpassed
fingertip_m.0{"value": 1.0, "abs_tol": 1e-12}fingertip_m.1{"value": 1.5, "abs_tol": 1e-12}fingertip_m.2{"value": 0.0, "abs_tol": 1e-12}joints.J2.required_Nm{"value": 19.6133, "rel_tol": 1e-12}joints.J3.required_Nm{"value": 4.903325, "rel_tol": 1e-12}r0003a 50 x 5 mm aluminium tube, 1 m, under its own weight: sag wL^4/8EIpassed
links.tube.tip_deflection_m{"value": 0.00018451536585365854, "rel_tol": 1e-09}tip_sag_m0.000184515 ± 1.8e-130.000184515lockedunder 0.01 % of the tolerance usedr0004the default arm builds: at least 15 parts in the scene, reach 1.36 mpassed
scene.meshes{"min": 15}reach_m1.36 ± 1.4e-121.36lockedunder 0.01 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
payload_kg | kg | 1.5 | Held at the fingertips. |
accel_deg_s2 | deg/s^2 | 90 | Peak angular acceleration of every joint, for the inertia torque. |
required_margin | 1 | 2.0 | Torque and stress margin a joint or link must reach. |
pose_deg | deg | [-35, 55, -80, -40, 0] | Shown pose: yaw, then each pitch joint (relative, degrees from level for the first), then roll. |
payload_offset_m | m | 0.02 | How far the payload's centre sits off the roll axis. |
payload_size_m | m | 0.06 | Edge of the payload cube shown in the gripper. |
base | {"height_m": 0.3, "radius_m": 0.22, "mass_kg": 30} | height_m (shoulder axis height), radius_m, mass_kg. | |
links | [{"name": "upper arm", "length_m": 0.6, "od_m": 0.08, "wall_m": 0.004}, {"name": "forearm", "length_m": 0.5, "od_m": 0.06, "wall_m": 0.003}, {"name": "wrist", "length_m": 0.1, "od_m": 0.05, "wall_m": 0.003}] | Tubes from the shoulder out: name, length_m, od_m, wall_m (or mass_kg). | |
tool | {"name": "two-finger gripper", "length_m": 0.16, "mass_kg": 0.65, "stroke_m": 0.08, "grip_force_N": 60, "radius_m": 0.04} | Gripper: name, length_m, mass_kg, stroke_m, grip_force_N, radius_m. | |
material | {"name": "aluminium 6061-T6", "E_Pa": 68900000000.0, "density_kg_m3": 2700, "yield_Pa": 276000000.0} | Tube material: name, E_Pa, density_kg_m3, yield_Pa. | |
joints | [{"key": "J1_base_yaw", "name": "J1 base yaw", "axis": "yaw", "motor": {"kind": "NEMA 23 stepper", "torque_Nm": 1.9, "usable_fraction": 0.6, "speed_rpm": 600, "mass_kg": 1.0, "frame_m": 0.057, "body_length_m": 0.076}, "gearbox": {"kind": "planetary", "ratio": 20, "efficiency": 0.85, "rated_output_Nm": 40, "mass_kg": 0.9, "length_m": 0.06}}, {"key": "J2_shoulder", "name": "J2 shoulder", "axis": "pitch", "motor": {"kind": "NEMA 34 stepper", "torque_Nm": 8.5, "usable_fraction": 0.6, "speed_rpm": 400, "mass_kg": 3.8, "frame_m": 0.086, "body_length_m": 0.118}, "gearbox": {"kind": "cycloidal", "ratio": 50, "efficiency": 0.8, "rated_output_Nm": 200, "mass_kg": 3.2, "length_m": 0.075}}, {"key": "J3_elbow", "name": "J3 elbow", "axis": "pitch", "motor": {"kind": "NEMA 23 stepper", "torque_Nm": 2.4, "usable_fraction": 0.6, "speed_rpm": 500, "mass_kg": 1.15, "frame_m": 0.057, "body_length_m": 0.1}, "gearbox": {"kind": "planetary", "ratio": 30, "efficiency": 0.85, "rated_output_Nm": 60, "mass_kg": 1.0, "length_m": 0.06}}, {"key": "J4_wrist_pitch", "name": "J4 wrist pitch", "axis": "pitch", "motor": {"kind": "NEMA 17 stepper", "torque_Nm": 0.59, "usable_fraction": 0.6, "speed_rpm": 500, "mass_kg": 0.5, "frame_m": 0.042, "body_length_m": 0.06}, "gearbox": {"kind": "planetary", "ratio": 27, "efficiency": 0.85, "rated_output_Nm": 18, "mass_kg": 0.45, "length_m": 0.045}}, {"key": "J5_wrist_roll", "name": "J5 wrist roll", "axis": "roll", "motor": {"kind": "NEMA 17 stepper", "torque_Nm": 0.45, "usable_fraction": 0.6, "speed_rpm": 600, "mass_kg": 0.35, "frame_m": 0.042, "body_length_m": 0.04}, "gearbox": {"kind": "planetary", "ratio": 10, "efficiency": 0.9, "rated_output_Nm": 8, "mass_kg": 0.25, "length_m": 0.035}}] | key, name, axis (yaw | pitch | roll; one pitch joint per link, in order), motor {kind, torque_Nm, usable_fraction, speed_rpm, mass_kg, frame_m, body_length_m}, gearbox {kind, ratio, efficiency, rated_output_Nm, mass_kg, length_m}. Assumed figures. | |
g | m/s^2 | 9.80665 |
Readings
| Name | Unit | Meaning |
|---|---|---|
reach_m | m | |
max_height_m | m | |
total_mass_kg | kg | |
moving_mass_kg | kg | |
tip_sag_m | m | |
tipover_margin | 1 | |
min_torque_margin | 1 | |
all_ok | ||
joints | per joint: required_Nm, static_Nm, dynamic_Nm, available_Nm, margin, speed_deg_s, limited_by, ok | |
links | per link: tip_deflection_m, end_slope_rad, root_moment_Nm, root_stress_MPa, stress_margin, end_force_N, I_m4 | |
parts | ||
upper_arm_I_m4 | m^4 | |
upper_arm_end_force_N | N | |
upper_arm_length_m | m | |
upper_arm_point_deflection_m | m | |
E_Pa | Pa | |
parts.csv | ||
joints.csv | ||
shoulder_torque.csv | ||
scene.glb |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.