SwoLib
1.0.0
jvm
SwoLib
/
cshcyberhawks.swolib.field2d
/
Field2d
Field2d
class
Field2d
:
NTSendable
,
AutoCloseable
Members
Constructors
Field2d
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
close
Link copied to clipboard
open
override
fun
close
(
)
get
Object
Link copied to clipboard
@
Synchronized
fun
getObject
(
name
:
String
)
:
FieldObject2d
Get or create a field object.
init
Sendable
Link copied to clipboard
open
override
fun
initSendable
(
builder
:
NTSendableBuilder
)
open
override
fun
initSendable
(
p0
:
SendableBuilder
)
set
Robot
Pose
Link copied to clipboard
@
Synchronized
fun
setRobotPose
(
xMeters
:
Double
,
yMeters
:
Double
,
rotation
:
Rotation2d
?
)
Set the robot pose from x, y, and rotation.
Properties
object
List
Link copied to clipboard
val
objectList
:
MutableList
<
FieldObject2d
>
robot
Object
Link copied to clipboard
@get:
Synchronized
val
robotObject
:
FieldObject2d
robot
Pose
Link copied to clipboard
@get:
Synchronized
@set:
Synchronized
var
robotPose
:
Pose2d