26#include <rclcpp/rclcpp.hpp>
29#include <sas_msgs/msg/log_datum.hpp>
31#include <eigen3/Eigen/Dense>
52 rclcpp::Publisher<sas_msgs::msg::LogDatum>::SharedPtr publisher_log_;
60 DataloggerClient(
const rclcpp::Node::SharedPtr& node,
const size_t &queue_size=100);
76 void log(
const std::string& name,
const MatrixXd& value);
84 void log(
const std::string& name,
const VectorXd& value);
92 void log(
const std::string& name,
const std::vector<double>& value);
100 void log(
const std::string& name,
const double& value);
108 void log(
const std::string& name,
const std::string& value);
115 void save(
const std::string &filename);
Lightweight client for publishing log data.
Definition sas_datalogger_client.hpp:47
void log(const std::string &name, const VectorXd &value)
Log a vector value under the given name.
void log(const std::string &name, const MatrixXd &value)
Log a matrix value under the given name.
Definition sas_datalogger_client.cpp:41
void save(const std::string &filename)
Request saving the logged data to the specified filename.
bool is_enabled() const
Check if the datalogger is enabled (publisher is valid).
Definition sas_datalogger_client.cpp:36
Definition sas_object.hpp:39
Base object class for identification and license utilities.