All skills
Waveshare RoArm-M2 in the simulation

Real physics, in this tab. Nothing to install and no account. The first run downloads the robot runtime, about 14 MB.

Robot arm · Waveshare RoArm-M2

wave arm

Wave the arm gently side to side in a clear elevated pose.

taught their robot this by typing a sentence. It ran successfully, so it was published. What you see is the same program running against the same physics.

wave_arm.py

META = {"name": "wave_arm", "description": "Wave the arm gently side to side in a clear elevated pose.", "params": {"repeats": 2}}

def run(ctx, **params):
    arm = "arm"
    repeats = max(1, min(int(params.get("repeats", 2)), 5))
    ctx.move_to_point(arm, [0.30, 0.00, 0.30])
    for _ in range(repeats):
        ctx.move_to_point(arm, [0.30, -0.10, 0.30])
        ctx.move_to_point(arm, [0.30, 0.10, 0.30])
    ctx.move_to_point(arm, [0.30, 0.00, 0.30])