-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add docking finished callback im MiRFM #33
Conversation
Signed-off-by: Xi Yu Oh <xiyuoh@intrinsic.ai>
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.
What about the other changes that were introduced in the other PR #31? And #29
Also looking at the code, there isn't any major difference between this CommandHandle and the one in fleet_adapter_mir
. We should be able to reuse the same CommandHandle for both adapters after refactoring to pass a more generic transform object and the API class.
Having to update both files each time we fix a bug seems like something we can avoid. Or atleast reuse as much code as possible.
Signed-off-by: Xi Yu Oh <xiyuoh@intrinsic.ai>
Ah ps missed those out. Other than those in edaf8f0, updating 👍 about reusing code. The main difference now is that the FM is retrieving individual robot information using the FM API, but the remaining APIs work pretty much the same. I guess in that case we can put them back in the same package then? |
I'm not sure what the original reasoning was to separate the packages. Do you know? To me we could have kept a single package and defined two ClientAPI classes, one for FM and the other for direct robot comms. Anyways there is no problem with having two packages. We can have to separate API classes with the same functions (ideally both derive a base class) and we can reuse the same RobotCommandHandle for both adapters. Just need to pass the corresponding API class when instantiating the RobotCommandHandle. So in the FM adapter, instead of defining and importing a new RobotCommandHandle, we can just |
Initially it was just to make the MirFM adapter public asap as it was being requested. Now that you mention it, a base class sounds a lot better. Maybe we can keep the separate packages for the time being and i'll update it some time next week. |
Yeah at the minimum let's open a ticket so that we remember to follow up. |
This PR adds a missing
docking_finished_callback()
when docking is aborted and returns response required forqueue_dock_and_charge_mission
.