Skip to content

Cannot set SubTree ports without using a SetBlackBoard #173

Closed
@Acwok

Description

@Acwok

Hello,

It seems that it is not possible to directly set a value to an input port of a SubTree.
I have to map the input port to a key of the BlackBoard otherwise the value is [undefined].
Here is a snapshot of my tree:

image

And here is the terminal output when I load the tree:

root@pc047:/workspace/sequencer/build# ./bin/run_sequencer ../trees/assemble_inner_ring_up.xml 
Register Node ClearArm
Register Node ClearTileFromAnchorObject
Register Node EyeInHandVisualServoing
Register Node EyeToHandVisualServoing
Register Node GetAnchorSI
Register Node LockSI
Register Node MoveArmToSI
Register Node UnlockAllSiblings
Register Node UnlockSI
Register Node GetParametersString
Register Node GetParametersDouble
Tick : MoveArmToSI
    IN: ee_si : [undefined]
    IN: goal_si : [undefined]
    IN: approach_offset : 1000
MoveArmToSI - Invalid input

As you can see, the port approach_offset of the action MoveArmToSI is correctly set.
But its ports ee_si and goal_si are [undefined] albeit I have set the values of the GrabTileFromContainer ports.

Am I missing something, or is it a requirement to use a SetBlackBoard to initialise SubTree ports ?

Metadata

Metadata

Assignees

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