public class TrajectoryRealTime extends Object
Modifier and Type | Field and Description |
---|---|
static TrajectoryRealTime |
instance |
(package private) TrajectoryPlanner |
tp |
Constructor and Description |
---|
TrajectoryRealTime() |
Modifier and Type | Method and Description |
---|---|
static TrajectoryRealTime |
getInstance()
Returns the instance of this class.
|
String |
getMoveName()
Gets name of the next lowskill move in the trajectory and removes it from the queue.
|
TrajectoryPlanner |
getTrajectoryPlanner()
Returns TrajectoryPlanner object.
|
String |
peekName()
Gets name of the next lowskill move in the trajectory leaving it in queue.
|
void |
plan(double x,
double y,
double z,
double finalRot)
Plans trajectory using position in form of coordinates.
|
void |
plan(Vector3D finalPos,
double finalRot)
Plans trajectory using position in form of the vector.
|
private void |
setTrajectory(Vector3D finalPos,
double finalRot)
Gets information about actual agent position and rotation, about the obstacles in form of other players
and calls TrajectoryPlanner constructor.
|
TrajectoryPlanner tp
public static TrajectoryRealTime instance
public void plan(Vector3D finalPos, double finalRot)
final
- position of agentfinal
- rotation of agentpublic void plan(double x, double y, double z, double finalRot)
x-axis
- coordinatey-axis
- coordinatez-axis
- coordinatefinalRot
- private void setTrajectory(Vector3D finalPos, double finalRot)
finalPos
- finalRot
- public TrajectoryPlanner getTrajectoryPlanner()
public String getMoveName()
public String peekName()
public static TrajectoryRealTime getInstance()