Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
| Description | |
| Checkout URI | https://github.com/cbgl/cbgl.git |
| VCS Type | git |
| VCS Version | lyrical-devel |
| Last Updated | 2026-11-27 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| cbgl_global_localisation | 1.0.1 |
README
CBGL: Fast Monte Carlo Passive Global Localisation of 2D LIDAR Sensor
cbgl localises a 2D lidar sensor in a known 2D occupancy grid from a single scan, in one shot. It works under global uncertainty in both position and orientation. It needs no motion and no initial guess. Give it a map and one scan, call it once, and it tells you where the sensor was.
This is the ROS 2 version. The ROS 1 Kinetic package is on the kinetic-devel branch. Upgrading from the ROS 1 version lists every name and every behaviour that changed.
https://github.com/li9i/cbgl/assets/1658819/5794cd21-651d-4924-b453-25c46b9e42a9
A panoramic 2D LIDAR sensor mounted on a turtlebot 2 is spawned into an environment at a pose whose immediate surroundings are repeated in (almost) the same geometry and proportions at locations other than the sensor’s spawning ground. The user calls the global localisation service once before moving the robot at a second challenging pose, at which she calls it for a second time. Both times cbgl is successful in estimating the sensor’s pose. Sensor characteristics: 360 rays; noise distributed normally about zero with a standard deviation of 0.05 m.
Table of Contents
- Requirements
- Installation
- Run
- Input and output
- Parameters
- Troubleshooting
- Performance
- Licensing
- Citation
- Further documentation
Requirements
- ROS 2 Lyrical
- A compiler with C++23
-
fsm_localisation, which provides the scan matcher that refines each survivor, the ray casting that reads the map, and the occupancy grid type both use.cbglcarries no copy of any of them. - A 2D lidar. CBGL is built for lidars with a field of view of 360 degrees, and lidars with a narrower field of view are supported too. The scan must state what it covers through
angle_minandangle_increment, and it must be centred on the sensor’s heading. A scan that is not centred is refused at the point of use. Sensors that do not see all the way round gives the detail.
Installation
The ROS package is named cbgl_global_localisation. The repository, the node and its executable cbgl_interface_node keep the name cbgl.
With Docker
The image carries both this package and fsm_localisation, so the build context spans the directory that holds both repositories, not this one alone.
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd cbgl/docker
docker compose build
By default the image launches the node, which puts it in stand-by. For a shell instead, run this:
docker compose run --rm cbgl bash
From source
fsm_localisation must be in the same workspace. Everything else is declared in the manifests, and rosdep fetches it.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone git@github.com:cbgl/cbgl.git
git clone git@github.com:fourier-scan-matcher/fsm-localisation.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-up-to cbgl_global_localisation
Building describes two build options for comparing builds, and how to link the libraries of this package from your own package.
Run
Launch
ros2 launch cbgl_global_localisation cbgl.launch.xml
The launch file takes three arguments. namespace defaults to /, node_name defaults to cbgl, and params defaults to the shipped config/params.yaml. Two nodes cannot share a name. To run a second node, launch this same file again with a name and a parameter file of its own.
Launching puts the node in stand-by. It holds the newest map and the newest scan, and it computes nothing until its service is called.
Call
ros2 service call /cbgl/global_localisation std_srvs/srv/Trigger
The call returns when the localisation is done, which can be seconds later. The response says whether a pose was produced. Its message says how long the run took and what it searched, or why the run was refused. A second call that arrives while a run is under way is refused, not queued.
The service is node relative, so its name follows node_name.
Taking the map from a file instead of a topic
Set map_topic to empty and point map_file at a map description file on disk. The node then subscribes to no map topic.
File truncated at 100 lines see the full file