Skip to content

Commit 9bcee7b

Browse files
committed
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 <thomas.tb.bleher@bmw.de>
1 parent 083481d commit 9bcee7b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

osi_trafficcommand.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ option optimize_for = SPEED;
44

55
import "osi_version.proto";
66
import "osi_common.proto";
7+
import "osi_route.proto";
78

89
package osi3;
910

@@ -130,6 +131,10 @@ message TrafficAction
130131
//
131132
optional TeleportAction teleport_action = 12;
132133

134+
// A AssignRouteAction
135+
//
136+
optional AssignRouteAction assign_route_action = 13;
137+
133138
//
134139
// \brief The action header
135140
//
@@ -687,4 +692,24 @@ message TrafficAction
687692
//
688693
optional Orientation3d orientation = 3;
689694
}
695+
696+
// \brief Assign Route Action
697+
//
698+
// This Action allows to assign a route to a traffic participant.
699+
//
700+
// \note This action is aligned with the AssignRouteAction of OpenSCENARIO
701+
// 1.3, with the assumption that the scenario engine resolves the route
702+
// (e.g. converting a "use shortest route" to a concrete route) before
703+
// passing it to the traffic participant.
704+
//
705+
message AssignRouteAction
706+
{
707+
// The Action Header
708+
//
709+
optional ActionHeader action_header = 1;
710+
711+
// The route to be assigned to the traffic participant.
712+
//
713+
optional Route route = 2;
714+
}
690715
}

0 commit comments

Comments
 (0)