Skip to content

Script invocation in t03_generic_ports should fail regarding the scripting language description #971

Open
@stepkun

Description

@stepkun

Regarding the XML definition in t03_generic_ports.cpp:

<root BTCPP_format="4" >
     <BehaviorTree ID="MainTree">
        <Sequence name="root">
            <CalculateGoal   goal="{GoalPosition}" />
            <PrintTarget     target="{GoalPosition}" />
            <Script          code="OtherGoal='-1;3'" />
            <PrintTarget     target="{OtherGoal}" />
        </Sequence>
     </BehaviorTree>
 </root>

I think that the Script invocation should fail due to the assignment to 'OtherGoal' with only '=' because the variable 'OtherGoal' does not yet exist and according to the scripting language description this requires a ':=' assignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions