Revision: 7915
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7915&view=rev
Author:   asadat
Date:     2009-06-27 00:04:46 +0000 (Sat, 27 Jun 2009)

Log Message:
-----------
changed the fiducial data returned by webstage.

Modified Paths:
--------------
    code/stage/trunk/CMakeLists.txt
    code/stage/trunk/webstage/webstage.cc

Modified: code/stage/trunk/CMakeLists.txt
===================================================================
--- code/stage/trunk/CMakeLists.txt     2009-06-27 00:01:32 UTC (rev 7914)
+++ code/stage/trunk/CMakeLists.txt     2009-06-27 00:04:46 UTC (rev 7915)
@@ -69,6 +69,7 @@
 include_directories( 
        ${OPENGL_INCLUDE_DIR}
        ${LTDL_INCLUDE_DIR}
+
 )
 
 # find the easy modules

Modified: code/stage/trunk/webstage/webstage.cc
===================================================================
--- code/stage/trunk/webstage/webstage.cc       2009-06-27 00:01:32 UTC (rev 
7914)
+++ code/stage/trunk/webstage/webstage.cc       2009-06-27 00:04:46 UTC (rev 
7915)
@@ -269,11 +269,14 @@
                         
                         for(unsigned int i=0;i<n;i++){
                                websim::Fiducial fid;
+                               fid.pos.x = fids[i].range*cos(fids[i].bearing);
+                               fid.pos.y = fids[i].range*sin(fids[i].bearing);
                                fid.range = fids[i].range;
                                fid.bearing = fids[i].bearing;
                                fid.id = fids[i].id;
 
                                f.push_back(fid);
+                               //printf("stage: fiducials:%d\n",f.size());
                         }
        
                                                        
@@ -477,7 +480,7 @@
 
 }*/
 
-   virtual bool GetModelExtent(const std::string& name,
+   virtual bool GetModelGeometry(const std::string& name,
                                                                        double& 
x,
                                                                        double& 
y,
                                                                        double& 
z,
@@ -587,7 +590,7 @@
   //printf( "WebStage built on %s %s\n", PROJECT, VERSION );
   
   std::string fedfilename = "";
-  std::string host = "localhost";
+  std::string host = "192.168.1.210";
   unsigned short port = 8000;
   
   int ch=0, optindex=0;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to