Skip to content

Localization after floor change #415

Answered by xiyuoh
Vortex-TH asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Thanks for bringing this up, this hasn't been documented, but here's an example of how you can pass the localize callback when returning RobotCallbacks to be triggered by RMF:

def _make_callbacks(self):
    callbacks = rmf_easy.RobotCallbacks(
        lambda destination, execution: self.navigate(
            destination, execution
        ),
        lambda activity: self.stop(activity),
        lambda category, description, execution: self.perform_action(
            category, description, execution
        )
    )

    callbacks.localize = lambda estimate, execution: self.localize(
        estimate, execution
    )

    return callbacks

where estimate is a Destination object contain…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Vortex-TH
Comment options

Answer selected by Vortex-TH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants