balena-io-modules / mahler

A automated task composer and HTN based planner for building autonomous system agents.
Apache License 2.0
7 stars 1 forks source link

Make planner result into a linked list #21

Closed pipex closed 1 year ago

pipex commented 1 year ago

This is the first step towards allowing parallel tasks, as parallel tasks will require a plan to be represented as a DAG. A linked list is a particular case for that data structure so this should make it a little easier to make the transition.

This should also result in slightly better memory usage as it avoids copying the action array multiple times.

This PR also adds some test helpers under the mahler/testing namespace to make it easier to test the planning results.

Change-type: minor

pipex commented 1 year ago

I self-certify!