-
Notifications
You must be signed in to change notification settings - Fork 23
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
Manage leasing resources properly #92
Conversation
Signed-off-by: Michel Hidalgo <[email protected]>
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.
Thanks for looking into this!
We should do some on-robot testing:
- Start driver and confirm lease is not taken on driver start
- Move the robot using the driver and ensure lease is taken and robot moves
- Hijack the robot with the tablet and ensure the robot can be driven around without the driver trying to take the lease back
- Move the robot using the driver and ensure the lease is taken again (even though a keepalive exists)
Signed-off-by: Michel Hidalgo <[email protected]>
Will work on testing those cases today @jbarry-bdai |
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.
whoops misread the above - ignore me
On-robot testing with this seemed successful. I tried running
I also tried taking control with the tablet while a longer example was actively running ( |
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.
@khughes-bdai
Unable to execute robot command: bosdyn.api.RobotCommandResponse (LeaseUseError):
implies there is an error unless that was still the case before this PR? If that existed before then a ticket needs to be created.
@amessing-bdai those errors existed before this, will make a ticket. Sorry for the confusion. |
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.
LGTM
This patch changes ensures
SpotWrapper
properly releases all resources associated to leasing (including keepalives). It also extends leasing APIs so that downstream code needs not tinker withSpotWrapper
internals.