Class ProtobufTrajectoryState
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
org.wpilib.math.proto.ProtobufTrajectoryState
- All Implemented Interfaces:
Cloneable
public final class ProtobufTrajectoryState
extends us.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
implements Cloneable
Protobuf type
ProtobufTrajectoryState-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional double acceleration = 3;optional double curvature = 5;optional .wpi.proto.ProtobufPose2d pose = 4;optional double time = 1;optional double velocity = 2;clone()protected intcopyFrom(ProtobufTrajectoryState other) booleandoubleoptional double acceleration = 3;doubleoptional double curvature = 5;static us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufTrajectoryState> optional .wpi.proto.ProtobufPose2d pose = 4;This method returns the internal storage object and sets the corresponding has state.getPose()optional .wpi.proto.ProtobufPose2d pose = 4;This method returns the internal storage object without modifying any has state.doublegetTime()optional double time = 1;doubleoptional double velocity = 2;booleanoptional double acceleration = 3;booleanoptional double curvature = 5;booleanhasPose()optional .wpi.proto.ProtobufPose2d pose = 4;booleanhasTime()optional double time = 1;booleanoptional double velocity = 2;booleanisEmpty()mergeFrom(ProtobufTrajectoryState other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufTrajectoryStatestatic ProtobufTrajectoryStateparseFrom(byte[] data) static ProtobufTrajectoryStateparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufTrajectoryStateparseFrom(us.hebi.quickbuf.ProtoSource input) setAcceleration(double value) optional double acceleration = 3;setCurvature(double value) optional double curvature = 5;setPose(ProtobufPose2d value) optional .wpi.proto.ProtobufPose2d pose = 4;setTime(double value) optional double time = 1;setVelocity(double value) optional double velocity = 2;voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(us.hebi.quickbuf.ProtoSink output) Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufTrajectoryState
-
hasTime
-
clearTime
-
getTime
-
setTime
optional double time = 1;- Parameters:
value- the time to set- Returns:
- this
-
hasVelocity
optional double velocity = 2;- Returns:
- whether the velocity field is set
-
clearVelocity
-
getVelocity
-
setVelocity
optional double velocity = 2;- Parameters:
value- the velocity to set- Returns:
- this
-
hasAcceleration
optional double acceleration = 3;- Returns:
- whether the acceleration field is set
-
clearAcceleration
-
getAcceleration
-
setAcceleration
optional double acceleration = 3;- Parameters:
value- the acceleration to set- Returns:
- this
-
hasCurvature
optional double curvature = 5;- Returns:
- whether the curvature field is set
-
clearCurvature
-
getCurvature
-
setCurvature
optional double curvature = 5;- Parameters:
value- the curvature to set- Returns:
- this
-
hasPose
optional .wpi.proto.ProtobufPose2d pose = 4;- Returns:
- whether the pose field is set
-
clearPose
optional .wpi.proto.ProtobufPose2d pose = 4;- Returns:
- this
-
getPose
optional .wpi.proto.ProtobufPose2d pose = 4;This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutablePose()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutablePose
optional .wpi.proto.ProtobufPose2d pose = 4;This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
setPose
optional .wpi.proto.ProtobufPose2d pose = 4;- Parameters:
value- the pose to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectoryState>
-
parseFrom
public static ProtobufTrajectoryState parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufTrajectoryState parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufTrajectoryState parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTrajectoryState messages
-
getDescriptor
- Returns:
- this type's descriptor.
-