#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 |
Definition at line 70 of file base_realsense_node.h.
Definition at line 73 of file base_realsense_node.h.
SyncedImuPublisher::SyncedImuPublisher | ( | ros::Publisher | imu_publisher, |
std::size_t | waiting_list_size = 1000 |
||
) |
Definition at line 18 of file base_realsense_node.cpp.
Definition at line 23 of file base_realsense_node.cpp.
void realsense2_camera::SyncedImuPublisher::Enable | ( | bool | is_enabled | ) | [inline] |
Definition at line 80 of file base_realsense_node.h.
uint32_t realsense2_camera::SyncedImuPublisher::getNumSubscribers | ( | ) | [inline] |
Definition at line 79 of file base_realsense_node.h.
void SyncedImuPublisher::Pause | ( | ) |
Definition at line 47 of file base_realsense_node.cpp.
void SyncedImuPublisher::Publish | ( | sensor_msgs::Imu | msg | ) |
Definition at line 28 of file base_realsense_node.cpp.
void SyncedImuPublisher::PublishPendingMessages | ( | ) | [private] |
Definition at line 61 of file base_realsense_node.cpp.
void SyncedImuPublisher::Resume | ( | ) |
Definition at line 54 of file base_realsense_node.cpp.
bool realsense2_camera::SyncedImuPublisher::_is_enabled [private] |
Definition at line 91 of file base_realsense_node.h.
std::mutex realsense2_camera::SyncedImuPublisher::_mutex [private] |
Definition at line 86 of file base_realsense_node.h.
bool realsense2_camera::SyncedImuPublisher::_pause_mode [private] |
Definition at line 88 of file base_realsense_node.h.
std::queue<sensor_msgs::Imu> realsense2_camera::SyncedImuPublisher::_pending_messages [private] |
Definition at line 89 of file base_realsense_node.h.
Definition at line 87 of file base_realsense_node.h.
std::size_t realsense2_camera::SyncedImuPublisher::_waiting_list_size [private] |
Definition at line 90 of file base_realsense_node.h.