Skip to content
All work

Robotics, Personal, 2026

Talhão SLAM

Talhão SLAM is an autonomous ground robot for forest inventory, built on ROS 2 Jazzy and simulated in Gazebo Harmonic. It localises itself with LiDAR odometry from KISS-ICP fused with the IMU, builds a 3D OctoMap, picks its next goal by frontier exploration or by an inventory planner, and drives there with Nav2. Localisation and trunk detection are also tested on real forest LiDAR from the FoMo dataset.

Private repository

The problem

A forest inventory is a list of trees with the diameter of each stem, and today a crew walks the plot with a tape to make it. A robot could do the walk, but under the canopy GNSS jumps by metres, wheels slip on roots and leaves, and the rows of a plantation all look alike. The robot has to know where it is, build a map, decide where to go next and measure every trunk it passes, with nobody steering.

What I did

I split the problem in two halves. What only listens to the sensors runs on a real recording, three minutes of a wheeled robot in a boreal forest from the FoMo dataset. There I estimate the trajectory with KISS-ICP, fuse it with a GNSS that jumps under the canopy through a Kalman filter that learns to distrust it, and detect trunks and their diameters. What has to act runs in Gazebo, in a planted plot of up to 199 trees in rows. The robot builds an OctoMap, plans with Nav2, and chooses between frontier exploration and an inventory planner that drives to the viewpoint measuring the most trees per metre. Then I break perception on purpose, with blind scans, phantom obstacles and range noise, and follow the damage down to the tree list. Everything simulated runs headless in Docker, and every run is recorded for the Rerun viewer.

What came out of it

On real data, LiDAR odometry stays within 14 cm over 108 m and 180 s, against 6 m for wheel odometry, and the detector confirms 46 trees in a map of 24.4 million points. In the simulated plantation, across 30 runs, the robot sees 95% of the plot in about 14 minutes and measures half of the trees to within 0.3 m, with a diameter error of 0.6 cm. The inventory planner is a gamble. In 2 of 6 runs it measured 87% and 89% of the trees and stopped by itself, sooner than any frontier run, and in the other 4 the time limit cut it short. Localisation error is what separates the two outcomes. The most dangerous fault looks healthy, since with 15 cm of range noise the run ends early, never nears an obstacle and brings back zero trees.

In pictures

A full run, played back 8.5 times faster. Left, the true plot hidden from the robot. Centre, the LiDAR cloud the robot accumulated, with frontiers, path and trees. Right, a close-up of the measured stem diameters.
Dense LiDAR map of a boreal forest coloured by height, with the trajectory and trunk diameters
Real data from the FoMo dataset (Norlab, Université Laval, CC BY 4.0). 24.4 million points placed by LiDAR odometry alone over 108 m, with the trunks and diameters found by the detector of this project.
Rerun viewer with the Gazebo front camera, the top view of the map and the path length
A run recorded for the Rerun viewer, with the front camera rendered by Gazebo, the top view of the accumulated cloud and the path driven so far.
Curves of trunks measured per metre driven and maps of the paths of the two strategies
Frontier exploration in blue against the inventory planner in orange. The planner either measures almost every trunk or loses its way, and frontiers land in the middle every time. Green dots are trunks measured, red ones were missed.
Frontier clusters around the robot and the path of a full exploration of a small plot
One decision cycle of the frontier explorer, with 23 candidate goals, and a full exploration of a small plot with 68 goals and 88 m driven.