Package viam.app.v1
Class Robot.Orientation.AxisAngles.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.Orientation.AxisAngles,Robot.Orientation.AxisAngles.Builder>
viam.app.v1.Robot.Orientation.AxisAngles.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Robot.Orientation.AxisAnglesOrBuilder
- Enclosing class:
- Robot.Orientation.AxisAngles
public static final class Robot.Orientation.AxisAngles.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.Orientation.AxisAngles,Robot.Orientation.AxisAngles.Builder>
implements Robot.Orientation.AxisAnglesOrBuilder
See here for a thorough explanation: https://en.wikipedia.org/wiki/Axis%E2%80%93angle_representation Basic explanation: Imagine a 3d cartesian grid centered at 0,0,0, and a sphere of radius 1 centered at that same point. An orientation can be expressed by first specifying an axis, i.e. a line from the origin to a point on that sphere, represented by (rx, ry, rz), and a rotation around that axis, theta. These four numbers can be used as-is (R4), or they can be converted to R3, where theta is multiplied by each of the unit sphere components to give a vector whose length is theta and whose direction is the original axis. AxisAngles represents an R4 axis angle.Protobuf type
viam.app.v1.Orientation.AxisAngles
-
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.AxisAnglesOrBuilder
- 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.AxisAnglesOrBuilder
- 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.AxisAnglesOrBuilder
- 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.AxisAnglesOrBuilder
- 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.
-