Logging capability for SciRoc Episode 05
The file 'sciroc_episode05_logging.py' will provide helper function to log the robot status to an online sheet.
log_run_started
log_object_picked
log_object_placed
log_run_stopped
pip3 install requests
- copy 'sciroc_episode05_logging.py' file to your folder with functionality code.
- import file
- Instantiate
LogStatusSciRoc
class - use the functions
import sciroc_episode05_logging
#Initialize the logger with team name
sciroc_log = sciroc_episode05_logging.LogStatusSciRoc(team_name='AutonOHM')
#Logging start of run
sciroc_log.log_run_started()
#Logging object picked
sciroc_log.log_object_picked(object_name='Ocado Toasted Sesame Oil')
#Logging object placed
sciroc_log.log_object_placed(object_name='Ocado Toasted Sesame Oil')
#logging object dropped
sciroc_log.log_object_placed(object_name='DROPPED')
#logging run stopped
sciroc_log.log_run_stopped()