Update of /cvsroot/playerstage/code/player/server/drivers/localization
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv526

Modified Files:
        fakelocalize.cc 
Log Message:
cleanups for fakelocalise and added missing stop thread


Index: fakelocalize.cc
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/server/drivers/localization/fakelocalize.cc,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** fakelocalize.cc     24 Oct 2007 22:32:04 -0000      1.14
--- fakelocalize.cc     31 Oct 2007 01:37:28 -0000      1.15
***************
*** 198,210 ****
    }
  
- 
- /*  if(this->UpdateData() < 0)
-   {
-     PLAYER_ERROR("unable to get pose from simulation device");
-     this->sim->Unsubscribe(this->InQueue);
-       sim = NULL;
- //    UnsubscribeInternal(this->sim_id);
-     return(-1);
-   }*/
    this->StartThread();
    return 0;
--- 198,201 ----
***************
*** 216,223 ****
  int FakeLocalize::Shutdown()
  {
    // Unsubscribe from devices.
    this->sim->Unsubscribe(this->InQueue);
    sim = NULL;
-   //UnsubscribeInternal(this->sim_id);
    
    return 0;
--- 207,214 ----
  int FakeLocalize::Shutdown()
  {
+   this->StopThread();
    // Unsubscribe from devices.
    this->sim->Unsubscribe(this->InQueue);
    sim = NULL;
    
    return 0;
***************
*** 229,235 ****
    player_localize_data_t loc_data;
    player_simulation_pose2d_req_t cfg;
- //  int replen;
- //  unsigned short reptype;
- //  struct timeval ts;
    
    // Request pose
--- 220,223 ----
***************
*** 285,289 ****
      }
      this->ProcessMessages();
!     //HandleRequests();
      usleep(SLEEPTIME_US);
    }
--- 273,277 ----
      }
      this->ProcessMessages();
! 
      usleep(SLEEPTIME_US);
    }


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to