Skip to content

Instantly share code, notes, and snippets.

@rwbot
Created June 30, 2020 00:59
Show Gist options
  • Save rwbot/a18f0c28cdc986b0935a20e9796dbfef to your computer and use it in GitHub Desktop.
Save rwbot/a18f0c28cdc986b0935a20e9796dbfef to your computer and use it in GitHub Desktop.
demo_grid_driving_action ENUMs
tara -> demo_grid_driving_action
# Define the goal
int32 grid_drive_enum
int32 GRID_DRIVE_ENUM_ERROR = 0
int32 GRID_DRIVE_ENUM_DRIVE_TO_HOME_FROM_UNKNOWN_POS_PAST_HOMING_SENSOR = 1
int32 GRID_DRIVE_ENUM_DRIVE_TO_HOME_FROM_UNKNOWN_POS_BEFORE_HOMING_SENSOR = 2
int32 GRID_DRIVE_ENUM_DRIVE_TO_HOME_FROM_KNOWN_POS = 3
int32 GRID_DRIVE_ENUM_DRIVE_TO_GOAL_TOTE = 4
int32 GRID_DRIVE_ENUM_DRIVE_FROM_FLOOR_TO_ELEVATOR = 5
int32 GRID_DRIVE_ENUM_DRIVE_FROM_ELEVATOR_TO_FLOOR = 6
int32 GRID_DRIVE_ENUM_DRIVE_RECOVER_IN_GRID = 7
int32 GRID_DRIVE_ENUM_DRIVE_ALIGN_WITH_PUSHER = 8
#special action that will disable all other actions
int32 GRID_DRIVE_ENUM_DRIVE_ENABLE_FLOOR_DRIVING = 200
int32 GRID_DRIVE_ENUM_DRIVE_DISABLE_FLOOR_DRIVING = 201
# Column numbering:
# 0: Reserved for the lift/elevator
# 1-N: Column within grid
int32 column
# Side may be either "left" or "right"
# NOTE: You cannot define string constants in these files
string side
---
# Define the result (sucess is true else false)
# NOTE: You cannot define bool constants in these files
bool completed_move
# If completed move is false, this will contain additional
# information about the reason why. If completed move is
# true (success), return_code will be 0.
int32 return_code
int32 RETURN_CODE_ENUM_ERROR_MUST_HOME_BEFORE_DRIVE = 1
string return_code_description
---
# Define a feedback message
int32 percent_complete
USAGE: demo_grid_driving_action <goal_enum_number> [column] [left|right]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment