Class MecanumDriveKinematicsStruct
java.lang.Object
edu.wpi.first.math.kinematics.struct.MecanumDriveKinematicsStruct
- All Implemented Interfaces:
Struct<MecanumDriveKinematics>
public class MecanumDriveKinematicsStruct extends Object implements Struct<MecanumDriveKinematics>
-
Field Summary
Fields inherited from interface edu.wpi.first.util.struct.Struct
kSizeBool, kSizeDouble, kSizeFloat, kSizeInt16, kSizeInt32, kSizeInt64, kSizeInt8
-
Constructor Summary
Constructors Constructor Description MecanumDriveKinematicsStruct()
-
Method Summary
Modifier and Type Method Description Struct<?>[]
getNested()
Gets the list of struct types referenced by this struct.String
getSchema()
Gets the schema.int
getSize()
Gets the serialized size (in bytes).Class<MecanumDriveKinematics>
getTypeClass()
Gets the Class object for the stored value.String
getTypeString()
Gets the type string (e.g.void
pack(ByteBuffer bb, MecanumDriveKinematics value)
Puts object contents to a ByteBuffer starting at the current position.MecanumDriveKinematics
unpack(ByteBuffer bb)
Deserializes an object from a raw struct serialized ByteBuffer starting at the current position.
-
Constructor Details
-
Method Details
-
getTypeClass
Description copied from interface:Struct
Gets the Class object for the stored value.- Specified by:
getTypeClass
in interfaceStruct<MecanumDriveKinematics>
- Returns:
- Class
-
getTypeString
Description copied from interface:Struct
Gets the type string (e.g. for NetworkTables). This should be globally unique and start with "struct:".- Specified by:
getTypeString
in interfaceStruct<MecanumDriveKinematics>
- Returns:
- type string
-
getSize
Description copied from interface:Struct
Gets the serialized size (in bytes). This should always be a constant.- Specified by:
getSize
in interfaceStruct<MecanumDriveKinematics>
- Returns:
- serialized size
-
getSchema
Description copied from interface:Struct
Gets the schema.- Specified by:
getSchema
in interfaceStruct<MecanumDriveKinematics>
- Returns:
- schema
-
getNested
Description copied from interface:Struct
Gets the list of struct types referenced by this struct.- Specified by:
getNested
in interfaceStruct<MecanumDriveKinematics>
- Returns:
- list of struct types
-
unpack
Description copied from interface:Struct
Deserializes an object from a raw struct serialized ByteBuffer starting at the current position. Will increment the ByteBuffer position by getStructSize() bytes. Will not otherwise modify the ByteBuffer (e.g. byte order will not be changed).- Specified by:
unpack
in interfaceStruct<MecanumDriveKinematics>
- Parameters:
bb
- ByteBuffer- Returns:
- New object
-
pack
Description copied from interface:Struct
Puts object contents to a ByteBuffer starting at the current position. Will increment the ByteBuffer position by getStructSize() bytes. Will not otherwise modify the ByteBuffer (e.g. byte order will not be changed).- Specified by:
pack
in interfaceStruct<MecanumDriveKinematics>
- Parameters:
bb
- ByteBuffervalue
- object to serialize
-