statusMessage property

  1. @override
AutonomyData statusMessage
override

Implementation

@override
AutonomyData get statusMessage => AutonomyData(
  destination: currentCommand?.destination,
  state: currentState,
  obstacles: collection.pathfinder.obstacles,
  path: [
    for (final transition in currentPath ?? <AutonomyAStarState>[])
      transition.position,
    ...traversed,
  ],
  task: currentCommand?.task,
  crash: false,  // TODO: Investigate if this is used and how to use it better
);