EasyNav Costmap Stack
|
#include "easynav_costmap_maps_manager/map_io.hpp"
#include <libgen.h>
#include <Eigen/Dense>
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <stdexcept>
#include <cstdlib>
#include "Magick++.h"
#include "yaml-cpp/yaml.h"
#include "tf2/LinearMath/Matrix3x3.hpp"
#include "tf2/LinearMath/Quaternion.hpp"
#include "easynav_costmap_common/occ_grid_values.hpp"
#include "easynav_costmap_common/geometry_utils.hpp"
#include "rclcpp/rclcpp.hpp"
Namespaces | |
namespace | easynav |
Provides a mapping for often used cost values. | |
Functions | |
void | checkSaveParameters (SaveParameters &save_parameters) |
Checks map saving parameters for consistency. | |
std::string | expand_user_home_dir_if_needed (std::string yaml_filename, std::string home_dir) |
Expand ~/ to home user dir. | |
std::string | get_home_dir () |
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. | |
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. | |