refine_plan.algorithms.simple_policy_to_bt

An alternative policy to BT converter that is simpler but builds larger BTs.

Author: Charlie Street Owner: Charlie Street

Module Contents

Classes

SimplePolicyBTConverter

This class contains a simple policy->BT converter that does no reduction.

class refine_plan.algorithms.simple_policy_to_bt.SimplePolicyBTConverter

Bases: refine_plan.algorithms.policy_to_bt.PolicyBTConverter

This class contains a simple policy->BT converter that does no reduction.

We effectively just resolve each state factor depth first.

convert_policy(policy, out_file=None)

Convert a Policy into a BehaviourTree and write the BT to file.

Parameters:
  • policy – A deterministic, memoryless policy

  • out_file – Optional. The output files for the BT

Returns:

The converted BT