Ignore:
Timestamp:
Mar 13, 2019, 4:40:18 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

vrpnlite support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/unexported/VrpnClient_impl.h

    r294 r309  
    2929class Mutex;
    3030class SerialPort;
     31class UdpSocket;
    3132}
    3233namespace gui {
     
    5051  VrpnClient_impl(flair::sensor::VrpnClient *self, std::string name,
    5152                  flair::core::SerialPort *serialport, uint16_t us_period);
     53  VrpnClient_impl(flair::sensor::VrpnClient *self, std::string name,
     54                  uint16_t port);
    5255  ~VrpnClient_impl();
    5356  void AddTrackable(VrpnObject_impl *obj);    // normal
     
    5659  void ComputeRotations(flair::core::Vector3Df &point);
    5760  void ComputeRotations(flair::core::Quaternion &quat);
    58   bool UseXbee(void);
    5961  void Run(void);
    6062  flair::gui::Tab *setup_tab;
    6163  flair::gui::TabWidget *tab;
    6264  vrpn_Connection *connection;
     65  flair::sensor::VrpnClient::ConnectionType_t connectionType;
    6366
    6467private:
     68  void CommonConstructor(std::string name);
    6569  flair::sensor::VrpnClient *self;
    6670  flair::core::Mutex *mutex;
    6771  uint16_t us_period;
    6872  std::vector<VrpnObject_impl *> trackables;
    69   typedef struct xbee_object {
     73  typedef struct liteObject_t {
    7074    VrpnObject_impl *vrpnobject;
    7175    uint8_t id;
    72   } xbee_object;
     76  } liteObject_t;
    7377
    74   std::vector<xbee_object> xbee_objects;
     78  std::vector<liteObject_t> liteObjects;
    7579  flair::gui::Tab *main_tab;
    7680  flair::core::OneAxisRotation *rotation_1, *rotation_2;
     
    7882        bool isConnected;//only for ip connection, not for xbee
    7983  std::string address;
     84  flair::core::UdpSocket* dataSocket;
     85 
    8086};
    8187
Note: See TracChangeset for help on using the changeset viewer.