#include <message_publisher.h>
Public Member Functions | |
void | initPublishers (ros::NodeHandle &ref_ros_node_handle, const ConfigStore &ref_config_store) |
MessagePublisher (void) | |
void | publish (SbgEComClass sbg_msg_class, SbgEComMsgId sbg_msg_id, const SbgBinaryLogData &ref_sbg_log) |
Private Member Functions | |
void | defineRosStandardPublishers (ros::NodeHandle &ref_ros_node_handle, bool odom_enable) |
std::string | getOutputTopicName (SbgEComMsgId sbg_message_id) const |
void | initPublisher (ros::NodeHandle &ref_ros_node_handle, SbgEComMsgId sbg_msg_id, SbgEComOutputMode output_conf, const std::string &ref_output_topic) |
void | processRosImuMessage (void) |
void | processRosOdoMessage (void) |
void | processRosVelMessage (void) |
void | publishEkfNavigationData (const SbgBinaryLogData &ref_sbg_log) |
void | publishFluidPressureData (const SbgBinaryLogData &ref_sbg_log) |
void | publishGpsPosData (const SbgBinaryLogData &ref_sbg_log) |
void | publishIMUData (const SbgBinaryLogData &ref_sbg_log) |
void | publishMagData (const SbgBinaryLogData &ref_sbg_log) |
void | publishUtcData (const SbgBinaryLogData &ref_sbg_log) |
Class to publish all SBG-ROS messages to the corresponding publishers.
Definition at line 44 of file message_publisher.h.
MessagePublisher::MessagePublisher | ( | void | ) |
Default constructor.
Class to publish all SBG-ROS messages to the corresponding publishers.
Definition at line 12 of file message_publisher.cpp.
|
private |
Define standard ROS publishers.
[in] | ref_ros_node_handle | Ros NodeHandle to advertise the publisher. |
[in] | odom_enable | If true, enable odometry messages. |
Definition at line 217 of file message_publisher.cpp.
|
private |
Get the corresponding topic name output for the SBG output mode.
[in] | sbg_message_id | SBG message ID. |
Definition at line 21 of file message_publisher.cpp.
|
private |
Initialize the publisher for the specified SBG Id, and the output configuration.
[in] | ref_ros_node_handle | Ros NodeHandle to advertise the publisher. |
[in] | sbg_msg_id | Id of the SBG message. |
[in] | output_conf | Output configuration. |
[in] | ref_output_topic | Output topic for the publisher. |
Definition at line 100 of file message_publisher.cpp.
void MessagePublisher::initPublishers | ( | ros::NodeHandle & | ref_ros_node_handle, |
const ConfigStore & | ref_config_store | ||
) |
Initialize the publishers for the output configuration.
[in] | ref_ros_node_handle | Ros NodeHandle to advertise the publisher. |
[in] | ref_config_store | Store configuration for the publishers. |
Definition at line 470 of file message_publisher.cpp.
|
private |
Process a ROS IMU standard message.
Definition at line 344 of file message_publisher.cpp.
|
private |
Process a ROS odometry standard message.
Definition at line 355 of file message_publisher.cpp.
|
private |
Process a ROS Velocity standard message.
Definition at line 329 of file message_publisher.cpp.
void MessagePublisher::publish | ( | SbgEComClass | sbg_msg_class, |
SbgEComMsgId | sbg_msg_id, | ||
const SbgBinaryLogData & | ref_sbg_log | ||
) |
Publish the received SbgLog if the corresponding publisher is defined.
[in] | sbg_msg_class | Class ID of the SBG message. |
[in] | sbg_msg_id | Id of the SBG message. |
[in] | ref_sbg_log | SBG binary log. |
Definition at line 500 of file message_publisher.cpp.
|
private |
Publish a received SBG EkfNav log.
[in] | ref_sbg_log | SBG log. |
Definition at line 416 of file message_publisher.cpp.
|
private |
Publish a received SBG Fluid pressure log.
[in] | ref_sbg_log | SBG log. |
Definition at line 401 of file message_publisher.cpp.
|
private |
Publish a received SBG GpsPos log.
[in] | ref_sbg_log | SBG log. |
Definition at line 450 of file message_publisher.cpp.
|
private |
Publish a received SBG IMU log.
[in] | ref_sbg_log | SBG log. |
Definition at line 312 of file message_publisher.cpp.
|
private |
Publish a received SBG Magnetic log.
[in] | ref_sbg_log | SBG log. |
Definition at line 386 of file message_publisher.cpp.
|
private |
Publish a received SBG UTC log.
[in] | ref_sbg_log | SBG log. |
Definition at line 431 of file message_publisher.cpp.
|
private |
Definition at line 78 of file message_publisher.h.
|
private |
Definition at line 87 of file message_publisher.h.
|
private |
Definition at line 70 of file message_publisher.h.
|
private |
Definition at line 77 of file message_publisher.h.
|
private |
Definition at line 86 of file message_publisher.h.
|
private |
Definition at line 85 of file message_publisher.h.
|
private |
Definition at line 82 of file message_publisher.h.
|
private |
Definition at line 83 of file message_publisher.h.
|
private |
Definition at line 79 of file message_publisher.h.
|
private |
Definition at line 74 of file message_publisher.h.
|
private |
Definition at line 73 of file message_publisher.h.
|
private |
Definition at line 72 of file message_publisher.h.
|
private |
Definition at line 71 of file message_publisher.h.
|
private |
Definition at line 68 of file message_publisher.h.
|
private |
Definition at line 51 of file message_publisher.h.
|
private |
Definition at line 53 of file message_publisher.h.
|
private |
Definition at line 52 of file message_publisher.h.
|
private |
Definition at line 62 of file message_publisher.h.
|
private |
Definition at line 63 of file message_publisher.h.
|
private |
Definition at line 64 of file message_publisher.h.
|
private |
Definition at line 65 of file message_publisher.h.
|
private |
Definition at line 66 of file message_publisher.h.
|
private |
Definition at line 59 of file message_publisher.h.
|
private |
Definition at line 58 of file message_publisher.h.
|
private |
Definition at line 60 of file message_publisher.h.
|
private |
Definition at line 57 of file message_publisher.h.
|
private |
Definition at line 50 of file message_publisher.h.
|
private |
Definition at line 67 of file message_publisher.h.
|
private |
Definition at line 55 of file message_publisher.h.
|
private |
Definition at line 56 of file message_publisher.h.
|
private |
Definition at line 61 of file message_publisher.h.
|
private |
Definition at line 54 of file message_publisher.h.
|
private |
Definition at line 48 of file message_publisher.h.
|
private |
Definition at line 49 of file message_publisher.h.
|
private |
Definition at line 76 of file message_publisher.h.
|
private |
Definition at line 81 of file message_publisher.h.
|
private |
Definition at line 80 of file message_publisher.h.