Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4924
Modified Files:
Makefile.am playerc++.h
Log Message:
Added pointcloud3d proxy to libplayerc++
Index: playerc++.h
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerc++.h,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** playerc++.h 18 Dec 2006 12:17:58 -0000 1.78
--- playerc++.h 2 Feb 2007 14:32:56 -0000 1.79
***************
*** 1574,1577 ****
--- 1574,1611 ----
/**
+ The Pointcloud3d proxy provides an interface to a pointcloud3d device.
+ */
+ class Pointcloud3dProxy : public ClientProxy
+ {
+ private:
+
+ void Subscribe(uint aIndex);
+ void Unsubscribe();
+
+ // libplayerc data structure
+ playerc_pointcloud3d_t *mDevice;
+
+ public:
+ /// constructor
+ Pointcloud3dProxy(PlayerClient *aPc, uint aIndex=0);
+
+ /// destructor
+ ~Pointcloud3dProxy();
+
+ /// return the point count
+ uint GetCount() const { return GetVar(mDevice->points_count); };
+
+ /// return a particular scan value
+ player_pointcloud3d_element_t GetPoint(uint aIndex) const
+ { return GetVar(mDevice->points[aIndex]); };
+
+ /// This operator provides an alternate way of access the scan data.
+ /// For example, SonarProxy[0] == SonarProxy.GetRange(0)
+ player_pointcloud3d_element_t operator [] (uint aIndex) const { return
GetPoint(aIndex); }
+
+ };
+
+
+ /**
The @p Position1dProxy class is used to control a @ref
interface_position1d device. The latest position data is contained
Index: Makefile.am
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/Makefile.am,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** Makefile.am 19 Oct 2006 13:39:13 -0000 1.43
--- Makefile.am 2 Feb 2007 14:32:56 -0000 1.44
***************
*** 51,54 ****
--- 51,55 ----
opaqueproxy.cc \
plannerproxy.cc \
+
pointcloud3d.cc \
position1dproxy.cc \
position2dproxy.cc \
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit