How omar-basheer/farmbots works
Project Breakdown and Main Components
• Server Component:
– Represented by files like bots/server.py and farmbots/server_script.py.
– The server is responsible for task assignment, managing farm state, and communicating with clients.
• Client/Robotic Units:
– Represented by bots/client.py and farmbots/client_script.py.
– They implement open-loop control, follow movement patterns, and execute tasks as assigned.
• Communication Layer:
– Modules like bots/communication.py and farmbots/comms.py are crucial for client-server messaging.
– Highlight that Bluetooth is used for connectivity between the central server and the robots.
• Movement, Planning, and Farm-Specific Helpers:
– Files such as bots/movement.py, bots/planning.py, farmbots/movement.py, farmbots/planning.py, and farmbots/localization.py indicate modular handling of movement, navigational planning, and localization.
– There is also a farm module (bots/farm.py) and helper scripts (farmbots/farm_helpers.py) that capture the specifics of the farm layout and fruit placement.
• Control and Coordination:
– farmbots/control.py likely contains the logic to coordinate various aspects of robot behavior like starting, stopping, and task execution.
Relationships and Data Flow
• Flow from planning and movement modules contained in each Client as a process that executes the commands received from the Server.
Architectural Patterns and Design Principles
• The architecture follows a modular design separating concerns for navigation, planning, communication, and control.
• It uses a client-server communication model with dynamic task assignment indicating a distributed system.
• That the system design accounts for scalability: multiple robotic clients can be added, and the server adapts its task assignment based on real-time factors (e.g., distance, fruit locations).