C++ YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
ros_logs.hpp
Go to the documentation of this file.
1// Copyright (C) 2024 Miguel Ángel González Santamarta
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation, either version 3 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16#ifndef YASMIN_ROS__LOGS_HPP
17#define YASMIN_ROS__LOGS_HPP
18
19#include "rclcpp/rclcpp.hpp"
20
21namespace yasmin_ros {
22
24extern rclcpp::Node *logger_node;
25
39void set_ros_loggers(rclcpp::Node::SharedPtr node = nullptr);
40
41} // namespace yasmin_ros
42
43#endif // YASMIN_ROS__LOGS_HPP
Definition action_state.hpp:35
rclcpp::Node * logger_node
Node used in the YASMIN ROS 2 logs.
Definition ros_logs.cpp:27
void set_ros_loggers(rclcpp::Node::SharedPtr node=nullptr)
Sets the logging functions for ROS, linking ROS 2 log levels to YASMIN loggers.
Definition ros_logs.cpp:62