Package viam.app.v1
Class Robot.Orientation.AxisAngles
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Robot.Orientation.AxisAngles,Robot.Orientation.AxisAngles.Builder>
viam.app.v1.Robot.Orientation.AxisAngles
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Robot.Orientation.AxisAnglesOrBuilder
- Enclosing class:
- Robot.Orientation
public static final class Robot.Orientation.AxisAngles
extends com.google.protobuf.GeneratedMessageLite<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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
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.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Robot.Orientation.AxisAngles
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"];
newBuilder
(Robot.Orientation.AxisAngles prototype) static Robot.Orientation.AxisAngles
parseDelimitedFrom
(InputStream input) static Robot.Orientation.AxisAngles
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.Orientation.AxisAngles
parseFrom
(byte[] data) static Robot.Orientation.AxisAngles
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.Orientation.AxisAngles
parseFrom
(com.google.protobuf.ByteString data) static Robot.Orientation.AxisAngles
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.Orientation.AxisAngles
parseFrom
(com.google.protobuf.CodedInputStream input) static Robot.Orientation.AxisAngles
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.Orientation.AxisAngles
parseFrom
(InputStream input) static Robot.Orientation.AxisAngles
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.Orientation.AxisAngles
parseFrom
(ByteBuffer data) static Robot.Orientation.AxisAngles
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Robot.Orientation.AxisAngles>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
THETA_FIELD_NUMBER
public static final int THETA_FIELD_NUMBER- See Also:
-
X_FIELD_NUMBER
public static final int X_FIELD_NUMBER- See Also:
-
Y_FIELD_NUMBER
public static final int Y_FIELD_NUMBER- See Also:
-
Z_FIELD_NUMBER
public static final int Z_FIELD_NUMBER- See Also:
-
-
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.
-
getX
public double getX()double x = 2 [json_name = "x"];
- Specified by:
getX
in interfaceRobot.Orientation.AxisAnglesOrBuilder
- Returns:
- The x.
-
getY
public double getY()double y = 3 [json_name = "y"];
- Specified by:
getY
in interfaceRobot.Orientation.AxisAnglesOrBuilder
- Returns:
- The y.
-
getZ
public double getZ()double z = 4 [json_name = "z"];
- Specified by:
getZ
in interfaceRobot.Orientation.AxisAnglesOrBuilder
- Returns:
- The z.
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Robot.Orientation.AxisAngles parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.Orientation.AxisAngles parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static Robot.Orientation.AxisAngles.Builder newBuilder(Robot.Orientation.AxisAngles prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Robot.Orientation.AxisAngles,
Robot.Orientation.AxisAngles.Builder>
-
getDefaultInstance
-
parser
-