Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support inclusion or aggregation of other XML files #259

Closed
fafux opened this issue Feb 8, 2021 · 1 comment · Fixed by #275
Closed

Support inclusion or aggregation of other XML files #259

fafux opened this issue Feb 8, 2021 · 1 comment · Fixed by #275
Assignees

Comments

@fafux
Copy link

fafux commented Feb 8, 2021

HI, I faced a problem in including xml files. I execute bin/t10_include_trees passing as first argument the path to examples/test_files/subtree_test.xml. Below the output:

terminate called after throwing an instance of 'BT::RuntimeError'
  what():  CheckTemperature is not a registered node, nor a Subtree
Aborted (core dumped)

To test I referred to the issue #17

@asasine
Copy link
Contributor

asasine commented Apr 23, 2021

The CheckTemperature and SayHello nodes were not registered with the factory for that example so I went ahead and added them. The output now looks like:

----------------
Sequence
   CheckStatus
      SequenceStar
         CheckBattery
         CheckTemperature
   OpenGripper
   CloseGripper
   SayStuff
      SequenceStar
         SaySomething
         SayHello
----------------
[ Battery: OK ]
[ Temperature: OK ]
GripperInterface::open
GripperInterface::close
Robot says: Hello World
Robot says: Hello World

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 a pull request may close this issue.

3 participants