9 #define LINEBUFFER_SIZE 100000
19 for (iterator it=begin(); it!=end(); it++)
20 if (*it)
delete (*it);
24 for (iterator it=begin(); it!=end(); it++)
25 if (*it)
delete (*it);
31 istringstream lis(buf);
42 SensorMap::const_iterator it=
m_sensorMap.find(sensorname);
80 string laser_type, start_angle, field_of_view, angular_resolution, maximum_range, accuracy, remission_mode;
81 is >> laser_type>> start_angle>> field_of_view>> angular_resolution>> maximum_range>> accuracy >> remission_mode;
86 assert(size==rs->
beams().size());
90 reading->resize(size);
91 for (
unsigned int i=0; i<size; i++){
96 is >> reflectionBeams;
98 for (
int i=0; i<reflectionBeams; i++)
103 is >> laserPose.
x >> laserPose.
y >> laserPose.
theta;
109 string laser_tv, laser_rv, forward_safety_dist, side_safty_dist, turn_axis;
110 is >> laser_tv >> laser_rv >> forward_safety_dist >> side_safty_dist >> turn_axis;
126 for (const_iterator it=begin(); it!=end(); it++){
127 double lxmin=0., lxmax=0., lymin=0., lymax=0.;
137 lxmin=lxmax=rangeReading->
getPose().
x;
138 lymin=lymax=rangeReading->
getPose().
y;
144 xmin=xmin<lxmin?xmin:lxmin;
145 xmax=xmax>lxmax?xmax:lxmax;
146 ymin=ymin<lymin?lymin:lymin;
147 ymax=ymax>lymax?ymax:lymax;