|
33 | 33 |
|
34 | 34 | #include "imu_complementary_filter/complementary_filter_ros.h" |
35 | 35 |
|
36 | | -#include <geometry_msgs/msg/transform_stamped.h> |
37 | | -#include <tf2/convert.h> |
38 | | -#include <tf2/LinearMath/Matrix3x3.h> |
39 | | -#include <tf2/LinearMath/Transform.h> |
40 | | -#include <tf2/LinearMath/Vector3.h> |
| 36 | +#include <geometry_msgs/msg/transform_stamped.hpp> |
| 37 | +#include <tf2/convert.hpp> |
| 38 | +#include <tf2/LinearMath/Matrix3x3.hpp> |
| 39 | +#include <tf2/LinearMath/Transform.hpp> |
| 40 | +#include <tf2/LinearMath/Vector3.hpp> |
41 | 41 |
|
42 | 42 | namespace imu_tools { |
43 | 43 |
|
@@ -78,13 +78,13 @@ ComplementaryFilterROS::ComplementaryFilterROS() |
78 | 78 | }}; |
79 | 79 |
|
80 | 80 | imu_subscriber_.reset(new ImuSubscriber(this, "imu/data_raw", |
81 | | - rmw_qos_profile_default, sub_opts)); |
| 81 | + rclcpp::QoS(queue_size), sub_opts)); |
82 | 82 |
|
83 | 83 | // Register magnetic data subscriber. |
84 | 84 | if (use_mag_) |
85 | 85 | { |
86 | 86 | mag_subscriber_.reset(new MagSubscriber( |
87 | | - this, "imu/mag", rmw_qos_profile_default, sub_opts)); |
| 87 | + this, "imu/mag", rclcpp::QoS(queue_size), sub_opts)); |
88 | 88 |
|
89 | 89 | sync_.reset(new Synchronizer(SyncPolicy(queue_size), *imu_subscriber_, |
90 | 90 | *mag_subscriber_)); |
|
0 commit comments