How varadha24/butler_robot works
Butler Robot is a ROS-based restaurant delivery robot. Order and cancellation messages enter the main node, which delegates delivery and cancellation behavior to their handlers; those handlers direct robot movement, while order handling waits for confirmation state before continuing. The README also describes multiple-order handling, but the sampled code shows no separate queue. The graph reflects shown calls and parameter access; confirmation handling is instantiated by the node, but no invocation path is shown.
Main entry points: robot_butler_node.py Butler Node · robot_movement.py Robot Movement · order_handler.py Order Handler · confirmation_handler.py Confirmation Handler
Components 10
ROS Control
- Butler Node
src/robot_butler_node.py
Task Handling
- Order Handler
src/order_handler.py - Confirmation Handler
src/confirmation_handler.py - Cancellation Handler
src/cancellation_handler.py
Robot Navigation
- Robot Movement
src/robot_movement.py
Shared State
- ROS Parameter Server
- Logging Utilities
src/utils.py
Other components
- Order Submitter
- Cancellation Issuer
- ROS Navigation
Connections 12
- Order Submitter → Butler Node: publishes orders
src/robot_butler_node.py - Cancellation Issuer → Butler Node: publishes cancellations
src/robot_butler_node.py - Butler Node → Order Handler: delegates orders
src/robot_butler_node.py - Butler Node → Cancellation Handler: delegates cancellations
src/robot_butler_node.py - Butler Node → Confirmation Handler: instantiates
src/robot_butler_node.py - Order Handler → Robot Movement: directs movement
src/order_handler.py - Order Handler → ROS Parameter Server: reads confirmations
src/order_handler.py - Cancellation Handler → Robot Movement: directs movement
src/cancellation_handler.py - Confirmation Handler → ROS Parameter Server: sets confirmation
src/confirmation_handler.py - Robot Movement → ROS Navigation: sends goals
src/robot_movement.py - Robot Movement → Logging Utilities: logs via
src/robot_movement.py - Butler Node → Logging Utilities: logs via
src/robot_butler_node.py