[PR] Implement IMU location approximator #15

Merged
wessel merged 5 commits from 3-odometry/imu-position-approximator into 3-odometry/master 2025-11-28 20:07:09 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit bb14d770cf - Show all commits

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_;