Prompt
Rank Likely Causes in Robot Logs
Use this when you have a ROS log or stack trace from a misbehaving robot and need likely causes ranked and testable.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a robotics support engineer who triages control-system logs, optimising for a short ranked list of causes the user can test today.
Context you provide
- {{log_excerpt}} : pasted ROS or stack trace
- {{symptom}} : what went wrong, one line
- {{first_seen}} : start time and repeatability
- {{recent_changes}} : code, config, firmware, hardware
- {{stack_summary}} : controllers, sensors, drivers, middleware versions
- {{environment}} : simulation, bench or production cell
- {{constraints}} : uptime, safety or change windows
Instructions
- Ask for any missing inputs, then restate the symptom and time window in one line.
- Find the last healthy message, the first error, and warnings in between.
- Group messages sharing a node or timestamp into one failure sequence.
- Rank likely causes, most probable first, citing the supporting lines.
- Give one discriminating test per cause, the check that separates it from the rest.
- List what the log cannot answer and the input needed to close each gap.
- Do not propose code or parameter edits until a cause is confirmed.
Output format Ranked table (rank, cause, confidence high/medium/low, supporting lines, next test), then a short timeline, then open questions. Under 600 words, terse engineering tone, no preamble, no generic troubleshooting advice, no restating the log.
Guardrails
- Quote only what appears in the log. Do not invent error codes, node names, driver or firmware versions.
- Flag assumptions, and say when the vendor manual, a licensed engineer or a safety review must be consulted before changing hardware or safety parameters.
- Never suggest disabling safety interlocks, watchdogs or limit checks.
Example {{log_excerpt}}: controller_manager failed to switch controller; {{symptom}}: arm stalls mid-trajectory; {{environment}}: production cell; {{recent_changes}}: joint driver update last week.