cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsWAM.h
Go to the documentation of this file.
1 /*
2  Author(s): Simon Leonard
3  Created on: Dec 02 2009
4 
5  (C) Copyright 2009 Johns Hopkins University (JHU), All Rights
6  Reserved.
7 
8 --- begin cisst license - do not edit ---
9 
10 This software is provided "as is" under an open source license, with
11 no warranty. The complete license can be found in license.txt and
12 http://www.cisst.org/cisst/license.txt.
13 
14 --- end cisst license ---
15 */
16 
17 #ifndef _mtsWAM_h
18 #define _mtsWAM_h
19 
22 
24 
27 
28 #include <sawBarrett/osaWAM.h>
30 
32 
49  public mtsTaskContinuous,
50  public osaWAM {
51 
52  private:
53 
56 
57  mtsInterfaceProvided* input;
58  mtsInterfaceProvided* output;
60 
61  osaCPUMask cpumask;
62  int priority;
63 
64  public:
65 
66  mtsWAM( const std::string& name,
67  osaCANBus* canbus,
68  osaWAM::Configuration configuration = WAM_7DOF,
69  osaCPUMask cpumask = OSA_CPUANY,
70  int priority = 80 );
71 
72  void Configure( const std::string& CMN_UNUSED(argv) = "" )
73  { osaWAM::Initialize(); }
74 
75  void Startup();
76  void Run();
77  void Cleanup(){}
78 
79 };
80 
81 #endif
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
Definition: prmPositionJointGet.h:35
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
const osaCPUMask OSA_CPUANY
Definition: osaCPUAffinity.h:31
A clas for a WAM device.
Definition: mtsWAM.h:48
void Configure(const std::string &CMN_UNUSED(argv)="")
Definition: mtsWAM.h:72
void Cleanup()
Definition: mtsWAM.h:77
#define CMN_UNUSED(argument)
Definition: cmnPortability.h:479
Definition: prmForceTorqueJointSet.h:37
Defines a continuously executing task.
virtual void Startup(void)
Definition: mtsComponent.h:262
A clas for a WAM device.
Definition: osaWAM.h:43
Joint position move parameters.
Generic CAN bus.
Definition: osaCANBus.h:15
Definition: mtsInterfaceProvided.h:96
osaWAM::Errno Initialize()
Initialize the arm.
unsigned short osaCPUMask
Definition: osaCPUAffinity.h:29
virtual void Run(void)=0
Declaration of mtsInterfaceProvided.
Definition: mtsTaskContinuous.h:77
Configuration
Definition: osaWAM.h:49
Functions for multi-core CPUs.