Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25697/libplayerc++
Modified Files:
laserproxy.cc playerc++.h
Log Message:
fixed typo, added specific option to get Conf min and max angles, as oppsed to
those
reported in the last scan
Index: laserproxy.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/laserproxy.cc,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** laserproxy.cc 13 Feb 2007 23:40:37 -0000 1.10
--- laserproxy.cc 30 Apr 2007 23:52:12 -0000 1.11
***************
*** 82,86 ****
if (0 != playerc_laser_set_config(mDevice, min_angle, max_angle,
scan_res, range_res,
intensity?1:0,aScanningFrequency))
! throw PlayerError("LaserProxy::RequestConfigure()", "error getting
config");
}
--- 82,86 ----
if (0 != playerc_laser_set_config(mDevice, min_angle, max_angle,
scan_res, range_res,
intensity?1:0,aScanningFrequency))
! throw PlayerError("LaserProxy::Configure()", "error setting config");
}
Index: playerc++.h
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerc++.h,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -d -r1.85 -r1.86
*** playerc++.h 30 Apr 2007 22:02:57 -0000 1.85
--- playerc++.h 30 Apr 2007 23:52:12 -0000 1.86
***************
*** 1089,1092 ****
--- 1089,1097 ----
};
+ /// Scan range from the laser config (call RequestConfigure first)
(radians)
+ double GetConfMinAngle() const { return min_angle; };
+ /// Scan range from the laser config (call RequestConfigure first)
(radians)
+ double GetConfMaxAngle() const { return max_angle; };
+
/// Whether or not reflectance (i.e., intensity) values are being
returned.
bool IntensityOn() const { return GetVar(mDevice->intensity_on); };
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit