a* fastest route w/heavy lifting

This block is part of the a* path finding group and was last modified in core v12.0.7.

a* fastest route w/heavy lifting v12.0.7

Calculates the fastest route over multiple stops using heavy lifting parameters.

In pins 11 + flow
  • flow
  • stops array required

    Array [Array [x (Number), y (Number)]] or array with objects using stops_key.

  • end at array required

    Array [x (Number), y (Number)]

  • Key value

    The key to read from the stops array, in case the array contains objects. It contains the tiles to walk.

  • Percentage key value

    The percentage key to read from the stops array, in case the array contains objects. It may contain a percentage of heavy lifting required.

  • Required percentage number

    The minimum percentage heavy lifting required before splitting up routes. This allows for optimalization.

  • Lifting percentage number

    The maximum percentage heavy lifting allowed, until the user has to end the route before they can continue.

  • grid width number required

    Width of 2D matrix

  • grid height number required

    Height of 2D matrix

  • tiles array required

    Could be an array of 2D matrix or x, y, state. We support the following states: heavy, heavy_x2 and heavy_x4.

  • allow diagonal condition

    Default: false

  • cross corners condition

    Default: false

Out pins 5 + flow
  • flow
  • path Matrix array

    Path matrix [x_y, ..]

  • path Readable array

    Human readable path.

  • cost number

    Calculated cost to walk this path to the end.

  • return cost number

    Calculated cost to return from last point back to first.

  • return index number

    If percentage given, we return from this index.

A typical wiring for a* fastest route w/heavy lifting: a function trigger starts the flow; with values feeds the stops pin; with values feeds the end pin; number feeds the width pin; number feeds the height pin; with values feeds the tiles pin; the flow out pin feeds debug.

Studio canvas example for the a* fastest route w/heavy lifting block: typical wiring for a* fastest route w/heavy lifting.

Version history

Introduced in v12.0.7.

v10.1.2 This block or one of its pins was updated in v10.1.2, click here to see the release notes.
Back to a* path finding Return to the main group to view all sub-groups Back to pathfinding Return to the group to view all blocks within this group