-
Notifications
You must be signed in to change notification settings - Fork 5
Update for warehouse world #3
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
Conversation
| # Subscribe to the /battery_state topic | ||
| self.battery_state_subscriber = self.create_subscription( | ||
| BatteryState, | ||
| '/battery_state', |
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.
Don't use global namespace here.
| sleep(15) | ||
| with lock: | ||
| battery_percent = battery_monitor.battery_percent | ||
| print(f'Battery is at {(battery_percent*100):.2f}% charge', end='\r') |
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.
Use navigator.info instead of print.
|
|
||
| from operator import itemgetter | ||
|
|
||
| from pick import pick |
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.
This is not a default python3 package. Let's avoid it and use input() instead.
Description
Updated all examples for positions that work in the warehouse world and added 2 examples:
Patrol example: Drives in a loop forever while monitoring battery charge. If the battery charge goes low then it will return to the base to charge.
Mail delivery example: Has a list of possible endpoints that are able to be selected from the user interface. The robot will be sent to the selected location.
Type of change
How Has This Been Tested?
Each tutorial was launched and run in the warehouse world.
Checklist
The documentation update has been drafted but is pending this code review.