Package edu.wpi.first.math.proto
Class Geometry2D.ProtobufTwist2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
edu.wpi.first.math.proto.Geometry2D.ProtobufTwist2d
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry2D
public static final class Geometry2D.ProtobufTwist2d extends us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d> implements Cloneable
Protobuf type
ProtobufTwist2d
-
Field Summary
-
Method Summary
Modifier and Type Method Description Geometry2D.ProtobufTwist2d
clear()
Geometry2D.ProtobufTwist2d
clearDtheta()
optional double dtheta = 3;
Geometry2D.ProtobufTwist2d
clearDx()
optional double dx = 1;
Geometry2D.ProtobufTwist2d
clearDy()
optional double dy = 2;
Geometry2D.ProtobufTwist2d
clearQuick()
Geometry2D.ProtobufTwist2d
clone()
protected int
computeSerializedSize()
Geometry2D.ProtobufTwist2d
copyFrom(Geometry2D.ProtobufTwist2d other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
double
getDtheta()
optional double dtheta = 3;
double
getDx()
optional double dx = 1;
double
getDy()
optional double dy = 2;
static us.hebi.quickbuf.MessageFactory<Geometry2D.ProtobufTwist2d>
getFactory()
boolean
hasDtheta()
optional double dtheta = 3;
boolean
hasDx()
optional double dx = 1;
boolean
hasDy()
optional double dy = 2;
boolean
isEmpty()
Geometry2D.ProtobufTwist2d
mergeFrom(Geometry2D.ProtobufTwist2d other)
Geometry2D.ProtobufTwist2d
mergeFrom(us.hebi.quickbuf.JsonSource input)
Geometry2D.ProtobufTwist2d
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Geometry2D.ProtobufTwist2d
newInstance()
static Geometry2D.ProtobufTwist2d
parseFrom(byte[] data)
static Geometry2D.ProtobufTwist2d
parseFrom(us.hebi.quickbuf.JsonSource input)
static Geometry2D.ProtobufTwist2d
parseFrom(us.hebi.quickbuf.ProtoSource input)
Geometry2D.ProtobufTwist2d
setDtheta(double value)
optional double dtheta = 3;
Geometry2D.ProtobufTwist2d
setDx(double value)
optional double dx = 1;
Geometry2D.ProtobufTwist2d
setDy(double value)
optional double dy = 2;
void
writeTo(us.hebi.quickbuf.JsonSink output)
void
writeTo(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
ProtobufTwist2d
-
hasDx
optional double dx = 1;
- Returns:
- whether the dx field is set
-
clearDx
optional double dx = 1;
- Returns:
- this
-
getDx
optional double dx = 1;
- Returns:
- the dx
-
setDx
optional double dx = 1;
- Parameters:
value
- the dx to set- Returns:
- this
-
hasDy
optional double dy = 2;
- Returns:
- whether the dy field is set
-
clearDy
optional double dy = 2;
- Returns:
- this
-
getDy
optional double dy = 2;
- Returns:
- the dy
-
setDy
optional double dy = 2;
- Parameters:
value
- the dy to set- Returns:
- this
-
hasDtheta
optional double dtheta = 3;
- Returns:
- whether the dtheta field is set
-
clearDtheta
optional double dtheta = 3;
- Returns:
- this
-
getDtheta
optional double dtheta = 3;
- Returns:
- the dtheta
-
setDtheta
optional double dtheta = 3;
- Parameters:
value
- the dtheta to set- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
mergeFrom
- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTwist2d>
-
parseFrom
public static Geometry2D.ProtobufTwist2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry2D.ProtobufTwist2d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Geometry2D.ProtobufTwist2d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTwist2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-