PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusWitMotionTracker.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2 Program: Plus
3 Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4 See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef __vtkPlusWitMotionTracker_h
8 #define __vtkPlusWitMotionTracker_h
9 
10 #include "vtkPlusDataCollectionExport.h"
12 
19 class vtkPlusDataCollectionExport vtkPlusWitMotionTracker : public vtkPlusGenericSerialDevice
20 {
21 public:
22  static vtkPlusWitMotionTracker *New();
24 
25  virtual PlusStatus InternalUpdate();
26 
27  virtual bool IsTracker() const { return true; }
28 
29 protected:
35  PlusStatus DecodeData();
36 
38  PlusStatus ReceiveData();
39 
40  virtual PlusStatus NotifyConfigured();
41 
44 
45 protected:
47 
48  // Only need MAX_DATA_LENGTH bytes in the buffer
49  static const int MAX_DATA_LENGTH = 11;
50  typedef std::array<unsigned char, vtkPlusWitMotionTracker::MAX_DATA_LENGTH> StreamBufferType;
51 
53  std::array<double, 4> Orientation;
54  std::array<double, 4> Acceleration;
55  std::array<double, 4> Velocity;
56  double Temperature;
57 
58 private:
60  void operator=(const vtkPlusWitMotionTracker&);
61 };
62 
63 #endif
igsioStatus PlusStatus
Definition: PlusCommon.h:40
std::array< double, 4 > Velocity
std::array< double, 4 > Acceleration
std::array< double, 4 > Orientation
virtual bool IsTracker() const
std::array< unsigned char, vtkPlusWitMotionTracker::MAX_DATA_LENGTH > StreamBufferType
vtkPlusDataSource * Accelerometer
Interface for acquiring data from a Microchip MM7150 motion module.
Generic interface for communicating with a serial device.
static vtkPlusGenericSerialDevice * New()
Interface to a 3D positioning tool, video source, or generalized data stream.