imu_transformer_nodelet.h
Go to the documentation of this file.
1 #ifndef IMU_TRANSFORMER_IMU_TRANSFORMER_NODELET
2 #define IMU_TRANSFORMER_IMU_TRANSFORMER_NODELET
3 
4 #include "ros/ros.h"
5 #include "tf2_ros/buffer.h"
8 #include "sensor_msgs/Imu.h"
9 #include "sensor_msgs/MagneticField.h"
10 #include "nodelet/nodelet.h"
13 
14 #include <string>
15 
16 namespace imu_transformer
17 {
18  typedef sensor_msgs::Imu ImuMsg;
19  typedef sensor_msgs::MagneticField MagMsg;
21 // typedef message_filters::Subscriber<MagMsg> MagSubscriber;
25 
27  {
28 
29  public:
31 
32  private:
33 
34  std::string target_frame_;
35 
39 
40  ImuSubscriber imu_sub_;
41  MagSubscriber mag_sub_;
42 
45 
47 
48  virtual void onInit();
49  void imuCallback(const ImuMsg::ConstPtr &imu_in);
50 // void magCallback(const MagMsg::ConstPtr &mag_in);
53 
54  };
55 
56 } // namespace imu_transformer
57 
58 #endif // IMU_TRANSFORMER_IMU_TRANSFORMER_NODELET
boost::shared_ptr< ImuFilter > imu_filter_
tf2_ros::MessageFilter< MagMsg > MagFilter
boost::shared_ptr< MagFilter > mag_filter_
void magCallback(const topic_tools::ShapeShifter::ConstPtr &msg)
boost::shared_ptr< tf2_ros::TransformListener > tf2_listener_
sensor_msgs::Imu ImuMsg
tf2_ros::MessageFilter< ImuMsg > ImuFilter
boost::shared_ptr< tf2_ros::Buffer > tf2_
message_filters::Subscriber< topic_tools::ShapeShifter > MagSubscriber
void imuCallback(const ImuMsg::ConstPtr &imu_in)
message_filters::Subscriber< ImuMsg > ImuSubscriber
sensor_msgs::MagneticField MagMsg
void failureCb(tf2_ros::filter_failure_reasons::FilterFailureReason reason)


imu_transformer
Author(s): Paul Bovbel
autogenerated on Thu Jun 4 2020 03:23:01