Public Member Functions | Private Attributes | List of all members
rosflight::ROSTimer Class Reference

#include <ros_timer.h>

Inheritance diagram for rosflight::ROSTimer:
Inheritance graph
[legend]

Public Member Functions

void callback_ros_ (const ros::TimerEvent &event) const
 
 ROSTimer (std::chrono::nanoseconds period, std::function< void()> callback, const bool oneshot, const bool autostart)
 
void start ()
 
void stop ()
 

Private Attributes

std::function< void()> callback_
 
ros::Timer ros_timer_
 

Detailed Description

Definition at line 50 of file ros_timer.h.

Constructor & Destructor Documentation

rosflight::ROSTimer::ROSTimer ( std::chrono::nanoseconds  period,
std::function< void()>  callback,
const bool  oneshot,
const bool  autostart 
)
inline

Definition at line 53 of file ros_timer.h.

Member Function Documentation

void rosflight::ROSTimer::callback_ros_ ( const ros::TimerEvent event) const
inline

Definition at line 67 of file ros_timer.h.

void rosflight::ROSTimer::start ( )
inlinevirtual

Implements mavrosflight::TimerInterface.

Definition at line 63 of file ros_timer.h.

void rosflight::ROSTimer::stop ( )
inlinevirtual

Implements mavrosflight::TimerInterface.

Definition at line 65 of file ros_timer.h.

Member Data Documentation

std::function<void()> rosflight::ROSTimer::callback_
private

Definition at line 71 of file ros_timer.h.

ros::Timer rosflight::ROSTimer::ros_timer_
private

Definition at line 67 of file ros_timer.h.


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


rosflight
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:09:29