Public Member Functions | Private Member Functions | Private Attributes | List of all members
IceStatusSensor Class Reference

#include <ice.hpp>

Inheritance diagram for IceStatusSensor:
Inheritance graph
[legend]

Public Member Functions

 IceStatusSensor (ros::NodeHandle *nh, const char *topic, double period)
 
bool publish (double rpm)
 
void start_stall_emulation ()
 
void stop_stall_emulation ()
 
- Public Member Functions inherited from BaseSensor
 BaseSensor ()=delete
 
 BaseSensor (ros::NodeHandle *nh, double period)
 
void disable ()
 
void enable ()
 

Private Member Functions

void emulate_normal_mode (double rpm)
 
void emulate_stall_mode ()
 
void estimate_state (double rpm)
 

Private Attributes

double _rpm {0}
 
double _stallTsMs = 0
 
double _startTsSec = 0
 
uint8_t _state {0}
 
ros::Publisher _status_publisher
 

Additional Inherited Members

- Protected Attributes inherited from BaseSensor
bool _isEnabled {false}
 
double nextPubTimeSec_ = 0
 
ros::NodeHandlenode_handler_
 
std::normal_distribution< double > normalDistribution_ {std::normal_distribution<double>(0.0, 1.0)}
 
const double PERIOD
 
ros::Publisher publisher_
 
std::default_random_engine randomGenerator_
 

Detailed Description

Definition at line 24 of file ice.hpp.

Constructor & Destructor Documentation

◆ IceStatusSensor()

IceStatusSensor::IceStatusSensor ( ros::NodeHandle nh,
const char *  topic,
double  period 
)

Definition at line 30 of file ice.cpp.

Member Function Documentation

◆ emulate_normal_mode()

void IceStatusSensor::emulate_normal_mode ( double  rpm)
private

Definition at line 62 of file ice.cpp.

◆ emulate_stall_mode()

void IceStatusSensor::emulate_stall_mode ( )
private

Definition at line 75 of file ice.cpp.

◆ estimate_state()

void IceStatusSensor::estimate_state ( double  rpm)
private

Definition at line 54 of file ice.cpp.

◆ publish()

bool IceStatusSensor::publish ( double  rpm)

Definition at line 37 of file ice.cpp.

◆ start_stall_emulation()

void IceStatusSensor::start_stall_emulation ( )

Definition at line 93 of file ice.cpp.

◆ stop_stall_emulation()

void IceStatusSensor::stop_stall_emulation ( )

Definition at line 97 of file ice.cpp.

Member Data Documentation

◆ _rpm

double IceStatusSensor::_rpm {0}
private

Definition at line 37 of file ice.hpp.

◆ _stallTsMs

double IceStatusSensor::_stallTsMs = 0
private

Definition at line 39 of file ice.hpp.

◆ _startTsSec

double IceStatusSensor::_startTsSec = 0
private

Definition at line 40 of file ice.hpp.

◆ _state

uint8_t IceStatusSensor::_state {0}
private

Definition at line 38 of file ice.hpp.

◆ _status_publisher

ros::Publisher IceStatusSensor::_status_publisher
private

Definition at line 35 of file ice.hpp.


The documentation for this class was generated from the following files:


inno_vtol_dynamics
Author(s): Roman Fedorenko, Dmitry Ponomarev, Ezra Tal, Winter Guerra
autogenerated on Sat Jul 1 2023 02:13:44