Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8151/libplayerc++

Modified Files:
        playerc++.h simulationproxy.cc 
Log Message:
Added ability to get a property from the simulation interface

Index: playerc++.h
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerc++.h,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -d -r1.83 -r1.84
*** playerc++.h 14 Mar 2007 16:41:51 -0000      1.83
--- playerc++.h 20 Apr 2007 00:59:48 -0000      1.84
***************
*** 2196,2199 ****
--- 2196,2202 ----
      void GetPose3d(char* identifier, double& x, double& y, double& z,
                     double& roll, double& pitch, double& yaw, double& time);
+ 
+     /// Get a simulation property 
+     void GetProperty(char* identifier, char *name, void *value, size_t 
value_len );
  };
  

Index: simulationproxy.cc
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/client_libs/libplayerc++/simulationproxy.cc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** simulationproxy.cc  21 Nov 2006 02:12:34 -0000      1.6
--- simulationproxy.cc  20 Apr 2007 00:59:48 -0000      1.7
***************
*** 95,97 ****
    scoped_lock_t lock(mPc->mMutex);
    playerc_simulation_get_pose3d(mDevice,identifier, 
&x,&y,&z,&roll,&pitch,&yaw,&time);
! }
\ No newline at end of file
--- 95,104 ----
    scoped_lock_t lock(mPc->mMutex);
    playerc_simulation_get_pose3d(mDevice,identifier, 
&x,&y,&z,&roll,&pitch,&yaw,&time);
! }
! 
! void SimulationProxy::GetProperty(char* identifier, char *name, void *value, 
size_t value_len )
! {
!   scoped_lock_t lock(mPc->mMutex);
!   playerc_simulation_get_property(mDevice, identifier, name, value, 
value_len);
! }
! 


-------------------------------------------------------------------------
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

Reply via email to