|
EasyNav Plugins
|
Classes | |
| class | AMCLLocalizer |
| A localization method implementing a simplified AMCL (Adaptive Monte Carlo Localization) approach. More... | |
| class | AStarPlanner |
| A planner implementing the A* algorithm on a ::navmap::NavMap grid. More... | |
| class | InflationFilter |
| struct | LoadParameters |
| class | NavMapFilter |
| class | NavMapMapsManager |
| A plugin-based map manager using the SimpleMap data structure. More... | |
| class | ObstacleFilter |
| struct | Particle |
| Structure representing a single particle in the AMCL algorithm. More... | |
| class | PerceptionModel |
| struct | SaveParameters |
| struct | ScoreAgg |
| struct | SensorBundle |
Typedefs | |
| using | ProgressCallback = std::function<void(float)> |
Enumerations | |
| enum | LOAD_MAP_STATUS { LOAD_MAP_SUCCESS , MAP_DOES_NOT_EXIST , INVALID_MAP_METADATA , INVALID_MAP_DATA } |
| enum class | MapMode { Trinary , Scale , Raw } |
Functions | |
| void | checkSaveParameters (SaveParameters &save_parameters) |
| Checks map saving parameters for consistency. | |
| tf2::Matrix3x3 | computeCovariance (const std::vector< Particle > &particles, std::size_t start, std::size_t count, const tf2::Vector3 &mean) |
| tf2::Vector3 | computeMean (const std::vector< Particle > &particles, std::size_t start, std::size_t count) |
| double | computeYawVariance (const std::vector< Particle > &particles, std::size_t start, std::size_t count) |
| std::string | expand_user_home_dir_if_needed (std::string yaml_filename, std::string home_dir) |
| Expand ~/ to home user dir. | |
| double | extractYaw (const tf2::Transform &T) |
| std::string | get_home_dir () |
| std::optional< tf2::Quaternion > | get_latest_imu_quat (const NavState &nav_state) |
| std::shared_ptr< Bonxai::ProbabilisticMap > | inflate_map (const std::shared_ptr< Bonxai::ProbabilisticMap > &src, double sigma, double p_min, ProgressCallback progress=nullptr) |
| void | loadMapFromFile (const LoadParameters &load_parameters, nav_msgs::msg::OccupancyGrid &map) |
| Load the image from map file and generate an OccupancyGrid. | |
| LOAD_MAP_STATUS | loadMapFromYaml (const std::string &yaml_file, nav_msgs::msg::OccupancyGrid &map) |
| Load the map YAML, image from map file and generate an OccupancyGrid. | |
| LoadParameters | loadMapYaml (const std::string &yaml_filename) |
| Load and parse the given YAML file. | |
| MapMode | map_mode_from_string (std::string map_mode_name) |
| Convert the name of a map mode to a MapMode enum. | |
| const char * | map_mode_to_string (MapMode map_mode) |
| Convert a MapMode enum to the name of the map mode. | |
| geometry_msgs::msg::Quaternion | orientationAroundZAxis (double angle) |
| Get a geometry_msgs Quaternion from a yaw angle. | |
| bool | saveMapToFile (const nav_msgs::msg::OccupancyGrid &map, const SaveParameters &save_parameters) |
| Write OccupancyGrid map to file. | |
| void | tryWriteMapToFile (const nav_msgs::msg::OccupancyGrid &map, const SaveParameters &save_parameters) |
| Tries to write map data into a file. | |
| template<typename T> | |
| T | yaml_get_value (const YAML::Node &node, const std::string &key) |
| Get the given subnode value. | |
| using ProgressCallback = std::function<void(float)> |
| enum LOAD_MAP_STATUS |
|
strong |
| void checkSaveParameters | ( | SaveParameters & | save_parameters | ) |
Checks map saving parameters for consistency.
| save_parameters | Map saving parameters. NOTE: save_parameters could be updated during function execution. |
| std::exception | in case of inconsistent parameters |
| tf2::Matrix3x3 computeCovariance | ( | const std::vector< Particle > & | particles, |
| std::size_t | start, | ||
| std::size_t | count, | ||
| const tf2::Vector3 & | mean ) |
| tf2::Vector3 computeMean | ( | const std::vector< Particle > & | particles, |
| std::size_t | start, | ||
| std::size_t | count ) |
| double computeYawVariance | ( | const std::vector< Particle > & | particles, |
| std::size_t | start, | ||
| std::size_t | count ) |
| std::string expand_user_home_dir_if_needed | ( | std::string | yaml_filename, |
| std::string | home_dir ) |
Expand ~/ to home user dir.
| yaml_filename | Name of input YAML file. |
| home_dir | Expanded ~/home dir or empty string if HOME not set |
| double extractYaw | ( | const tf2::Transform & | T | ) |
| std::string get_home_dir | ( | ) |
| std::optional< tf2::Quaternion > get_latest_imu_quat | ( | const NavState & | nav_state | ) |
| std::shared_ptr< Bonxai::ProbabilisticMap > inflate_map | ( | const std::shared_ptr< Bonxai::ProbabilisticMap > & | src, |
| double | sigma, | ||
| double | p_min, | ||
| ProgressCallback | progress = nullptr ) |
| void loadMapFromFile | ( | const LoadParameters & | load_parameters, |
| nav_msgs::msg::OccupancyGrid & | map ) |
Load the image from map file and generate an OccupancyGrid.
| load_parameters | Parameters of loading map |
| map | Output loaded map |
| std::exception |
| LOAD_MAP_STATUS loadMapFromYaml | ( | const std::string & | yaml_file, |
| nav_msgs::msg::OccupancyGrid & | map ) |
Load the map YAML, image from map file and generate an OccupancyGrid.
| yaml_file | Name of input YAML file |
| map | Output loaded map |
| LoadParameters loadMapYaml | ( | const std::string & | yaml_filename | ) |
Load and parse the given YAML file.
| yaml_filename | Name of the map file passed though parameter |
| YAML::Exception |
| MapMode map_mode_from_string | ( | std::string | map_mode_name | ) |
Convert the name of a map mode to a MapMode enum.
| map_mode_name | Name of the map mode |
| std::invalid_argument | if the name does not name a map mode |
| const char * map_mode_to_string | ( | MapMode | map_mode | ) |
Convert a MapMode enum to the name of the map mode.
| map_mode | Mode for the map |
| std::invalid_argument | if the given value is not a defined map mode |
| geometry_msgs::msg::Quaternion orientationAroundZAxis | ( | double | angle | ) |
Get a geometry_msgs Quaternion from a yaw angle.
| angle | Yaw angle to generate a quaternion from |
| bool saveMapToFile | ( | const nav_msgs::msg::OccupancyGrid & | map, |
| const SaveParameters & | save_parameters ) |
Write OccupancyGrid map to file.
| map | OccupancyGrid map data |
| save_parameters | Map saving parameters. |
| void tryWriteMapToFile | ( | const nav_msgs::msg::OccupancyGrid & | map, |
| const SaveParameters & | save_parameters ) |
Tries to write map data into a file.
| map | Occupancy grid data |
| save_parameters | Map saving parameters |
| std::exception | in case of problem |
| T yaml_get_value | ( | const YAML::Node & | node, |
| const std::string & | key ) |
Get the given subnode value.
The only reason this function exists is to wrap the exceptions in slightly nicer error messages, including the name of the failed key
| YAML::Exception |