"""
Autogenerated python message buffer code.
Source: clad/types/actionResults.clad
Full command line: victor-clad/tools/message-buffers/emitters/Python_emitter.py -C src -I clad/src lib/util/source/anki/clad robot/clad/src coretech/vision/clad_src coretech/common/clad_src -o generated/cladPython clad/types/actionResults.clad
"""

from __future__ import absolute_import
from __future__ import print_function

def _modify_path():
  import inspect, os, sys
  search_paths = [
    '../..',
    '../../../../victor-clad/tools/message-buffers/support/python',
  ]
  currentpath = os.path.abspath(os.path.dirname(inspect.getfile(inspect.currentframe())))
  for search_path in search_paths:
    search_path = os.path.normpath(os.path.abspath(os.path.realpath(os.path.join(currentpath, search_path))))
    if search_path not in sys.path:
      sys.path.insert(0, search_path)
_modify_path()

import msgbuffers

Anki = msgbuffers.Namespace()
Anki.Vector = msgbuffers.Namespace()

class ActionResultCategory(object):
  "Automatically-generated uint_8 enumeration."
  SUCCESS   = 0
  RUNNING   = 1
  CANCELLED = 2
  ABORT     = 3
  RETRY     = 4

Anki.Vector.ActionResultCategory = ActionResultCategory

class ARCBitShift(object):
  "Automatically-generated uint_32 enumeration."
  NUM_BITS = 24
  SHIFT    = 16777216

Anki.Vector.ARCBitShift = ARCBitShift

class ActionResult(object):
  "Automatically-generated uint_32 enumeration."
  SUCCESS                               = ActionResultCategory.SUCCESS * ARCBitShift.SHIFT
  RUNNING                               = ActionResultCategory.RUNNING * ARCBitShift.SHIFT
  CANCELLED_WHILE_RUNNING               = ActionResultCategory.CANCELLED * ARCBitShift.SHIFT
  NOT_STARTED                           = ActionResultCategory.CANCELLED * ARCBitShift.SHIFT + 1
  ABORT                                 = ActionResultCategory.ABORT * ARCBitShift.SHIFT
  ANIM_ABORTED                          = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 1
  BAD_MARKER                            = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 2
  BAD_MESSAGE_TAG                       = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 3
  BAD_OBJECT                            = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 4
  BAD_POSE                              = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 5
  BAD_TAG                               = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 6
  CHARGER_UNPLUGGED_ABORT               = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 7
  CLIFF_ALIGN_FAILED_TIMEOUT            = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 8
  CLIFF_ALIGN_FAILED_NO_TURNING         = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 9
  CLIFF_ALIGN_FAILED_OVER_TURNING       = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 10
  CLIFF_ALIGN_FAILED_NO_WHITE           = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 11
  CLIFF_ALIGN_FAILED_STOPPED            = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 12
  FAILED_SETTING_CALIBRATION            = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 13
  FOLLOWING_PATH_BUT_NOT_TRAVERSING     = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 14
  INTERRUPTED                           = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 15
  INVALID_OFF_TREADS_STATE              = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 16
  MISMATCHED_UP_AXIS                    = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 17
  NO_ANIM_NAME                          = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 18
  NO_DISTANCE_SET                       = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 19
  NO_FACE                               = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 20
  NO_GOAL_SET                           = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 21
  NO_PREACTION_POSES                    = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 22
  NOT_CARRYING_OBJECT_ABORT             = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 23
  NOT_ON_CHARGER_ABORT                  = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 24
  NULL_SUBACTION                        = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 25
  PATH_PLANNING_FAILED_ABORT            = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 26
  PICKUP_OBJECT_UNEXPECTEDLY_MOVING     = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 27
  SEND_MESSAGE_TO_ROBOT_FAILED          = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 28
  STILL_CARRYING_OBJECT                 = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 29
  TIMEOUT                               = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 30
  TRACKS_LOCKED                         = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 31
  UNEXPECTED_DOCK_ACTION                = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 32
  UNKNOWN_TOOL_CODE                     = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 33
  UPDATE_DERIVED_FAILED                 = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 34
  VISUAL_OBSERVATION_FAILED             = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 35
  SHOULDNT_DRIVE_ON_CHARGER             = ActionResultCategory.ABORT * ARCBitShift.SHIFT + 36
  RETRY                                 = ActionResultCategory.RETRY * ARCBitShift.SHIFT
  DID_NOT_REACH_PREACTION_POSE          = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 1
  FAILED_TRAVERSING_PATH                = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 2
  LAST_PICK_AND_PLACE_FAILED            = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 3
  MOTOR_STOPPED_MAKING_PROGRESS         = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 4
  NOT_CARRYING_OBJECT_RETRY             = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 5
  NOT_ON_CHARGER_RETRY                  = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 6
  PATH_PLANNING_FAILED_RETRY            = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 7
  PLACEMENT_GOAL_NOT_FREE               = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 8
  PICKUP_OBJECT_UNEXPECTEDLY_NOT_MOVING = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 9
  STILL_ON_CHARGER                      = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 10
  UNEXPECTED_PITCH_ANGLE                = ActionResultCategory.RETRY * ARCBitShift.SHIFT + 11

Anki.Vector.ActionResult = ActionResult
del ActionResult


