Fawkes API
Fawkes Development Version
|
24 #ifndef _FIREVISION_SCANLINE_GRID_H_
25 #define _FIREVISION_SCANLINE_GRID_H_
27 #include <fvmodels/scanlines/scanlinemodel.h>
28 #include <fvutils/base/roi.h>
29 #include <fvutils/base/types.h>
31 namespace firevision {
33 class ScanlineGrid :
public ScanlineModel
38 unsigned int offset_x,
39 unsigned int offset_y,
41 bool horizontal_grid =
true);
58 void setDimensions(
unsigned int width,
unsigned int height,
ROI *roi = NULL);
59 void setOffset(
unsigned int offset_x,
unsigned int offset_y);
62 unsigned int offset_x,
63 unsigned int offset_y,
65 bool horizontal_grid =
true);
70 unsigned int offset_x;
71 unsigned int offset_y;
81 void calc_next_coord();
virtual ~ScanlineGrid()
Destructor.
ScanlineGrid(unsigned int width, unsigned int height, unsigned int offset_x, unsigned int offset_y, ROI *roi=NULL, bool horizontal_grid=true)
Constructor.
Point with cartesian coordinates as unsigned integers.
fawkes::upoint_t operator*()
Get the current coordinate.
virtual void set_robot_pose(float x, float y, float ori)
Set the robot's pose.
void setDimensions(unsigned int width, unsigned int height, ROI *roi=NULL)
Set dimensions.
void setOffset(unsigned int offset_x, unsigned int offset_y)
Set offset.
void setGridParams(unsigned int width, unsigned int height, unsigned int offset_x, unsigned int offset_y, ROI *roi=NULL, bool horizontal_grid=true)
Set all grid parameters.
unsigned int get_margin()
Get margin around points.
fawkes::upoint_t * operator->()
Get pointer to current point.
fawkes::upoint_t * operator++()
Postfix ++ operator.
virtual void set_pan_tilt(float pan, float tilt)
Set camera's pan/tilt values.
const char * get_name()
Get name of scanline model.
bool finished()
Check if all desired points have been processed.
virtual void set_roi(ROI *roi=NULL)
Set the region-of-interest.