Groot2 icon indicating copy to clipboard operation
Groot2 copied to clipboard

Error Parsing <BehaviorTree>

Open BahmanFarshbaf opened this issue 7 months ago • 1 comments

Describe the bug I'm trying to connect Groot2 to my behaviortree for real-time monitor but an error pops up that "Node 'LoadController' contains port 'request.name' in the XML that doesn't match a any of the ports in the model" . TreeModel already have that port :

<Action ID="LoadController">
            <input_port name="connection_timeout_ms" type="double"/>
            <input_port name="request.name" type="std::string"/>
            <input_port name="service_name" type="std::string"/>
            <output_port name="response.ok" type="bool"/>
</Action>

XML File:

<BehaviorTree ID="LoadPositionController">
        <Sequence>
            <LoadController
                service_name="/controller_manager/load_controller"
                connection_timeout_ms="500"
                request.name="/workcell/controller/position_trajectory_controller"
                response.ok="{load_controller_ok}"
            />
            <Precondition if="load_controller_ok==1" else="SUCCESS">
                <Delay delay_msec="250">
                  <AlwaysSuccess/> 
                </Delay>
            </Precondition>
        </Sequence>
</BehaviorTree>

Im using BT 4.7 and Groot2 1.6.1

BahmanFarshbaf avatar Apr 14 '25 08:04 BahmanFarshbaf

ok i found out that the input or output ports (request.name , response.ok) which have dot in their name make problem, shouldn't it be fixed really? don't allow user to make port with dots can also be a fix

BahmanFarshbaf avatar May 08 '25 00:05 BahmanFarshbaf