ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

simulate a GPS reading from a file

asked 2015-02-27 03:01:49 -0600

Porti77 gravatar image

Good morning: I'm working with robot_localization, i have a IMU that work well and a GPS. Now I don't have the hardware GPS however i have a file where i have store data GPS. I want test the system with the IMU and simulate read GPS but since file.

Some idea?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-27 08:16:37 -0600

Tom Moore gravatar image

Well, you can test robot_localization, but if you are using logged GPS data with live IMU data, it's not going to be pretty. The robot's motion when the GPS data was collected will almost certainly not align with the IMU's orientation over time, so the output will be a little strange.

That said, if you just want to make sure everything is flowing, then I'd suggest writing a new node that reads your GPS data from a file and publishes a sensor_msgs/NavSatFix message with the required data. You'll also need to use navsat_transform_node.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-02-27 03:01:49 -0600

Seen: 268 times

Last updated: Feb 27 '15