src
sensors
battery.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020-2023 RaccoonLab.
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, version 3.
7
*
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* 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 <http://www.gnu.org/licenses/>.
15
*
16
* Author: Dmitry Ponomarev <ponomarevda96@gmail.com>
17
*/
18
19
#ifndef SRC_SENSORS_BATTERY_HPP
20
#define SRC_SENSORS_BATTERY_HPP
21
22
#include "
sensor_base.hpp
"
23
24
class
BatteryInfoSensor
:
public
BaseSensor
{
25
public
:
26
BatteryInfoSensor
(
ros::NodeHandle
* nh,
const
char
* topic,
double
period);
27
bool
publish
(
float
percentage);
28
};
29
30
#endif // SRC_SENSORS_BATTERY_HPP
BatteryInfoSensor::publish
bool publish(float percentage)
Definition:
battery.cpp:25
BatteryInfoSensor::BatteryInfoSensor
BatteryInfoSensor(ros::NodeHandle *nh, const char *topic, double period)
Definition:
battery.cpp:22
BaseSensor
Definition:
sensor_base.hpp:25
BatteryInfoSensor
Definition:
battery.hpp:24
ros::NodeHandle
sensor_base.hpp
inno_vtol_dynamics
Author(s): Roman Fedorenko, Dmitry Ponomarev, Ezra Tal, Winter Guerra
autogenerated on Mon Dec 9 2024 03:13:35