You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi:
I want to get the latest waypoints, but the update of the waypoints topic seems random to me, and it is possible to get the waypoints before the pull through mission/pull + waypoints callback function. Is there a way to actively get the waypoints that are guaranteed to be the latest?
case1:
call pull service here
// global variable waypoints here may be old;
case2:
called = False
call pull service here
// waypoints callback was called and set called to True in another thread
while not called:
pass
// global variable waypoints may still be old, becuase I run ros::spin and above code in two thread