How keranbyge/rosa-turtlesim works
ROSA is a natural-language agent for ROS1/ROS2: a user supplies a query, the agent reasons with an injected language model, and selected tools inspect or operate the robot system. Its TurtleSim demo specializes ROSA with demo prompts, model configuration, turtle-control tools, an interactive terminal, and optional microphone transcription. The README documents ROS1/ROS2 support and TurtleSim control; implementation excerpts establish the agent/tool assembly and several tool behaviors. Some demo wiring is shown only by the source index, so those links are limited to documented or indexed references.
Main entry points: turtle_agent.py TurtleAgent · __init__.py Tool Registry · rosa.py ROSA Agent · ros1.py ROS1 Tools
Components 18
Agent Core
- ROSA Agent
src/rosa/rosa.py - Robot Prompts
src/rosa/prompts.py
ROS Capabilities
- ROS1 Tools
src/rosa/tools/ros1.py - ROS2 Tools
src/rosa/tools/ros2.py - Log Tools
src/rosa/tools/log.py
TurtleSim Demo
- TurtleAgent
src/turtle_agent/scripts/turtle_agent.py - Model Setup
src/turtle_agent/scripts/llm.py - Demo Prompts
src/turtle_agent/scripts/prompts.py - Turtle Controls
src/turtle_agent/scripts/tools/turtle.py - Interactive Help
src/turtle_agent/scripts/help.py - Voice Input
src/turtle_agent/scripts/voice_input.py
Agent Internals
- Tool Registry
src/rosa/tools/__init__.py - Calculation Tools
src/rosa/tools/calculation.py - System Tools
src/rosa/tools/system.py
Other components
- User
- Language Model
- ROS System
- TurtleSim
Connections 20
- User → ROSA Agent: submits query
README.md - ROSA Agent → Language Model: reasons with
- ROSA Agent → Robot Prompts: uses prompts
src/rosa/rosa.py - ROSA Agent → Tool Registry: assembles tools
src/rosa/rosa.py - Tool Registry → ROS1 Tools: registers ROS1
src/rosa/tools/__init__.py - Tool Registry → ROS2 Tools: registers ROS2
src/rosa/tools/__init__.py - Tool Registry → Calculation Tools: registers tools
src/rosa/tools/__init__.py - Tool Registry → Log Tools: registers tools
src/rosa/tools/__init__.py - Tool Registry → System Tools: registers tools
src/rosa/tools/__init__.py - ROS1 Tools → ROS System: queries or controls
- ROS2 Tools → ROS System: queries or controls
- TurtleAgent → ROSA Agent: extends agent
src/turtle_agent/scripts/turtle_agent.py - TurtleAgent → Model Setup: gets model
src/turtle_agent/scripts/turtle_agent.py - Model Setup → Language Model: configures provider
- TurtleAgent → Demo Prompts: loads prompts
src/turtle_agent/scripts/turtle_agent.py - TurtleAgent → Turtle Controls: uses controls
src/turtle_agent/scripts/turtle_agent.py - TurtleAgent → Interactive Help: displays help
src/turtle_agent/scripts/turtle_agent.py - TurtleAgent → Voice Input: accepts transcription
src/turtle_agent/scripts/turtle_agent.py - User → TurtleAgent: interacts with demo
README.md - Turtle Controls → TurtleSim: controls simulation