BehaviorTree.CPP icon indicating copy to clipboard operation
BehaviorTree.CPP copied to clipboard

Connection with Groot2: connect once then lose connection

Open ipa-rwu opened this issue 1 year ago • 1 comments

I am running BT in loops and want to monitoring via Groot2. First I try as an example [here] https://github.com/BehaviorTree/BehaviorTree.CPP/blob/78bdb97b122d685d0b3b8c89bffa402f97998748/examples/generate_log.cpp#L31 Then I found it connected once, then lose connection.

I think it needs to use "flush()" function in the loop https://github.com/BehaviorTree/BehaviorTree.CPP/blob/78bdb97b122d685d0b3b8c89bffa402f97998748/include/behaviortree_cpp/loggers/groot2_publisher.h#L55 But it is defined under private.

ipa-rwu avatar Aug 17 '23 07:08 ipa-rwu

As you can see here, this is not your problem:

https://github.com/BehaviorTree/BehaviorTree.CPP/blob/master/src/loggers/groot2_publisher.cpp#L228-L231

Then I found it connected once, then lose connection.

It must be something else. Can you provide more details? I am assuming that you are using Groot2. Could it be a connection problem?

facontidavide avatar Aug 17 '23 09:08 facontidavide

close because no more details where provided

facontidavide avatar May 08 '24 12:05 facontidavide