BehaviorTree.js icon indicating copy to clipboard operation
BehaviorTree.js copied to clipboard

Proposal for OpenHarmony Adaptation of behaviortree

Open Haoc-xytx opened this issue 8 months ago • 1 comments

Title: Proposal for OpenHarmony Adaptation of behaviortree

Background

OpenHarmony is an open-source operating system and community that is widely used in the field of intelligent terminals.

Currently, behaviortree is extensively utilized in the mobile application development domain of OpenHarmony. We have created this Issue hoping to supplement the guidance on using behaviortree in the OpenHarmony system in the upstream repository. We sincerely welcome you to put forward your valuable suggestions.

Adaptation Proposal

We have completed the OpenHarmony adaptation for behaviortree, including:

We'll submit the adaptation code through a Pull Request (PR) promptly.

Testing Results

We have conducted extensive compatibility testing across:

  • Different versions of OpenHarmony
  • Various OpenHarmony device types

Verified versions include:

  • DevEco Studio: NEXT Beta1-5.0.3.806, SDK: API1/XMLSchema Release(5.0.0.66)
  • DevEco Studio: 4.1 Release (4.1.0.400), SDK: API 11 Release (4.1.7.5)
  • DevEco Studio: 4.0 Beta2(4.0.3.512), SDK: API10 (4.0.10.9)
  • DevEco Studio: 3.1.1 Release(3.1.0.501), SDK: API9 Release(3.2.12.5)

Coverage of unit test cases is as follows:

Interface Name Passed Remarks
BehaviorTree pass
SUCCESS pass
FAILURE pass
RUNNING pass
getRegistry pass
registryLookUp pass
BehaviorTreeImporter pass
BranchNode pass
Node pass
Parallel pass
ParallelComplete pass
ParallelSelector pass
Selector pass
Sequence pass
Random pass
Decorator pass
Task pass
Introspector pass
decorators pass

The results show excellent compatibility without significant stability issues. Test reports can be provided as needed.

Labels

enhancement, compatibility, cross-platform

Haoc-xytx avatar May 16 '25 00:05 Haoc-xytx

Hi @Haoc-code.

I don't know anything about OpenHarmony. In the evening I will check it out and inform myself an opinion.

But in general, I am happy about anything that helps people and does not disturb the core functionality, so if you have a PR, you need for better OpenHarmony integration, I will definitely consider it.

Calamari avatar Jun 04 '25 07:06 Calamari