cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsPuck.h
Go to the documentation of this file.
1 /*
2 
3  Author(s): Simon Leonard
4  Created on: Dec 02 2009
5 
6  (C) Copyright 2009 Johns Hopkins University (JHU), All Rights
7  Reserved.
8 
9 --- begin cisst license - do not edit ---
10 
11 This software is provided "as is" under an open source license, with
12 no warranty. The complete license can be found in license.txt and
13 http://www.cisst.org/cisst/license.txt.
14 
15 --- end cisst license ---
16 */
17 
18 #ifndef _mtsPuck_h
19 #define _mtsPuck_h
20 
23 
24 #include <sawBarrett/osaPuck.h>
26 
28  public mtsComponent,
29  public osaPuck{
30 
32 
33  private:
34 
36  void mtsReset();
37 
39  void mtsReady();
40 
41  void mtsInitialize();
42 
44  void mtsReadPosition( mtsLongLong& position ) const;
45 
47  void mtsWriteTorque( const mtsLongLong& torque );
48 
49  protected:
50 
53 
56 
57  public:
58 
59  mtsPuck( const std::string& componentname,
60  osaPuck::ID id,
61  osaCANBus* can );
62 
63 };
64 
66 
67 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
#define CMN_LOG_LOD_RUN_ERROR
Definition: cmnLogLoD.h:93
Implements a Barrett puck.
Definition: osaPuck.h:36
mtsInterfaceProvided * io
The input/output interface.
Definition: mtsPuck.h:52
ID
Define the ID of a puck.
Definition: osaPuck.h:45
Declaration of mtsComponent.
Definition: mtsPuck.h:27
Definition: mtsComponent.h:150
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
Generic CAN bus.
Definition: osaCANBus.h:15
Definition: mtsInterfaceProvided.h:96
Declaration of mtsInterfaceProvided.
mtsInterfaceProvided * ctl
The control interface.
Definition: mtsPuck.h:55
Definition: mtsGenericObjectProxy.h:45
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202