fromranger.h
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 Brian Gerkey & Kasper Stoy
* gerkey@usc.edu kaspers@robotics.usc.edu
*
* 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
*
*/
//
// Desc: Base class for ranger-> interface converter drivers.
// Author: Geoffrey Biggs
// Date: 06/05/2007
//
#include <libplayercore/playercore.h>
class FromRanger : public Driver
{
public:
FromRanger (ConfigFile* cf, int section);
~FromRanger (void);
// Message processor - must be called first by child classes if overridden
virtual int ProcessMessage (QueuePointer &resp_queue, player_msghdr *hdr, void *data);
virtual int Setup (void);
virtual int Shutdown (void);
protected:
// Input device
Device *inputDevice; // Input device interface
player_devaddr_t inputDeviceAddr; // Input device address
};
ConfigFile
Class for loading configuration file information.
Definition: configfile.h:196
player_msghdr
Generic message header.
Definition: player.h:157
FromRanger::Shutdown
virtual int Shutdown(void)
Finalize the driver.
Definition: fromranger.cc:58
player_devaddr
A device address.
Definition: player.h:141
Device
Encapsulates a device (i.e., a driver bound to an interface)
Definition: device.h:74
QueuePointer
An autopointer for the message queue.
Definition: message.h:73
FromRanger::ProcessMessage
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Definition: fromranger.cc:68
Driver
Base class for all drivers.
Definition: driver.h:108
FromRanger::Setup
virtual int Setup(void)
Initialize the driver.
Definition: fromranger.cc:51
FromRanger
Definition: fromranger.h:32

Last updated 12 September 2005 21:38:45