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

Task queue is empty #2

Open
NunzioVilla opened this issue Jul 11, 2023 · 2 comments
Open

Task queue is empty #2

NunzioVilla opened this issue Jul 11, 2023 · 2 comments

Comments

@NunzioVilla
Copy link

NunzioVilla commented Jul 11, 2023

Hi,
I'm currently trying to use your library following the quick start guideline.
Firstly, I created the handler class for navigation, pause and resume and instant action overriding the internal virtual methods as described. For each of them, a custom constructor has been defined (see attached files).

After that, I created a specific agv descriptor and filled it in every field.

As MC connector, I choose the default one given by the quick start guide.

In the main file (fms_interface_node.cpp), I filled the Handlers structure with my custom class and instantiated the Handle object of the library.

Then, the library spinParallel method is called.

Adding a print to the constructor of my custom class, none of them seems to give any feedback on the terminal window while the state message is published on the MQTT topic periodically.
I suspect that the library doesn't call the constructors.

Am I doing something wrong?

Thanks in advance, hope to receive your feedback soon.
Nunzio

attachments.zip

EDIT:
Debugging the problem, it seems that the task queue is empty so the library spinning does nothing.
Is it possible that I miss some configuration steps?

@NunzioVilla NunzioVilla changed the title User defined constructor of NavigationHandler is not invoked Task queue is empty Jul 11, 2023
@cmraaron
Copy link
Owner

Hi!

This is just a fork of the library upstream at https://git.openlogisticsfoundation.org/silicon-economy/libraries/vda5050/libvda5050pp so you could open an issue there.
But, just from your description, I think the handlers are instantiated for the appropriate message type when they arrive. So if you send an instantAction or a new order, you should see that your appropriate handlers are instantiated

@NunzioVilla
Copy link
Author

Thank you for your reply! I take the chance to ask how to initialize the AGV position at start-up when no message has been exchanged yet? Since the handlers are instantiated for the appropriate message type when they arrive, how can I update the AGV position if no navigation handler exists yet? Am I missing something?

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

No branches or pull requests

2 participants