public class BatchRangefinder extends ProtocolZero
paramscan, priority
Constructor and Description |
---|
BatchRangefinder(int type,
int distance,
double rot,
double azi,
int width,
int height,
double sample_data_yaw,
double sample_data_pitch,
priority_t priority) |
BatchRangefinder(int type,
int distance,
double rot,
double azi,
int width,
int height,
double sample_data_yaw,
double sample_data_pitch,
priority_t priority,
long period) |
BatchRangefinder(int type,
int distance,
double rot,
double azi,
int width,
int height,
double sample_data_yaw,
double sample_data_pitch,
priority_t priority,
long period,
long delay) |
Modifier and Type | Method and Description |
---|---|
double |
entityDistance(int entityid)
Given entity id, find distance to that entity, if found in the data set.
|
double |
getAzimuthalAngle()
Allows access to parameter.
|
double[][] |
getData()
Returns entire formatted data set.
NOTE: This is very large! |
java.lang.String |
getDatastring() |
int |
getDistance()
Allows access to parameter.
|
int |
getHeight()
Allows access to parameter.
|
double |
getRotationalAngle()
Allows access to parameter.
|
double |
getSampleDataYaw()
Allows access to parameter.
|
double |
getSampleDeltaPitch()
Allows access to parameter.
|
int |
getType()
Allows access to parameter.
|
int |
getWidth()
Allows access to parameter.
|
void |
setData(java.lang.String params)
Sets command response data.
|
protected void |
setOp() |
getPriority, hasTerminated, pause, resume, run, setExecutor, terminate, update
addTerminationListener, compareTo, getDelay, getExitCode, getFrequency, getID, getOp, getPeriod, getRuntime, toDataString, toString, verifyClient, waitForTerminate, whatAmI
public BatchRangefinder(int type, int distance, double rot, double azi, int width, int height, double sample_data_yaw, double sample_data_pitch, priority_t priority)
public BatchRangefinder(int type, int distance, double rot, double azi, int width, int height, double sample_data_yaw, double sample_data_pitch, priority_t priority, long period)
public BatchRangefinder(int type, int distance, double rot, double azi, int width, int height, double sample_data_yaw, double sample_data_pitch, priority_t priority, long period, long delay)
protected void setOp()
setOp
in class ProtocolZero
public double[][] getData()
public double entityDistance(int entityid)
entityid
- Entity to find the distance to.public java.lang.String getDatastring()
public int getType()
public int getDistance()
public int getWidth()
public int getHeight()
public double getRotationalAngle()
public double getAzimuthalAngle()
public double getSampleDataYaw()
public double getSampleDeltaPitch()
public void setData(java.lang.String params)
ProtocolZero
setData
in class ProtocolZero
params
- Data string. For all "data" messages it is identified by the form: