|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SensorLaser
public class SensorLaser
Sensor message representative for Laser sensor.
| Field Summary | |
|---|---|
static SensorType |
type
|
| Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor |
|---|
lastMessage, sensorType |
| Constructor Summary | |
|---|---|
SensorLaser()
Ctor. |
|
| Method Summary | |
|---|---|
ClosestObstacle |
getClosestObstacleCourse()
Devides Laser ranges in half and sums both halves. |
double |
getClosestObstacleDistance()
Iterates through Laser ranges and returns the min value. |
double |
getFOV()
FOV is the sensor’s field of view in radians. |
DriveDirection |
getMostOpenDirection(int backwardsTreshold)
Devides Laser ranges to thirds and sums up each third. |
double |
getNMidAvg(int numOfRays)
Computes avarage value from set of double values obtained from sector of Laser ranges from the middle of the list. |
double |
getNMidAvg(int numOfRays,
int offset)
Computes avarage value from set of double values obtained from sector of Laser ranges defined by numOfRays(count) and offset. |
double |
getRangeAt(int index)
LaserRanges is a series of range values in meters. |
List<Double> |
getRanges()
LaserRanges is a series of range values in meters. |
int |
getRangesSize()
Returns size of Laser range list. |
double |
getResolution()
It is the sensor’s resolution in radians. |
| Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor |
|---|
getName, getSensorType, getTime, getType, isReady, updateMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SensorType type
| Constructor Detail |
|---|
public SensorLaser()
| Method Detail |
|---|
public ClosestObstacle getClosestObstacleCourse()
public double getClosestObstacleDistance()
public DriveDirection getMostOpenDirection(int backwardsTreshold)
backwardsTreshold - If range in front is smaller than this value it
is clear there is wall in front of the robot. Therefore it Returns
Backwards.
public double getResolution()
public double getFOV()
public double getRangeAt(int index)
index -
public int getRangesSize()
public List<Double> getRanges()
public double getNMidAvg(int numOfRays)
numOfRays - Number of records around the middle one to compute the
avarage distance from.
public double getNMidAvg(int numOfRays,
int offset)
numOfRays - Number of records around the middle one to compute the
avarage distance from.offset - Number of rays to skip before computing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||