Package viam.app.v1
Class Robot.Orientation.OrientationVectorRadians.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.Orientation.OrientationVectorRadians,Robot.Orientation.OrientationVectorRadians.Builder>
viam.app.v1.Robot.Orientation.OrientationVectorRadians.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Robot.Orientation.OrientationVectorRadiansOrBuilder
- Enclosing class:
- Robot.Orientation.OrientationVectorRadians
public static final class Robot.Orientation.OrientationVectorRadians.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.Orientation.OrientationVectorRadians,Robot.Orientation.OrientationVectorRadians.Builder>
implements Robot.Orientation.OrientationVectorRadiansOrBuilder
OrientationVector containing ox, oy, oz, theta represents an orientation vector Structured similarly to an angle axis, an orientation vector works differently. Rather than representing an orientation with an arbitrary axis and a rotation around it from an origin, an orientation vector represents orientation such that the ox/oy/oz components represent the point on the cartesian unit sphere at which your end effector is pointing from the origin, and that unit vector forms an axis around which theta rotates. This means that incrementing/decrementing theta will perform an in-line rotation of the end effector. Theta is defined as rotation between two planes: the plane defined by the origin, the point (0,0,1), and the rx,ry,rz point, and the plane defined by the origin, the rx,ry,rz point, and the new local Z axis. So if theta is kept at zero as the north/south pole is circled, the Roll will correct itself to remain in-line.Protobuf type
viam.app.v1.Orientation.OrientationVectorRadians
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptiondouble theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""];
clearX()
double x = 2 [json_name = "x"];
clearY()
double y = 3 [json_name = "y"];
clearZ()
double z = 4 [json_name = "z"];
double
getTheta()
double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""];
double
getX()
double x = 2 [json_name = "x"];
double
getY()
double y = 3 [json_name = "y"];
double
getZ()
double z = 4 [json_name = "z"];
setTheta
(double value) double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""];
setX
(double value) double x = 2 [json_name = "x"];
setY
(double value) double y = 3 [json_name = "y"];
setZ
(double value) double z = 4 [json_name = "z"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getTheta
public double getTheta()double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""];
- Specified by:
getTheta
in interfaceRobot.Orientation.OrientationVectorRadiansOrBuilder
- Returns:
- The theta.
-
setTheta
double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""];
- Parameters:
value
- The theta to set.- Returns:
- This builder for chaining.
-
clearTheta
double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""];
- Returns:
- This builder for chaining.
-
getX
public double getX()double x = 2 [json_name = "x"];
- Specified by:
getX
in interfaceRobot.Orientation.OrientationVectorRadiansOrBuilder
- Returns:
- The x.
-
setX
double x = 2 [json_name = "x"];
- Parameters:
value
- The x to set.- Returns:
- This builder for chaining.
-
clearX
double x = 2 [json_name = "x"];
- Returns:
- This builder for chaining.
-
getY
public double getY()double y = 3 [json_name = "y"];
- Specified by:
getY
in interfaceRobot.Orientation.OrientationVectorRadiansOrBuilder
- Returns:
- The y.
-
setY
double y = 3 [json_name = "y"];
- Parameters:
value
- The y to set.- Returns:
- This builder for chaining.
-
clearY
double y = 3 [json_name = "y"];
- Returns:
- This builder for chaining.
-
getZ
public double getZ()double z = 4 [json_name = "z"];
- Specified by:
getZ
in interfaceRobot.Orientation.OrientationVectorRadiansOrBuilder
- Returns:
- The z.
-
setZ
double z = 4 [json_name = "z"];
- Parameters:
value
- The z to set.- Returns:
- This builder for chaining.
-
clearZ
double z = 4 [json_name = "z"];
- Returns:
- This builder for chaining.
-