Virtual scene has become an indispensable link in the field of automatic driving research and development because it can quickly carry out automatic driving simulation and algorithm verification. Realizing the simulation of lidar sensor in virtual scene is the basis of automatic driving under simulation conditions. Based on the ray tracing technology of the Unreal Engine 4, a mechanical lidar sensor is developed and designed in the virtual environment. The sensor is implemented by Actor class in the Unreal Engine 4, and the simulation of the lidar sensor is realized by four functions: sensor parameter setting, scence scanning, collision detection and coordinate conversion. The sensor adopts modular design to realize the separation of sensor and virtual scene, so that the sensor can be applied to other virtual scenes developed through the Unreal Engine 4. Finally, the designed lidar sensor is tested, and the obtained data are compared with the actual scene. The experimental results show that the lidar sensor can effectively scan the scene data.
Comment submit