Groot icon indicating copy to clipboard operation
Groot copied to clipboard

realtime monitor - deque::_M_range_check:

Open kevincameronmtl opened this issue 5 years ago • 8 comments

Hello, I am trying to get the real-time monitor to work. i saw a similar issue that suggests a zmq publisher. PublisherZMQ publisher_zmq(tree);

do you have a complete example of this. i have tried adding into my init code, but i get the same issue.

edit: Ideally an example of how to use the publisher, if you have multiple instances of BT running. Would it be possible to switch between the trees. thank you

kevincameronmtl avatar Feb 20 '20 22:02 kevincameronmtl

I have made some progress here. i believe i have the publisher part working. but when i try to connect using Groot i get this error message:

deque::_M_range_check: __n (which is 755)>= this->size() (which is 27)

any idea?

kevincameronmtl avatar Feb 25 '20 17:02 kevincameronmtl

ping? anyone there?

kevincameronmtl avatar Mar 05 '20 22:03 kevincameronmtl

No... Sorry, overwhelmed with other projects. I will try to get back to you... Eventually

facontidavide avatar Mar 06 '20 00:03 facontidavide

Hello. I am experiencing the same issue. @kevincameronmtl Did you every make progress on this?

tgreier avatar Jul 10 '20 14:07 tgreier

If you give me a way to reproduce this, I will be happy to, otherwise I have no bandwidth to investigate it.

I am completely overwhelmed by other projects. :(

facontidavide avatar Jul 10 '20 15:07 facontidavide

@tgreier are you trying to implement a custom zmq connection to Groot?

esromneb avatar Oct 01 '20 06:10 esromneb

@tgreier If I were you I'd make sure to compile the latest versions of BehaviorTree.CPP Groot and your project as a single meta-project on one machine.

for me simply adding BT::PublisherZMQ publisher_zmq( tree ); worked like a charm, so maybe you have a version mismatch or something?

If that doesn't work, make a sample project with a minimal tree functionality and ZMQ publisher, which results in an error for you. Maybe I can take a look and see if it works for me

ramilmsh avatar Oct 01 '20 07:10 ramilmsh

My problem was caused by my BehaviorTreeEngine, where the manifest was not being copied from the factory to the Tree. Therefore there was no manifest data to load.

tgreier avatar Oct 01 '20 11:10 tgreier