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

Blackboard lookup #80

Open
Serafadam opened this issue Apr 24, 2020 · 4 comments
Open

Blackboard lookup #80

Serafadam opened this issue Apr 24, 2020 · 4 comments
Labels
wontfix This will not be worked on

Comments

@Serafadam
Copy link

Serafadam commented Apr 24, 2020

I think it would be a nice addition if there was a view of currently present Blackboard variables & their values. Or maybe that is implemented and I haven't seen that?
I guess it's just a simple case of getting tree.blackboard_stack and printing its contents.

@facontidavide
Copy link
Contributor

I am tempted to say that it is impossible, but let's just say it is very hard to implement:

Groot and the BT.CPP executor are lously coupled and communicate over flatbuffer.

You change would involve a new flatbuffer protocol that include that. And about the values, do not forget that ANY C++ type is allowed.

Even if I serialize that, how can I make a user defined C++ type visible in Groot? I can not.

So, no, this will not happen, sorry.

@facontidavide facontidavide added the wontfix This will not be worked on label May 13, 2020
@facontidavide
Copy link
Contributor

we may of course limit the scope to only types that are strings or can be converted to string (line numbers). That would be very limiting, but better than nothing.

Still a lot of work that I have no time to do, unfortunately.

@Serafadam
Copy link
Author

Would there be a way to make a mechanism that allows easy adding of such types? I haven't worked with flatbuffer, but won't creating schemas or using https://google.github.io/flatbuffers/flexbuffers.html help? Also if a custom type had an overloaded << operator for string representation, would that help?

@facontidavide
Copy link
Contributor

you are welcome to do that and send a PullRequest :)

It is a huge amount of work that I don't have time for further development of Groot right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants