org.robokind.impl.motion.dynamixel.enums
Enum ErrorStatus

java.lang.Object
  extended by java.lang.Enum<ErrorStatus>
      extended by org.robokind.impl.motion.dynamixel.enums.ErrorStatus
All Implemented Interfaces:
Serializable, Comparable<ErrorStatus>

public enum ErrorStatus
extends Enum<ErrorStatus>

Enumeration of the different Dynamixel errors.

Author:
Matthew Stevenson

Enum Constant Summary
AngleLimit
          Angle limit out of range.
Checksum
          Incorrect packet checksum.
InputVoltage
          Input voltage error.
Instruction
          Dynamixel instruction out of range.
Overheating
          DynamixelJoint temperature too high.
Overload
          The current load cannot be handled by the allowed torque.
Range
          Dynamixel command is out of range,
 
Method Summary
 Byte getByte()
          Return byte value for the ErrorStatus.
static ErrorStatus getStatus(int b)
          Returns the first ErrorStatus flag contained in the int.
static List<ErrorStatus> getStatusList(int b)
          Returns a list of ErrorStatuses represented by the flags joint in the given int.
static ErrorStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

InputVoltage

public static final ErrorStatus InputVoltage
Input voltage error.


AngleLimit

public static final ErrorStatus AngleLimit
Angle limit out of range.


Overheating

public static final ErrorStatus Overheating
DynamixelJoint temperature too high.


Range

public static final ErrorStatus Range
Dynamixel command is out of range,


Checksum

public static final ErrorStatus Checksum
Incorrect packet checksum.


Overload

public static final ErrorStatus Overload
The current load cannot be handled by the allowed torque.


Instruction

public static final ErrorStatus Instruction
Dynamixel instruction out of range.

Method Detail

values

public static ErrorStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ErrorStatus c : ErrorStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ErrorStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getByte

public Byte getByte()
Return byte value for the ErrorStatus.

Returns:
byte value for the ErrorStatus

getStatusList

public static List<ErrorStatus> getStatusList(int b)
Returns a list of ErrorStatuses represented by the flags joint in the given int.

Parameters:
b - ErrorStatus flags
Returns:
list of ErrorStatuses represented by the flags joint in the given int

getStatus

public static ErrorStatus getStatus(int b)
Returns the first ErrorStatus flag contained in the int. Returns null if no ErrorStatus is matched.

Parameters:
b - ErrorStatus flags
Returns:
first ErrorStatus flag contained in the int. Returns null if no ErrorStatus is matched


Copyright © 2011-2013. All Rights Reserved.