ROS2 Node Publishing GPS Data Drifts Out of Bounds After Several Seconds
I’m developing a ROS2 node that reads GPS and IMU data from a file and publishes it using various ROS2 topics (e.g., sensor_msgs::msg::NavSatFix
, geometry_msgs::msg::PoseWithCovarianceStamped
, and sensor_msgs::msg::Imu
). The node works correctly when it first starts: the data seems accurate, and the pose behaves as expected. However, after a few seconds, the published data begins to drift out of bounds, and the system starts displaying incorrect positions.