Skip to content

Instantaneous actions of Init section not completed #778

@Martin-Brieg

Description

@Martin-Brieg

The attached OSC example has a single vehicle that is initialized in the init section of the storyboard by using a TeleportAction to set its initial position and a SpeedAction with dynamicShape="step" to set its initial speed. According to the OSC specification, both actions should complete instantaneously. The TeleportAction by definition and the SpeedAction due to its dynamic shape being a step. So, according to the OSC specification, both actions should complete before initialization finishes and before any maneuvers of the storyboard start or are executed.

However, running the attached example produces the following output:

[0.000] [info] Init vehicle1 TeleportAction initState -> startTransition -> runningState
[0.000] [info] Starting teleport Action
[0.000] [info] vehicle1 New position:
[0.000] [info] Pos(110.98, -9.13, 0.00) Rot(2.91, 0.00, 0.00) roadId 4294967295 laneId 0 s 0.00 offset 0.00 t 0.00
[0.000] [info] Init vehicle1 LongitudinalAction initState -> startTransition -> runningState
[0.000] [info] storyBoard initState -> startTransition -> runningState
[0.000] [info] CollisionStory initState -> startTransition -> runningState
[0.000] [info] CollisionAct initState -> startTransition -> runningState
[0.000] [info] vehicle1_ManeuverGroup initState -> startTransition -> runningState
[0.000] [info] vehicle1_Maneuver initState -> startTransition -> runningState
[0.000] [info] vehicle1_FollowTrajectoryEvent initState -> initToStandbyTransition -> standbyState
[0.000] [info] vehicle1_DeleteEntityEvent initState -> initToStandbyTransition -> standbyState
[0.000] [info] vehicle1_FollowTrajectoryEvent_Condition: true, delay: 0.00, 0.0000 >= 0.0000, edge: none
[0.000] [info] Trigger /------------------------------------------------
[0.000] [info] Group 0:
[0.000] [info] vehicle1_FollowTrajectoryEvent_Condition: true
[0.000] [info] Trigger  ------------------------------------------------/
[0.000] [info] vehicle1_FollowTrajectoryEvent standbyState -> startTransition -> runningState
[0.000] [warn] Stopping Init vehicle1 TeleportAction on conflicting Lateral & Longitudinal domain(s)
[0.000] [info] Init vehicle1 TeleportAction runningState -> endTransition -> completeState
[0.000] [warn] Stopping Init vehicle1 LongitudinalAction on conflicting Longitudinal domain(s)
[0.000] [info] Init vehicle1 LongitudinalAction runningState -> endTransition -> completeState
[0.000] [info] vehicle1_FollowTrajectoryAction initState -> startTransition -> runningState

The two warnings indicate that both actions of the Init section were not completed before maneuvers of the storyboard start.

min_example_init_section.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions