Public Member Functions | Private Member Functions | Private Attributes | List of all members
realsense2_camera::SyncedImuPublisher Class Reference

#include <base_realsense_node.h>

Public Member Functions

void Enable (bool is_enabled)
uint32_t getNumSubscribers ()
void Pause ()
void Publish (sensor_msgs::Imu msg)
void Resume ()
 SyncedImuPublisher ()
 SyncedImuPublisher (ros::Publisher imu_publisher, std::size_t waiting_list_size=1000)
 ~SyncedImuPublisher ()

Private Member Functions

void PublishPendingMessages ()

Private Attributes

bool _is_enabled
std::mutex _mutex
bool _pause_mode
std::queue< sensor_msgs::Imu_pending_messages
ros::Publisher _publisher
std::size_t _waiting_list_size

Detailed Description

Definition at line 94 of file base_realsense_node.h.

Constructor & Destructor Documentation

realsense2_camera::SyncedImuPublisher::SyncedImuPublisher ( )

Definition at line 97 of file base_realsense_node.h.

SyncedImuPublisher::SyncedImuPublisher ( ros::Publisher  imu_publisher,
std::size_t  waiting_list_size = 1000 

Definition at line 17 of file base_realsense_node.cpp.

SyncedImuPublisher::~SyncedImuPublisher ( )

Definition at line 22 of file base_realsense_node.cpp.

Member Function Documentation

void realsense2_camera::SyncedImuPublisher::Enable ( bool  is_enabled)

Definition at line 104 of file base_realsense_node.h.

uint32_t realsense2_camera::SyncedImuPublisher::getNumSubscribers ( )

Definition at line 103 of file base_realsense_node.h.

void SyncedImuPublisher::Pause ( )

Definition at line 46 of file base_realsense_node.cpp.

void SyncedImuPublisher::Publish ( sensor_msgs::Imu  msg)

Definition at line 27 of file base_realsense_node.cpp.

void SyncedImuPublisher::PublishPendingMessages ( )

Definition at line 60 of file base_realsense_node.cpp.

void SyncedImuPublisher::Resume ( )

Definition at line 53 of file base_realsense_node.cpp.

Member Data Documentation

bool realsense2_camera::SyncedImuPublisher::_is_enabled

Definition at line 115 of file base_realsense_node.h.

std::mutex realsense2_camera::SyncedImuPublisher::_mutex

Definition at line 110 of file base_realsense_node.h.

bool realsense2_camera::SyncedImuPublisher::_pause_mode

Definition at line 112 of file base_realsense_node.h.

std::queue<sensor_msgs::Imu> realsense2_camera::SyncedImuPublisher::_pending_messages

Definition at line 113 of file base_realsense_node.h.

ros::Publisher realsense2_camera::SyncedImuPublisher::_publisher

Definition at line 111 of file base_realsense_node.h.

std::size_t realsense2_camera::SyncedImuPublisher::_waiting_list_size

Definition at line 114 of file base_realsense_node.h.

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

Author(s): Sergey Dorodnicov , Doron Hirshberg
autogenerated on Fri Feb 19 2021 03:32:17