Easy Navigation
Loading...
Searching...
No Matches
ConfigurationFingerprint.hpp File Reference

Fingerprint (dump and SHA-256) of the EasyNav configuration. More...

#include <map>
#include <string>
#include "rclcpp_lifecycle/lifecycle_node.hpp"
Include dependency graph for ConfigurationFingerprint.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  easynav
namespace  easynav::safety

Typedefs

using Nodes = std::map<std::string, rclcpp_lifecycle::LifecycleNode::SharedPtr>
 EasyNav nodes by name.

Functions

std::string configuration_dump (const Nodes &nodes)
 Every parameter of nodes, one "node/parameter=value" per line, sorted.
std::string dump_file_name (const std::string &ns, const std::string &hash)
 "easynav_configuration_[<ns>_]<hash>.txt", for the EasyNav in namespace ns.
std::string loaded_plugins (const Nodes &nodes)
 The loaded plugins: every "<alias>.plugin" listed in a "*_types" parameter, one "\n node: alias [class]" each.
std::string log_directory ()
 ROS's log directory ($ROS_LOG_DIR, else $ROS_HOME/log, else ~/.ros/log), or "".
std::string save_dump (const std::string &dump, const std::string &path)
 Writes dump to path, unless it already exists.
std::string sha256_hex (const std::string &data)
 SHA-256 of data, in hex.

Detailed Description

Fingerprint (dump and SHA-256) of the EasyNav configuration.