laserscan Class Reference

List of all members.

Detailed Description

Laser scan class.


Public Member Functions

 laserscan (int n=MAX_N_SCAN_POINTS)
 Constructor.
 ~laserscan ()
 Destructor.
int copy (const laserscan &rhs)
 Copy method that assumes identical object sizes.
int initialize ()
 Initialize laserscan object.
void dummy_init_from_parameters (double maxr, double mina, double reso, double fov)
 Dummy-init method to avoid presence of real sensor.
void set_name (char *name)
 Set scan name.
char * get_name ()
 Get scan name.
void set_timestamp (double t)
 Set scan timestamp.
double get_timestamp () const
 Get scan timestamp.
int is_initialized () const
 Test if scan object is initialized.
int is_listening () const
 Test streaming scans is enabled.
int get_scan (int freq, carmen_laser_laser_message *laser) const
 Get and copy scan.
int get_len () const
 Get scan length (= number of points).
int get_freq () const
 Get IPC-await-frequency.
int get_sensor_config (double &min_a, double &a_reso, double &a_fov, double &max_r) const
 Get sensor configuration: min_angle, angular_reso, angular_fov, max_range.
int set_reading (int i, double phi, double rho, double x, double y, double rem)
 Set reading i.
int get_reading (int i, double &phi, double &rho, double &x, double &y, double &rem) const
 Get reading i.
void get_data_polar (double *&phi, double *&rho) const
 Get pointer to polar-data vector.
void get_data_cart (double *&x, double *&y) const
 Get pointer to x,y-data vector.
int mark_reading (int i, int id)
 Mark reading i with value id.
void get_markings (int *&m) const
 Get pointer to vector of markings.
void start_acquisition ()
 Start streaming of scans.
void stop_acquisition ()
 Stop streaming of scans.
void print ()
 Print scan object with current data to shell.

Private Attributes

char * name
 Name of the scan.
double timestamp
 Scan timestamp.
int initialized
 Flag indicating of scan object is initialized.
int listening
 Flag indicating of scan object is listening over IPC.
int len
 Scan lenght, i.e. number of range readings.
double min_angle
 Minimal angle in scan.
double angular_reso
 Angular scan resolution.
double angular_fov
 Angular field of view.
double max_range
 Maximal range value.
double * phi
 scan data: array of phi values (polar coordinates)
double * rho
 scan data: array of rho values (polar coordinates)
double * x
 scan data: array of x values (Cartesian coordinates)
double * y
 scan data: array of y values (Cartesian coordinates)
double * rem
 scan data: array of reminiscence values (i.e. signal strength). Must be enabled in driver.
int * mark
 array of integers for each reading, used for marking a reading


Generated on Mon Oct 23 14:09:18 2006 for Tracky by  doxygen 1.4.6