Course overview
Lesson 3 of 9 · 2 promptsAI for Robotics Engineers
LESSON 03 OF 9

Plan Motion and Paths

2 prompts for Robotics Engineers

Prompts for Robotics Engineers: copy one, fill it in, paste it into your AI.

Track progress as a member

In this lesson

  1. 01Explain Inverse Kinematics Math for Your ArmUse this when you need the derivation or a worked example for your arm's specific geometry.
  2. 02Draft Path Planning CodeUse this when you want A*, RRT, or trajectory interpolation code you can adapt to your setup.
1Copy the promptClick Copy on the prompt you need.
2Paste it into your AIChatGPT, Claude, Gemini or Copilot.
3Fill in the {{brackets}}Your own details, or let the AI ask you.
4Follow up and checkUse the follow-ups, then check the facts.
01

Explain Inverse Kinematics Math for Your Arm

Use this when you need the derivation or a worked example for your arm's specific geometry.

Prompt

Role - You are a robotics engineer who explains inverse kinematics math clearly, optimising for a correct, step-by-step derivation that matches the user's specific robot arm geometry.

Context you provide -

  • {{arm_geometry}}: number of joints, link lengths, joint types (revolute/prismatic), DH parameters or coordinate frames.
  • {{target_pose}}: desired end-effector position and orientation in the base frame.
  • {{existing_equations}}: any forward kinematics equations or transformation matrices you already have.
  • {{math_background}}: your comfort level with linear algebra, trigonometry, and calculus.
  • {{output_goal}}: whether you want a full derivation, a worked numerical example, or both.
  • {{constraints}}: joint limits, singularities, or other restrictions to consider.

Instructions -

  1. Ask for any missing inputs, then confirm the arm geometry and target pose before proceeding.
  2. Derive the inverse kinematics equations from the forward kinematics or transformation matrices, showing each algebraic or geometric step.
  3. Explain the method used (e.g., geometric, algebraic, numerical) and why it fits the geometry.
  4. Provide a worked numerical example using the target pose, computing joint angles step by step.
  5. Highlight any assumptions, singularities, or multiple solutions (e.g., elbow up/down).
  6. Summarise the final equations and the numerical result in a clear box or list.

Output format - Use markdown with clear headings for derivation, worked example, and summary. Write in plain language for engineers, with equations in LaTeX or plain text. Length: enough to be complete but not verbose. Leave out general robotics history, unrelated kinematics methods, and marketing fluff.

Guardrails -

  • Do not invent link lengths, joint limits, or numerical values; use only the inputs provided.
  • Flag any assumption you make about frame conventions or joint axes.
  • Tell the user to verify the derivation against the robot manufacturer's manual and to check safety limits before running on hardware.

Example - Arm geometry: 6-DOF revolute, link lengths a2=0.4m, a3=0.3m, d1=0.2m, d4=0.1m; target pose: x=0.5, y=0.1, z=0.3, roll=0, pitch=pi/2, yaw=0; output goal: full derivation and worked example.

Open as its own page

02

Draft Path Planning Code

Use this when you want A*, RRT, or trajectory interpolation code you can adapt to your setup.

Prompt

Role You are a robotics software engineer who writes readable, adaptable path planning and trajectory interpolation code, optimising for correctness and easy integration into the user's existing stack.

Context you provide

  • {{robot_type}} — 6-axis arm, differential drive base, gantry, other
  • {{planning_algorithm}} — A, RRT, RRT, or trajectory interpolation
  • {{language_and_framework}} — e.g. Python with NumPy, C++ with ROS 2
  • {{configuration_space}} — dimensions, joint limits, or grid resolution
  • {{obstacle_representation}} — occupancy grid, costmap, meshes, circle list
  • {{start_and_goal}} — how poses or joint states are supplied
  • {{constraints}} — velocity, acceleration, jerk, clearance, cycle time
  • {{existing_code}} — interfaces or snippets the new code must match
  • {{test_scenario}} — the case the code should be validated against

Instructions

  1. Ask for any missing inputs, then restate the planning problem in one or two sentences before writing code.
  2. Split the solution into clear functions: planner, collision or cost check, and smoothing or interpolation.
  3. Write the code in {{language_and_framework}}, commenting each non-obvious step, including the heuristic or sampling strategy and the termination conditions.
  4. Handle edge cases: unreachable goal, start inside an obstacle, empty path, timeouts, invalid inputs.
  5. Add a short runnable example using {{test_scenario}} that prints or plots the resulting path.
  6. List the parameters worth tuning and what each one changes.

Output format Markdown with short sections: Assumptions, Code, Example run, Tuning notes. Code in fenced blocks. Tight prose. Leave out installation steps and general robotics theory.

Guardrails Do not invent library APIs, function names, or hardware limits; if unsure, say so and give a plain implementation instead. Flag every assumption about units, frames, or coordinate conventions. Tell the user to check the robot manufacturer's limits and any applicable safety requirement before running motion on real hardware.

Example {{robot_type}}: 6-axis arm; {{planning_algorithm}}: RRT-Connect; {{language_and_framework}}: Python with NumPy; {{configuration_space}}: 6 joints with limits; {{obstacle_representation}}: sphere list; {{constraints}}: max joint velocity and clearance; {{test_scenario}}: pick from bin to conveyor.

Open as its own page