sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
std_std_msgs_conversions.hpp
1#pragma once
2/*
3# Copyright (c) 2016-2020 Murilo Marques Marinho
4#
5# This file is part of sas_conversions.
6#
7# sas_conversions is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Lesser General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# sas_conversions is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Lesser General Public License for more details.
16#
17# You should have received a copy of the GNU Lesser General Public License
18# along with sas_conversions. If not, see <https://www.gnu.org/licenses/>.
19#
20# ################################################################
21#
22# Author: Murilo M. Marinho, email: murilomarinho@ieee.org
23#
24# ################################################################*/
25
26#include "rclcpp/rclcpp.hpp"
27#include "sas_msgs/msg/float64.hpp"
28#include "sas_msgs/msg/bool.hpp"
29
30namespace sas
31{
35
41double std_msgs_float64_to_double(const sas_msgs::msg::Float64& f64);
42
49sas_msgs::msg::Float64 double_to_std_msgs_float64(const double& d);
50
54
60bool std_msgs_bool_to_bool(const sas_msgs::msg::Bool& b);
61
68sas_msgs::msg::Bool bool_to_std_msgs_bool(const bool& b);
69}