Use simultaneous localization and mapping (SLAM) algorithms to build maps surrounding the ego vehicle based on visual or lidar data. Use visual-inertial odometry to estimate the pose (position and orientation) of a vehicle based on data from onboard sensors such as inertial measurement units (IMUs).
Rotations, Orientations, and Quaternions for Automated Driving
Quaternions are four-part hypercomplex numbers that are used to describe three-dimensional rotations and orientations. Learn how to use them for automated driving applications.
Monocular Visual Simultaneous Localization and Mapping (Computer Vision Toolbox)
Visual simultaneous localization and mapping (vSLAM).