From 9bcee7b4462b16fe07af10cfb94a82d85626ca8a Mon Sep 17 00:00:00 2001 From: Thomas Bleher Date: Thu, 9 Apr 2026 09:49:27 +0200 Subject: [PATCH] Add AssignRouteAction to TrafficAction This makes it possible to forward OpenSCENARIO XML's AssignRouteAction to a traffic participant. Fixes #896. Signed-off-by: Thomas Bleher --- osi_trafficcommand.proto | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/osi_trafficcommand.proto b/osi_trafficcommand.proto index d8763b430..2a0d90d9d 100644 --- a/osi_trafficcommand.proto +++ b/osi_trafficcommand.proto @@ -4,6 +4,7 @@ option optimize_for = SPEED; import "osi_version.proto"; import "osi_common.proto"; +import "osi_route.proto"; package osi3; @@ -130,6 +131,10 @@ message TrafficAction // optional TeleportAction teleport_action = 12; + // A AssignRouteAction + // + optional AssignRouteAction assign_route_action = 13; + // // \brief The action header // @@ -687,4 +692,24 @@ message TrafficAction // optional Orientation3d orientation = 3; } + + // \brief Assign Route Action + // + // This Action allows to assign a route to a traffic participant. + // + // \note This action is aligned with the AssignRouteAction of OpenSCENARIO + // 1.3, with the assumption that the scenario engine resolves the route + // (e.g. converting a "use shortest route" to a concrete route) before + // passing it to the traffic participant. + // + message AssignRouteAction + { + // The Action Header + // + optional ActionHeader action_header = 1; + + // The route to be assigned to the traffic participant. + // + optional Route route = 2; + } }