Skip to content

Commit

Permalink
Add log function to node
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanzemlin committed Apr 18, 2024
1 parent 1663797 commit 07b6529
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autonav_ws/src/scr/include/scr/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,16 @@ namespace SCR
/// @brief Returns the default current configuration of the node
/// @return The default configuration
virtual json get_default_config() = 0;

/// @brief Logs a message to the logging topic
/// @param data The message to log
void log(std::string data);

private:
void system_state_callback(const scr_msgs::msg::SystemState msg);
void device_state_callback(const scr_msgs::msg::DeviceState msg);
void config_updated_callback(const scr_msgs::msg::ConfigUpdated msg);
void set_system_total_state(SCR::SystemState state, SCR::SystemMode mode, bool mobility);
void log(std::string data);

protected:
/// @brief The current system mode
Expand Down

0 comments on commit 07b6529

Please sign in to comment.