-
Notifications
You must be signed in to change notification settings - Fork 23
Added Localisation Hook #41
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
base: main
Are you sure you want to change the base?
Added Localisation Hook #41
Conversation
fleet_adapter_template/fleet_adapter_template/RobotClientAPI.py
Outdated
Show resolved
Hide resolved
fleet_adapter_template/fleet_adapter_template/RobotClientAPI.py
Outdated
Show resolved
Hide resolved
xiyuoh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some spelling changes from the previous review were overlooked, commented them below. I think one last step before approving is to test this template out with robots in multi-storey environments (i.e. with lifts), with the new localize callback populated, so that we know this is working well. Let me know if you have any difficulty validating it.
fleet_adapter_template/fleet_adapter_template/RobotClientAPI.py
Outdated
Show resolved
Hide resolved
β¦ded localise function. Signed-off-by: Bey Hao Yun <[email protected]>
Signed-off-by: Bey Hao Yun <[email protected]>
Signed-off-by: Bey Hao Yun <[email protected]>
β¦se as argument for localise function in RobotClientAPI.py. Signed-off-by: Bey Hao Yun <[email protected]>
β¦ed. Added log statements for easier debugging. Signed-off-by: Bey Hao Yun <[email protected]>
β¦ core library consistency. Signed-off-by: Bey Hao Yun <[email protected]>
β¦ feedback. Signed-off-by: Bey Hao Yun <[email protected]>
β¦tion failed. Signed-off-by: Bey Hao Yun <[email protected]>
Signed-off-by: Bey Hao Yun <[email protected]>
aa2e48d to
b949f3d
Compare
|
Will update again once the requested validation has been done. Will see if this can be done with |
|
@xiyuoh βοΈ Validation test has been done with the following circumstances and components:
Validation Test DescriptionThe test involves having Robot take a mock lift in Kabam Office multiple times. It shows that, with the new localisation hook, See video attached below for proof: robot_multiple_lift_taking.mp4 |
|
@cardboardcode Thanks for testing and patiently waiting for a review, it's great that this works! Just wanted to double check, any idea what's going on at 1:06? The robot disappeared from the L2 map when the localization hook was triggered at 1:00, but it re-appeared momentarily at 1:06 before disappearing for good. |
@xiyuoh Hmm... Good catch. Not exactly sure why Robot fleet marker flashed like that. I suspect the following occurred that might explain the observation:
|
|
Let's verify this with some logs, are you able to obtain the log output from your testing? Would it be possible to also run this again to check its reproducibility? I'm concerned we might accidentally introduce some unwanted behavior to the template, but if this happens to be a glitch/one-off inaccurate robot state update, then it's probably not an issue. |
|
Will run the test again and provide the log output. Probably next week, hopefully. |
|
@xiyuoh Just FYI. No actions needed. Validation will be delayed on my side due to changing company circumstances. Will likely only be able to revisit this after End-Oct. If there are any developers who have the bandwidth to help validate the added localisation hook, please proceed. |
New Feature Implementation π¦ β
Implemented Feature π¦
Added explicit addition of
localisecallback in RobotAdapter classmake_callbacksfunction as well as implemented complimentarychange_mapfunction in RobotClientAPI class for when callback is triggered.Implementation Description π
This new feature offers the following benefits:
localisecallback for newer RMF developers who may not be able to find this functionality, given the closure of Open-RMF Discussion.In other words, with this feature, developers can control what robot can do when triggered by a change in robot map.
This feature is based on the following archived Open-RMF discussion.
Reference Link: https://discourse.openrobotics.org/t/localization-after-floor-change-415/44763/2
GenAI Use
We follow OSRA's policy on GenAI tools
Generated-by: Bey Hao Yun