Changeset 309 in flair-src for trunk/lib/FlairSensorActuator/src/unexported
- Timestamp:
- Mar 13, 2019, 4:40:18 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/unexported/VrpnClient_impl.h
r294 r309 29 29 class Mutex; 30 30 class SerialPort; 31 class UdpSocket; 31 32 } 32 33 namespace gui { … … 50 51 VrpnClient_impl(flair::sensor::VrpnClient *self, std::string name, 51 52 flair::core::SerialPort *serialport, uint16_t us_period); 53 VrpnClient_impl(flair::sensor::VrpnClient *self, std::string name, 54 uint16_t port); 52 55 ~VrpnClient_impl(); 53 56 void AddTrackable(VrpnObject_impl *obj); // normal … … 56 59 void ComputeRotations(flair::core::Vector3Df &point); 57 60 void ComputeRotations(flair::core::Quaternion &quat); 58 bool UseXbee(void);59 61 void Run(void); 60 62 flair::gui::Tab *setup_tab; 61 63 flair::gui::TabWidget *tab; 62 64 vrpn_Connection *connection; 65 flair::sensor::VrpnClient::ConnectionType_t connectionType; 63 66 64 67 private: 68 void CommonConstructor(std::string name); 65 69 flair::sensor::VrpnClient *self; 66 70 flair::core::Mutex *mutex; 67 71 uint16_t us_period; 68 72 std::vector<VrpnObject_impl *> trackables; 69 typedef struct xbee_object {73 typedef struct liteObject_t { 70 74 VrpnObject_impl *vrpnobject; 71 75 uint8_t id; 72 } xbee_object;76 } liteObject_t; 73 77 74 std::vector< xbee_object> xbee_objects;78 std::vector<liteObject_t> liteObjects; 75 79 flair::gui::Tab *main_tab; 76 80 flair::core::OneAxisRotation *rotation_1, *rotation_2; … … 78 82 bool isConnected;//only for ip connection, not for xbee 79 83 std::string address; 84 flair::core::UdpSocket* dataSocket; 85 80 86 }; 81 87
Note:
See TracChangeset
for help on using the changeset viewer.