No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.

mh_amcl package from mh_amcl repo

mh_amcl

Package Summary

Tags No category tags.
Version 0.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/fmrico/mh_amcl.git
VCS Type git
VCS Version main
Last Updated 2022-09-06
Dev Status UNKNOWN
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Multi-Hypothesys AMCL

Additional Links

No additional links.

Maintainers

  • Francisco Martín

Authors

No additional authors.

main

Multi-Hypothesis AMCL (MH-AMCL)

MH-AMCL is a fully functional localization algorithm implementation with Nav2. The main feature is that it maintains several hypotheses about the robot’s position. The algorithm periodically generates new hypotheses on positions where the robot could be, based on the latest laser and map reading. This allows:

  • Total unknown the position of the robot.
  • Recover from erroneous estimates and hijacks.

Build

This package requires the Rolling distribution, as it is in sync with Nav2, whose main branch uses Rolling.

Just clone this repo in the workspace and build as usual:

colcon build --symlink-install

Run

We have included in this package launchers and other files that are usually in the nav2_bringup package in order to have a demo of its operation:

  • To run in the simulation with a Turtlebot 3: ros2 launch mh_amcl tb3_simulation_launch.py

  • To run in the simulation with a real robot (Tiago):

    • ros2 launch mh_amcl tiago_launch.py
    • If you don’t have the robot, you can launch a demo ros2 bag with real data below: ros2 bag play test/rosbag2_2022_09_01-11_42_10

Details

Suscribed Topics:

  • scan (sensor_msgs/msg/LaserScan): Laser readings.
  • map (nav_msgs/msg/OccupancyGrid): The environmen map.
  • initialpose (geometry_msgs/msg/PoseWithCovarianceStamped): Used for reset the robot’s position from Rviz2.

Published Topics:

  • amcl_pose (geometry_msgs::msg::PoseWithCovarianceStamped): The robot’s pose with the covariance associated from the best hypothesis.
  • particle_cloud (nav2_msgs::msg::ParticleCloud): The particles from the best hypothesis.
  • poses (visualization_msgs::msg::MarkerArray): All the particles from all the hypotheses, each one with a different color.

Parameters:

  • use_sim_time (bool, False): Use the robot’s clock or the one coming from the /clock topic.
  • max_particles (int, 200): The maximum number of particles for each hypothesis.
  • min_particles (int, 200): The minimum number of particles for each hypothesis.
  • particles_step (int, 30): Particles’ variation increases particles_step when the estimation is bad and decreases when it is good.
  • init_pos_x (double): The initial X position of the robot, if known.
  • init_pos_y (double): The initial Y position of the robot, if known.
  • init_pos_yaw (double): The initial Yaw position of the robot, if known.
  • init_error_x (double): The initial X uncertainty of the robot.
  • init_error_y (double): The initial Y uncertainty of the robot.
  • init_error_yaw (double): The initial Yaw uncertainty of the robot.
  • translation_noise (double, 10%): The error percentage coming from the translation component.
  • rotation_noise (double, 10%): The error percentage from the rotational component.
  • rotation_noise (double, 10%): The error percentage from the rotational component.
  • distance_perception_error (double, 0.01): The error in meters of the sensor when reading distances.
  • reseed_percentage_losers (double, 90%): The percentage of particles to be replaced when reseeding.
  • reseed_percentage_winners (double, 3%): The percentage of particles that generate new particles when reseeding.
  • multihypothesis (bool, true): Use multiples hypothesis, or only one - the created initially.
  • max_hypotheses (int, 5): Maximum number of concurrent hypotheses.
  • min_candidate_weight (float, 0.5): Minimum quality of a candidate to be considered for a new hypothesis.
  • min_candidate_distance (double, 1.0): Minimum distance to an existing hypothesis to be considered for a new hypothesis.
  • min_candidate_angle (double, PI/2): Minimum angle to an existing hypothesis to be considered for a new hypothesis.
  • low_q_hypo_thereshold (float, 0.25): Under this threshold, a hypothesis is considered low quality and should be removed if there is a better candidate.
  • very_low_q_hypo_thereshold (float, 0.10): A hypothesis is considered very low quality and should be removed under this threshold.
  • hypo_merge_distance (double, 0.3): Distance under consideration to merge two hypotesese (angle and distance shpuld meet).
  • hypo_merge_angle (double, 0.5): Angle to consider merging two hypotheses (angle and distance should meet).
  • good_hypo_thereshold double, 0.5): Threshold to consider a hypothesis to be selected as the newly selected hypothesis for the algorithm’s output.
  • min_hypo_diff_winner double, 0.3): An hypothesis should have a quality min_hypo_diff_winner better than the currently selected hypothesis to be the newly selected hypothesis. Low values could lead to continuing changes between the two hypotheses. High values could make it impossible to consider other hypotheses.

Citing

Coming soon! (we hope)

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mh_amcl at Robotics Stack Exchange

No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.