ros_publisher.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <ixblue_ins_msgs/Ins.h>
6 
7 #include <ros/node_handle.h>
8 #include <ros/publisher.h>
9 #include <sensor_msgs/Imu.h>
10 #include <sensor_msgs/NavSatFix.h>
11 #include <sensor_msgs/TimeReference.h>
12 
13 #include "diagnostics_publisher.h"
14 
16 {
17 public:
18  ROSPublisher();
20  const ixblue_stdbin_decoder::Data::NavHeader& headerData);
21 
22  // Standard ros msgs
23  static sensor_msgs::ImuPtr
26  static sensor_msgs::NavSatFixPtr
28  static sensor_msgs::TimeReferencePtr
30 
31  // iXblue ros msgs
32  static ixblue_ins_msgs::InsPtr
34 
35 protected:
36  // Header
37  std_msgs::Header getHeader(const ixblue_stdbin_decoder::Data::NavHeader& headerData,
39 
40  // Launch parameters
41  std::string frame_id;
42  std::string time_source;
43  std::string time_origin;
45 
47 
48  // Publishers
54 
55  // Utils
56  bool useInsAsTimeReference = true;
57  bool useUnixAsTimeOrigin = true;
58 };
std::string time_source
Definition: ros_publisher.h:42
void onNewStdBinData(const ixblue_stdbin_decoder::Data::BinaryNav &navData, const ixblue_stdbin_decoder::Data::NavHeader &headerData)
ros::Publisher stdInsPublisher
Definition: ros_publisher.h:52
std::string frame_id
Definition: ros_publisher.h:41
static sensor_msgs::NavSatFixPtr toNavSatFixMsg(const ixblue_stdbin_decoder::Data::BinaryNav &navData)
ros::Publisher stdNavSatFixPublisher
Definition: ros_publisher.h:50
DiagnosticsPublisher diagPub
Definition: ros_publisher.h:53
static sensor_msgs::ImuPtr toImuMsg(const ixblue_stdbin_decoder::Data::BinaryNav &navData, bool use_compensated_acceleration)
std::string time_origin
Definition: ros_publisher.h:43
std_msgs::Header getHeader(const ixblue_stdbin_decoder::Data::NavHeader &headerData, const ixblue_stdbin_decoder::Data::BinaryNav &navData)
bool useInsAsTimeReference
Definition: ros_publisher.h:56
ros::Publisher stdTimeReferencePublisher
Definition: ros_publisher.h:51
ros::Publisher stdImuPublisher
Definition: ros_publisher.h:49
static sensor_msgs::TimeReferencePtr toTimeReference(const ixblue_stdbin_decoder::Data::NavHeader &headerData)
bool useUnixAsTimeOrigin
Definition: ros_publisher.h:57
static ixblue_ins_msgs::InsPtr toiXInsMsg(const ixblue_stdbin_decoder::Data::BinaryNav &navData)
bool use_compensated_acceleration
Definition: ros_publisher.h:44
ros::NodeHandle nh
Definition: ros_publisher.h:46


ixblue_ins_driver
Author(s): Adrien BARRAL , Laure LE BRETON
autogenerated on Wed Jan 27 2021 03:37:01