Cardboard Robot SDK
 All Classes Namespaces Functions Enumerations Properties Events
Properties | Public Member Functions | List of all members
CBRobot.ArmPosition Class Reference

Detailed Description

Represents a position of the robot arm, which is composed of a tip position plus the position of motor #4.

Properties

Vector TipPosition [get]
 Gets the position of the arm's tip (corresponds to motors 1 through 3)
 
double M4 [get]
 Gets the position of the fourth motor (crane, camera swivel), in radians.
 
static ArmPosition Zero [get]
 Returns an ArmPosition which represents the home position (all DOF components are zero)
 

Public Member Functions

 ArmPosition (Vector tipPosition, double m4)
 Creates a new ArmPosition with the specified tip position and motor #4 position (in radians).
 
override string ToString ()
 Returns a string description of this position.
 
ArmPosition SetComponent (int componentIndex, double value, CoordinateSystem cs, Robot robot)
 Returns a new arm position with the specified vector component (0 - 3) to the given value, doing coordinate system conversion as needed.
 
double GetComponent (int componentIndex, CoordinateSystem cs, Robot robot)
 Gets the specified vector component (0 - 3), doing coordinate system conversion as needed.
 

The documentation for this class was generated from the following file: