Closed txlei closed 3 years ago
I suspect the reason it's getting stuck is that you need to keep the ROS node spinning (in another thread) while you wait for the future
value to arrive. If the node doesn't spin, then the future can never receive its value (which is coming from a ROS service).
For the easiest user experience, I recommend using async_make_participant, which you provide a callback to that will be triggered when the participant is ready.
On a tangential note, we're making a change to our GitHub Issue page policy. If you're seeking advice rather than reporting a bug, we would like you to use the GitHub Discussions page instead. Let's keep the issues page limited to detailed bug reports.
hi, is there another method to get the participant using the Participant API? using
std::future<T>::get()
, my program does not return anything and get stuck at that line.I have checked that participant was successfully created from terminal output
I require the participant obj to add a negotiator.