chore(imu_position_approximator): Rename subscription -> subscriber

This commit is contained in:
2025-11-26 20:02:53 +01:00
parent be8b46e4e4
commit b60b376c38
2 changed files with 4 additions and 4 deletions

View File

@@ -23,12 +23,12 @@ IMUPositionApproximator::IMUPositionApproximator()
x_, y_, z_, theta_);
imu_subscription_ = this->create_subscription<sensor_msgs::msg::Imu>(
imu_subscriber_ = this->create_subscription<sensor_msgs::msg::Imu>(
imu_topic_, 10,
std::bind(&IMUPositionApproximator::imu_callback, this, std::placeholders::_1)
);
position_reset_subscription_ = this->create_subscription<geometry_msgs::msg::Pose2D>(
position_reset_subscriber_ = this->create_subscription<geometry_msgs::msg::Pose2D>(
"position_reset", 10,
std::bind(&IMUPositionApproximator::position_reset_callback, this, std::placeholders::_1)
);

View File

@@ -18,8 +18,8 @@ public:
IMUPositionApproximator();
private:
rclcpp::Subscription<sensor_msgs::msg::Imu>::SharedPtr imu_subscription_;
rclcpp::Subscription<geometry_msgs::msg::Pose2D>::SharedPtr position_reset_subscription_;
rclcpp::Subscription<sensor_msgs::msg::Imu>::SharedPtr imu_subscriber_;
rclcpp::Subscription<geometry_msgs::msg::Pose2D>::SharedPtr position_reset_subscriber_;
rclcpp::Publisher<geometry_msgs::msg::Pose2D>::SharedPtr position_publisher_;
rclcpp::Publisher<geometry_msgs::msg::Twist>::SharedPtr velocity_publisher_;