src
sensors
esc_status.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_ESC_STATUS_HPP
20
#define SRC_SENSORS_ESC_STATUS_HPP
21
22
#include "
sensor_base.hpp
"
23
24
class
EscStatusSensor
:
public
BaseSensor
{
25
public
:
26
EscStatusSensor
(
ros::NodeHandle
* nh,
const
char
* topic,
double
period);
27
bool
publish
(
const
std::vector<double>& rpm);
28
private
:
29
uint8_t
nextEscIdx_
= 0;
30
};
31
32
#endif // SRC_SENSORS_ESC_STATUS_HPP
EscStatusSensor::EscStatusSensor
EscStatusSensor(ros::NodeHandle *nh, const char *topic, double period)
Definition:
esc_status.cpp:23
EscStatusSensor
Definition:
esc_status.hpp:24
BaseSensor
Definition:
sensor_base.hpp:25
EscStatusSensor::nextEscIdx_
uint8_t nextEscIdx_
Definition:
esc_status.hpp:29
EscStatusSensor::publish
bool publish(const std::vector< double > &rpm)
Definition:
esc_status.cpp:26
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