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

Modified Files:
        Makefile.am 
Added Files:
        pbs_driver.cc 
Log Message:
added hokuyo pbs driver, patch 1739292


Index: Makefile.am
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/laser/Makefile.am,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** Makefile.am 13 Feb 2007 21:54:32 -0000      1.18
--- Makefile.am 31 Jul 2007 08:33:45 -0000      1.19
***************
*** 1,4 ****
--- 1,8 ----
  noinst_LTLIBRARIES = 
  
+ if INCLUDE_PBSLASER
+ noinst_LTLIBRARIES += libpbslaser.la
+ endif
+ 
  if INCLUDE_SICKLMS200
  noinst_LTLIBRARIES += libsicklms200.la
***************
*** 41,44 ****
--- 45,49 ----
  AM_CPPFLAGS = -Wall -I$(top_srcdir)
  
+ libpbslaser_la_SOURCES = pbs_driver.cc
  libsicklms200_la_SOURCES = sicklms200.cc
  libsicklms400_la_SOURCES = lms400_cola.h lms400_cola.cc sicklms400.cc

--- NEW FILE: pbs_driver.cc ---
/*! \mainpage
 *  Player - One Hell of a Robot Server
 *  Copyright (C) 2003  
 *     Brian Gerkey
 *                      
 * 
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
[...1194 lines suppressed...]
        return 1;                                                               
                                                
}

/// Function for reading data from the com port
int PBSDriver::Read_Single_Char(unsigned char *result) {
        int iIn = read(ifd, result, 1);

        if (iIn < 0) {
                if (errno == EAGAIN) {
                        printf("SERIAL EAGAIN ERROR\n");
                        return 0;
                } else {
                        printf("SERIAL read error %d %s\n", errno, 
strerror(errno));
                        return 0;
                }
        }                    
        return iIn;
}




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