- This project visualizes the results of robot and vehicle position and pose estimation and lidar observations using Google Earth. This is very useful for evaluating and demonstrating the results of localization and SLAM.
example_compare_two_positions.m
compare.mp4
example_vehicle_lidar_animation.m
vehicle_lidar.mp4
vehicle_lidar_top.mp4
example_drone_lidar_animation.m
drone_lidar.mp4
- MATLAB (>R2022a)
Image Processing Toolbox
andComputer Vision Toolbox
are required forexample_vehicle_lidar.m
andexample_vehicle_lidar_animation.m
- MatRTKLIB
- Google Earth Pro
- Install Google Earth Pro
- Clone or download MatRTKLIB and add to path in MATLAB
- Clone or download ge-drive-visualizer
Execute the MATLAB script. A [m-filename].kmz
file will be generated afterwards.
example_compare_two_positions.m
: Comparison of two types of position estimationsexample_drone_lidar_animation.m
: Animation of a drone flight and Lidar dataexample_vehicle_animation.m
: Animation of a vehicle drivingexample_vehicle_lidar.m
: Display of vehicle model and Lidar dataexample_vehicle_lidar_animation.m
: Animation of vehicle driving and Lidar data
- Check
Photorealistic
andTerrain
in Layers
- Select
DriveTour
- Enter the name of the file to save to
- Set the video recording settings as you want
- Usually this process takes quite a while!
- In my experience, running Google Earth in a Linux (Ubuntu) environment is much faster than running it in Windows
- On Windows, it is faster to use OpenGL instead of DirectX as the graphics mode for Google Earth
- The type of graphics card you have can also affect performance
- In the example of Lidar data animation (
xxx_lidar_animation.m
), there are a large number of objects to be visualized, so there are limits to how much can be displayed in Google Earth - Long-term lidar data visualization is difficult
- For animation, the limit is around 4000 points x 150 frames
- It is necessary to increase the memory allocated to Google Earth
Preferences->Cache->Memory Cache Size (MB): 1024
Preferences->Cache->Disk Cache Size (MB): 2048
- For large data, it is difficult to change the viewpoint with the mouse, but Movie Maker rendering and video generation work