Skip to content

Preserve numeric types for literal subtree port values#1121

Open
L4co77 wants to merge 1 commit intoBehaviorTree:masterfrom
PickNikRobotics:fix-subtree-literal-numeric-types
Open

Preserve numeric types for literal subtree port values#1121
L4co77 wants to merge 1 commit intoBehaviorTree:masterfrom
PickNikRobotics:fix-subtree-literal-numeric-types

Conversation

@L4co77
Copy link

@L4co77 L4co77 commented Mar 12, 2026

When literal values are passed to SubTree ports (not blackboard remapping), detect numeric types (int64_t, double) before storing them in the child blackboard. Previously all literals were stored as std::string, which caused type-mismatch errors in Script expressions that tried to do arithmetic.

@L4co77 L4co77 force-pushed the fix-subtree-literal-numeric-types branch 3 times, most recently from b629e8b to c687d78 Compare March 12, 2026 09:23
@facontidavide
Copy link
Collaborator

PR with unit test, what else can I ask? thanks, I will review and come back to you

@facontidavide facontidavide self-assigned this Mar 12, 2026
When literal values are passed to SubTree ports (not blackboard remapping),
detect numeric types (int64_t, double) before storing them in the child
blackboard. Previously all literals were stored as std::string, which caused
type-mismatch errors in Script expressions that tried to do arithmetic.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@L4co77 L4co77 force-pushed the fix-subtree-literal-numeric-types branch from c687d78 to 5e5f65b Compare March 12, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants