Package edu.wpi.first.math.proto
Class Kinematics.ProtobufMecanumDriveKinematics
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
edu.wpi.first.math.proto.Kinematics.ProtobufMecanumDriveKinematics
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Kinematics
public static final class Kinematics.ProtobufMecanumDriveKinematics extends us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics> implements Cloneable
Protobuf type
ProtobufMecanumDriveKinematics
-
Field Summary
-
Method Summary
Modifier and Type Method Description Kinematics.ProtobufMecanumDriveKinematics
clear()
Kinematics.ProtobufMecanumDriveKinematics
clearFrontLeft()
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
Kinematics.ProtobufMecanumDriveKinematics
clearFrontRight()
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
Kinematics.ProtobufMecanumDriveKinematics
clearQuick()
Kinematics.ProtobufMecanumDriveKinematics
clearRearLeft()
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
Kinematics.ProtobufMecanumDriveKinematics
clearRearRight()
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
Kinematics.ProtobufMecanumDriveKinematics
clone()
protected int
computeSerializedSize()
Kinematics.ProtobufMecanumDriveKinematics
copyFrom(Kinematics.ProtobufMecanumDriveKinematics other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufMecanumDriveKinematics>
getFactory()
Geometry2D.ProtobufTranslation2d
getFrontLeft()
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
This method returns the internal storage object without modifying any has state.Geometry2D.ProtobufTranslation2d
getFrontRight()
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
This method returns the internal storage object without modifying any has state.Geometry2D.ProtobufTranslation2d
getMutableFrontLeft()
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
This method returns the internal storage object and sets the corresponding has state.Geometry2D.ProtobufTranslation2d
getMutableFrontRight()
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
This method returns the internal storage object and sets the corresponding has state.Geometry2D.ProtobufTranslation2d
getMutableRearLeft()
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
This method returns the internal storage object and sets the corresponding has state.Geometry2D.ProtobufTranslation2d
getMutableRearRight()
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
This method returns the internal storage object and sets the corresponding has state.Geometry2D.ProtobufTranslation2d
getRearLeft()
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
This method returns the internal storage object without modifying any has state.Geometry2D.ProtobufTranslation2d
getRearRight()
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
This method returns the internal storage object without modifying any has state.boolean
hasFrontLeft()
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
boolean
hasFrontRight()
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
boolean
hasRearLeft()
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
boolean
hasRearRight()
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
boolean
isEmpty()
Kinematics.ProtobufMecanumDriveKinematics
mergeFrom(Kinematics.ProtobufMecanumDriveKinematics other)
Kinematics.ProtobufMecanumDriveKinematics
mergeFrom(us.hebi.quickbuf.JsonSource input)
Kinematics.ProtobufMecanumDriveKinematics
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Kinematics.ProtobufMecanumDriveKinematics
newInstance()
static Kinematics.ProtobufMecanumDriveKinematics
parseFrom(byte[] data)
static Kinematics.ProtobufMecanumDriveKinematics
parseFrom(us.hebi.quickbuf.JsonSource input)
static Kinematics.ProtobufMecanumDriveKinematics
parseFrom(us.hebi.quickbuf.ProtoSource input)
Kinematics.ProtobufMecanumDriveKinematics
setFrontLeft(Geometry2D.ProtobufTranslation2d value)
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
Kinematics.ProtobufMecanumDriveKinematics
setFrontRight(Geometry2D.ProtobufTranslation2d value)
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
Kinematics.ProtobufMecanumDriveKinematics
setRearLeft(Geometry2D.ProtobufTranslation2d value)
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
Kinematics.ProtobufMecanumDriveKinematics
setRearRight(Geometry2D.ProtobufTranslation2d value)
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
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
ProtobufMecanumDriveKinematics
-
hasFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
- Returns:
- whether the frontLeft field is set
-
clearFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
- Returns:
- this
-
getFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
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. UsegetMutableFrontLeft()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 1;
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
-
setFrontLeft
public Kinematics.ProtobufMecanumDriveKinematics setFrontLeft(Geometry2D.ProtobufTranslation2d value)optional .wpi.proto.ProtobufTranslation2d front_left = 1;
- Parameters:
value
- the frontLeft to set- Returns:
- this
-
hasFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
- Returns:
- whether the frontRight field is set
-
clearFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
- Returns:
- this
-
getFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
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. UsegetMutableFrontRight()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 2;
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
-
setFrontRight
public Kinematics.ProtobufMecanumDriveKinematics setFrontRight(Geometry2D.ProtobufTranslation2d value)optional .wpi.proto.ProtobufTranslation2d front_right = 2;
- Parameters:
value
- the frontRight to set- Returns:
- this
-
hasRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
- Returns:
- whether the rearLeft field is set
-
clearRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
- Returns:
- this
-
getRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
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. UsegetMutableRearLeft()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
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
-
setRearLeft
public Kinematics.ProtobufMecanumDriveKinematics setRearLeft(Geometry2D.ProtobufTranslation2d value)optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
- Parameters:
value
- the rearLeft to set- Returns:
- this
-
hasRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
- Returns:
- whether the rearRight field is set
-
clearRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
- Returns:
- this
-
getRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 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. UsegetMutableRearRight()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 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
-
setRearRight
public Kinematics.ProtobufMecanumDriveKinematics setRearRight(Geometry2D.ProtobufTranslation2d value)optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
- Parameters:
value
- the rearRight to set- Returns:
- this
-
copyFrom
public Kinematics.ProtobufMecanumDriveKinematics copyFrom(Kinematics.ProtobufMecanumDriveKinematics other)- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
mergeFrom
public Kinematics.ProtobufMecanumDriveKinematics mergeFrom(Kinematics.ProtobufMecanumDriveKinematics other)- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
mergeFrom
public Kinematics.ProtobufMecanumDriveKinematics mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
- Throws:
IOException
-
mergeFrom
public Kinematics.ProtobufMecanumDriveKinematics mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufMecanumDriveKinematics>
-
parseFrom
public static Kinematics.ProtobufMecanumDriveKinematics parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Kinematics.ProtobufMecanumDriveKinematics parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Kinematics.ProtobufMecanumDriveKinematics parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
public static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufMecanumDriveKinematics> getFactory()- Returns:
- factory for creating ProtobufMecanumDriveKinematics messages
-
getDescriptor
- Returns:
- this type's descriptor.
-