Skip to content

Is there a way to get newest mission / waypoints from FCU ? #2044

@HGGshiwo

Description

@HGGshiwo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions