nobleo / rviz_satellite

Display internet satellite imagery in RViz
Apache License 2.0
525 stars 226 forks source link

Dynamically reload option #120

Closed TotalWalther closed 3 months ago

TotalWalther commented 3 months ago

In the ROS1 version of rviz_satellite there was the nice feature to disable dynamical reload and thereby avoiding the problem that the map moves under the robot if the robot moves. Is there any plan to bring this feature to the ROS2 version in the future?

TotalWalther commented 3 months ago

I found a quick and dirty way to do this.

I introduced a bool variable allowing me to load the tiles only once and skip all gps_callbacks afterwards. Also remove the fade out feature and now the map does not move any more.

This fix should work as long as your operation area is not large and the first gps message is close enough to the center of the operation area.