robot-simulation-setup

Generate pure-Python robot simulations for Pyodide using NumPy, Matplotlib, and SciPy.

Updated Dec 10, 2025
One-click install
npx skills add https://github.com/khanaleema/PhysicalAI-Book --skill robot-simulation-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: robot-simulation-setup
Source: https://github.com/khanaleema/PhysicalAI-Book/tree/main/.gemini/skills/robot-simulation-setup
Command: npx skills add https://github.com/khanaleema/PhysicalAI-Book --skill robot-simulation-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Produces educational Python simulations that run in Pyodide, illustrating robot kinematics, dynamics, and control without heavy engines.

Core Features & Use Cases

  • 2D/3D Robot Arm Simulations: Forward/inverse kinematics, workspace visualization, and trajectory plotting.
  • Simplified Dynamics: Basic gravity, inertia, and force/torque relationships for teaching.
  • Control System Demonstrations: PID and trajectory-tracking examples with visual feedback.
  • Educational Focus: Pure-Python, NumPy-based simulations designed for browser-based learning.

Quick Start

  • "Create a 2D 2-link arm forward-kinematics example in the browser"
  • "Visualize end-effector trajectory for a simple robot arm"

Frequently Asked Questions about robot-simulation-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create robot simulations that run in a web browser without installing heavy physics engines?

Browser-based robot simulations run in Pyodide using pure Python with NumPy and Matplotlib, avoiding PyBullet, MuJoCo, or Gazebo. This approach teaches kinematics, dynamics, and control in educational settings without dependency overhead or file-system access.

Can I teach robot kinematics and trajectory planning in the browser using Python?

Yes. Generate forward/inverse kinematics examples, workspace visualizations, and end-effector trajectory plots as interactive Pyodide simulations. NumPy-based code with type hints and docstrings supports classroom learning without external physics engines.

What's the best way to demonstrate PID control and dynamics in an educational robot simulation?

PID and trajectory-tracking demonstrations integrate simplified gravity, inertia, and force/torque relationships into Pyodide-compatible Python code. Visual feedback via Matplotlib makes control behavior tangible for students learning control systems.

Can Pyodide run robot simulations with 2D and 3D arm visualizations?

Yes. Pyodide-compatible simulations support both 2D and 3D robot arm visualizations using NumPy for computation and Matplotlib for rendering. Pure-Python implementations work entirely in the browser without backend infrastructure.

What are the limitations of browser-based robot simulations compared to desktop physics engines?

Browser simulations prioritize educational clarity over realism. They use simplified dynamics and exclude advanced features from PyBullet or MuJoCo, making them suitable for teaching fundamentals but not high-fidelity robotics research or complex multi-body dynamics.