Turtlebot 3

In 2022 we participated in the Agricultural Robot Competition organized by the Rural Development Administration. The goal of this event is to foster innovation, encourage the practical application of cutting-edge technologies, and identify new talent in the field. By supporting these initiatives, the administration seeks to accelerate the integration of robotics into agriculture, ultimately enhancing productivity and sustainability in the sector.

Team

About the Competition


The goal of the competition was to detect, classify, and count fruits attached to the tree model while driving from the starting point to the destination point in the orchard stadium without crashing against the tree models or the obstacles (Robot mission time limit is less than 5 minutes).

Robot Overview

Our robot was based on a turtlebot3 customized, for the navigation software we used ROS noetic meanwhile thar for the detection part we used YOLO with specially trained weights for the competition.

The hardware modification included

Initial design.

Final design.

Simulation

To decrease the programming and debugging time an exact copy of the competition scenario was created on Gazebo, including apple tree models, our robot and obstacles.

Apple trees.

Obstacles.

Whole Scenario.

Mapping

Navigation

For the navigation part, as our robot have odometry from the encoder, an IMU and a Lidar sensor AMCL was used for localization. Meanwhile, TEB and DWA were tested as the local planner in the simulation and in the real scenario, being the first one chose for our robot.

The Dynamic Window Approach (DWA) offers real-time performance and effective obstacle avoidance for differential drive robots due to its simple implementation, but it struggles with long-term path planning, suboptimal paths, and parameter sensitivity, particularly in dynamic environments. In contrast, the Timed Elastic Band (TEB) algorithm excels in producing optimal, smooth paths and handling dynamic obstacles by optimizing trajectories in real-time, making it flexible for various robot types. However, TEB is more computationally intensive, complex to implement, and requires careful parameter tuning, which can challenge real-time performance in resource-constrained systems.

DWA problem in narrow spaces.

TEB.

Both algorithms were extensively tuned. Although DWA is easier to set up, its performance can match TEB, as shown in the simulation above and the real test below. Thus, TEB was chosen as the main local planner for our robot meanwhile A* was used as the global planner

DWA real test.

TEB real test.

Mapping

For creating the map Karto SLAM was used because it combines LIDAR and IMU to enhance accuracy and adaptability to different scenarios. Besides the advanced optimization algorithms used by Karto SLAM ensure precise and reliable map generation.

KARTO SLAM.

Map created.

Computer Vision

To detect apples on a tree using YOLOX with a custom dataset, images of apples were collected and annotated under various conditions, ensuring diverse lighting, angles, and occlusions. The dataset was prepared in the YOLO format with labeled bounding boxes. The YOLOX model was then trained using this dataset by setting up the training environment with the necessary dependencies, configuring the model parameters, and running the training script.  The advantages of using YOLOX include its state-of-the-art performance in object detection, efficiency in handling large datasets, real-time processing capabilities, and robustness in detecting objects in complex environments, making it particularly well-suited for agricultural applications like apple detection.

Computer vision process.

YOLOX

Competition

Obstacle avoidance test.

Competition.

Results

After a hard day of competition, we were thrilled to secure second place and a prize of 3,000,000 Won. The day was filled with intense challenges and fierce competitors, making our achievement even more rewarding. Every team member gave their best effort, and our dedication and teamwork truly paid off. The experience was not only a test of our skills and endurance but also a demonstration of our ability to work together under pressure. The 3,000,000 Won prize is a testament to our hard work and commitment, and it serves as a motivation for us to strive for even greater success in future competitions.

Award Ceremony.

Returning Home.

Files