cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osaBH8_280.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 _osaBH8_280_h
18 #define _osaBH8_280_h
19 
21 
22 #include <sawBarrett/osaPuck.h>
23 #include <sawBarrett/osaGroup.h>
25 
27 
44 
45  public:
46 
47  enum Errno{ ESUCCESS, EFAILURE };
48 
49  private:
50 
52  //osaGroup broadcast;
53  osaGroup hand;
54  osaGroup handposition;
55 
57  std::vector< osaPuck > pucks;
58 
60 
62 
68  vctDynamicMatrix<double> mpos2jpos;
69 
71 
77  vctDynamicMatrix<double> jpos2mpos;
78 
80 
86  vctDynamicMatrix<double> jtrq2mtrq;
87 
89 
97  MotorsPos2JointsPos( const vctDynamicVector<double>& q );
98 
100 
108  JointsPos2MotorsPos( const vctDynamicVector<double>& q );
109 
111 
119  JointsTrq2MotorsTrq( const vctDynamicVector<double>& t );
120 
121  public:
122 
124 
132  osaBH8_280( osaCANBus* canbus );
133 
135  ~osaBH8_280();
136 
138 
141  osaBH8_280::Errno Initialize();
142 
144  //osaBH8_280::Configuration GetConfiguration() const { return configuration; }
145 
147 
154  osaBH8_280::Errno GetPositions( vctDynamicVector<double>& positions );
155 
157 
169  osaBH8_280::Errno SetPositions( const vctDynamicVector<double>& positions );
170 
172 
180  //osaBH8_280::Errno SetTorques( const vctDynamicVector<double>& torques );
181 
183 
194  //osaBH8_280::Errno SetVelocityWarning( Barrett::Value velocitywarning );
195 
197 
206  //osaBH8_280::Errno SetVelocityFault( Barrett::Value velocityfault );
207 
209 
219  //osaBH8_280::Errno SetTorqueWarning( Barrett::Value torquewarning );
220 
222 
231  //osaBH8_280::Errno SetTorqueFault( Barrett::Value torquefault );
232 
234  osaBH8_280::Errno SetMode( Barrett::Value mode );
235 
236  void Hi();
237 
238 };
239 
240 #endif
241 
242 
243 
244 
245 
246 
247 
248 
249 
250 
251 
252 
253 
254 
255 
256 
257 
258 
259 
260 
261 
262 
263 
264 
265 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Declaration of vctDynamicMatrix.
Errno
Definition: osaBH8_280.h:47
A logical group of pucks.
Definition: osaGroup.h:33
int64_t Value
Define the value of a property (4-6 bytes)
Definition: Barrett.h:28
Generic CAN bus.
Definition: osaCANBus.h:15
Definition: osaBH8_280.h:47
A clas for a BH8_280 device.
Definition: osaBH8_280.h:43