Class MechanismRoot2d
java.lang.Object
edu.wpi.first.wpilibj.smartdashboard.MechanismObject2d
edu.wpi.first.wpilibj.smartdashboard.MechanismRoot2d
- All Implemented Interfaces:
AutoCloseable
Root Mechanism2d node.
A root is the anchor point of other nodes (such as ligaments).
Do not create objects of this class directly! Obtain instances from the Mechanism2d.getRoot(String, double, double) factory method.
Append other nodes by using MechanismObject2d.append(MechanismObject2d).
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetPosition(double x, double y) Set the root's position.protected voidupdateEntries(NetworkTable table) Update this object's entries with new ones from a new table.Methods inherited from class edu.wpi.first.wpilibj.smartdashboard.MechanismObject2d
append, getName
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classMechanismObject2d
-
setPosition
Set the root's position.- Parameters:
x- new x coordinatey- new y coordinate
-
updateEntries
Description copied from class:MechanismObject2dUpdate this object's entries with new ones from a new table.- Specified by:
updateEntriesin classMechanismObject2d- Parameters:
table- the new table.
-