Libbarrett  1.2.4
include/barrett/systems/abstract/haptic_object.h
00001 /*
00002         Copyright 2009, 2010 Barrett Technology <support@barrett.com>
00003 
00004         This file is part of libbarrett.
00005 
00006         This version of libbarrett is free software: you can redistribute it
00007         and/or modify it under the terms of the GNU General Public License as
00008         published by the Free Software Foundation, either version 3 of the
00009         License, or (at your option) any later version.
00010 
00011         This version of libbarrett is distributed in the hope that it will be
00012         useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00013         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014         GNU General Public License for more details.
00015 
00016         You should have received a copy of the GNU General Public License along
00017         with this version of libbarrett.  If not, see
00018         <http://www.gnu.org/licenses/>.
00019 
00020         Further, non-binding information about licensing is available at:
00021         <http://wiki.barrett.com/libbarrett/wiki/LicenseNotes>
00022 */
00023 
00024 /*
00025  * haptic_object.h
00026  *
00027  *  Created on: Feb 19, 2010
00028  *      Author: dc
00029  */
00030 
00031 #ifndef BARRETT_SYSTEMS_ABSTRACT_HAPTIC_OBJECT_H_
00032 #define BARRETT_SYSTEMS_ABSTRACT_HAPTIC_OBJECT_H_
00033 
00034 
00035 #include <barrett/detail/ca_macro.h>
00036 
00037 #include <barrett/units.h>
00038 #include <barrett/systems/abstract/system.h>
00039 #include <barrett/systems/abstract/single_io.h>
00040 
00041 
00042 namespace barrett {
00043 namespace systems {
00044 
00045 
00046 class HapticObject : public System, public SingleInput<units::CartesianPosition::type> {
00047         BARRETT_UNITS_FIXED_SIZE_TYPEDEFS;
00048 
00049 // IO
00050 public:         Output<double> depthOutput;
00051 protected:      Output<double>::Value* depthOutputValue;
00052 public:         Output<cf_type> directionOutput;
00053 protected:      Output<cf_type>::Value* directionOutputValue;
00054 
00055 public:
00056         HapticObject(const std::string& sysName = "HapticObject") :
00057                 System(sysName), SingleInput<cp_type>(this),
00058                 depthOutput(this, &depthOutputValue),
00059                 directionOutput(this, &directionOutputValue) {}
00060         virtual ~HapticObject() { mandatoryCleanUp(); }
00061 
00062 private:
00063         DISALLOW_COPY_AND_ASSIGN(HapticObject);
00064 };
00065 
00066 
00067 }
00068 }
00069 
00070 
00071 #endif /* BARRETT_SYSTEMS_ABSTRACT_HAPTIC_OBJECT_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines