public abstract class NavigationModel
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NavigationModel.NavEvent
Navigation events that are transmitted between the PC and the NXT (and vice versa).
|
Modifier and Type | Field and Description |
---|---|
protected Pose |
currentPose |
protected boolean |
debug |
protected java.io.DataInputStream |
dis |
protected java.io.DataOutputStream |
dos |
protected RangeFeature |
feature |
protected Move |
lastMove |
protected Move |
lastPlannedMove |
protected LineMap |
map |
protected MCLPoseProvider |
mcl |
protected int |
numReadings |
protected java.lang.String |
nxtName |
protected MCLParticleSet |
particles |
protected Path |
path |
protected RangeReadings |
readings |
protected Waypoint |
target |
Constructor and Description |
---|
NavigationModel() |
Modifier and Type | Method and Description |
---|---|
LineMap |
getMap()
Get the registered map
|
MCLParticleSet |
getParticles()
Get the registered particle set
|
Path |
getPath()
Get the registered path
|
RangeReadings |
getReadings()
Get the current range readings
|
Pose |
getRobotPose()
Get the current pose of the robot
|
Waypoint |
getTarget()
Get the target waypoint
|
boolean |
hasMap()
Test is the model has a map registered
|
void |
setDebug(boolean on)
Set debug output on of off
|
void |
setNumReadings(int number)
Set the number of readings for MCL
|
void |
setParticleSet(MCLParticleSet particles)
Set the MCL Particle set
|
void |
setRobotPose(Pose p)
Set the current robot pose
|
void |
setTarget(Waypoint target)
Set the target waypoint that the robot is to go to
|
protected LineMap map
protected java.lang.String nxtName
protected java.io.DataInputStream dis
protected java.io.DataOutputStream dos
protected int numReadings
protected Pose currentPose
protected Waypoint target
protected MCLParticleSet particles
protected MCLPoseProvider mcl
protected RangeReadings readings
protected Path path
protected Move lastMove
protected Move lastPlannedMove
protected RangeFeature feature
protected boolean debug
public boolean hasMap()
public LineMap getMap()
public void setNumReadings(int number)
number
- the number of readingspublic Pose getRobotPose()
public MCLParticleSet getParticles()
public void setRobotPose(Pose p)
p
- the posepublic void setParticleSet(MCLParticleSet particles)
particles
- an MCLParticleSetpublic RangeReadings getReadings()
public void setTarget(Waypoint target)
target
- the target waypointpublic Waypoint getTarget()
public Path getPath()
public void setDebug(boolean on)
on
- true for on, false for off