Longitudinal and lateral stability control for autonomous vehicles in curved road scenarios with road undulation | Synapse