From e70480c6642d16a35a6511946574fa7bbed3b9b3 Mon Sep 17 00:00:00 2001 From: "Pasch, Frederik" Date: Thu, 16 Jul 2020 09:20:53 +0200 Subject: [PATCH] RSS: Fix calculation of steering angle As ad-rss-lib is using a right-handed and CARLA left-handed coordinate system, the calculation of the steering angle must be inverted + remove obsolete openscenario --- LibCarla/source/carla/rss/RssCheck.cpp | 2 +- .../rss/scenarios/FollowLeadingVehicle.xosc | 218 ------------------ 2 files changed, 1 insertion(+), 219 deletions(-) delete mode 100644 PythonAPI/examples/rss/scenarios/FollowLeadingVehicle.xosc diff --git a/LibCarla/source/carla/rss/RssCheck.cpp b/LibCarla/source/carla/rss/RssCheck.cpp index 27f3bb8a7..d3f9404a9 100644 --- a/LibCarla/source/carla/rss/RssCheck.cpp +++ b/LibCarla/source/carla/rss/RssCheck.cpp @@ -467,7 +467,7 @@ bool RssCheck::CheckObjects(carla::client::Timestamp const ×tamp, ::ad::physics::Angle RssCheck::GetSteeringAngle(carla::client::Vehicle const &actor) const { auto const steer_ratio = actor.GetControl().steer; - ::ad::physics::Angle steering_angle(_maximum_steering_angle * steer_ratio); + ::ad::physics::Angle steering_angle(-1 * _maximum_steering_angle * steer_ratio); return steering_angle; } diff --git a/PythonAPI/examples/rss/scenarios/FollowLeadingVehicle.xosc b/PythonAPI/examples/rss/scenarios/FollowLeadingVehicle.xosc deleted file mode 100644 index ab1231662..000000000 --- a/PythonAPI/examples/rss/scenarios/FollowLeadingVehicle.xosc +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -