swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
371 stars 144 forks source link

How to make the view move as the GPS track goes? #735

Open congphase opened 3 years ago

congphase commented 3 years ago

Hello everyone,

I successfully showed the tile map of Google Maps, and the navsat track using danielsnider's job as in the image attached: image

But the view does not move as the gps track goes. As in your conference demo

How to do it?

Thank you all.

rjb0026 commented 3 years ago

You will have to set your Target frame (there is a drop down menu in the top left corner) to whatever TF frame you want the view to follow. Typically this frame is attached to the vehicle and is published by a localization node running on your platform. RVIZ uses the same concepts of fixed and target frames.

If you're unfamiliar with TF, I'd recommend starting with the tutorials and then looking at how TF is or how TF should be setup on your platform.

Other useful links: Coordinate Frames for Mobile Platforms rqt_tf_tree - a tool for visualizing the TF tree on a robot