Changeset 94 in flair-dev for trunk/include
- Timestamp:
- Jan 8, 2019, 10:14:12 AM (6 years ago)
- Location:
- trunk/include
- Files:
-
- 9 added
- 8 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairMeta/MetaVrpnObject.h
r50 r94 15 15 16 16 #include <VrpnObject.h> 17 #include <VrpnClient.h> 17 18 #include <io_data.h> 18 19 #include <Vector3D.h> … … 41 42 class MetaVrpnObject : public sensor::VrpnObject { 42 43 public: 43 MetaVrpnObject(std::string name );44 MetaVrpnObject(std::string name,uint8_t id );44 MetaVrpnObject(std::string name,sensor::VrpnClient *client=sensor::GetVrpnClient()); 45 MetaVrpnObject(std::string name,uint8_t id,sensor::VrpnClient *client=sensor::GetVrpnClient()); 45 46 ~MetaVrpnObject(); 46 47 gui::DataPlot1D *VxPlot(void) const; // 1,0 … … 51 52 52 53 private: 53 void ConstructorCommon(std::string name );54 void ConstructorCommon(std::string name,sensor::VrpnClient *client); 54 55 filter::LowPassFilter *pbas; 55 56 filter::EulerDerivative *euler; -
trunk/include/FlairSensorActuator/VrpnObject.h
r68 r94 16 16 17 17 #include <IODevice.h> 18 #include <VrpnClient.h> 18 19 #include <Vector3D.h> 19 20 #include <stdint.h> … … 32 33 33 34 class VrpnObject_impl; 34 class VrpnClient_impl;35 35 36 36 namespace flair { … … 45 45 class VrpnObject : public core::IODevice { 46 46 friend class ::VrpnObject_impl; 47 friend class ::VrpnClient_impl;48 47 49 48 public: … … 55 54 * \param name VRPN object name, should be the same as defined in the server 56 55 * \param tab Tab for the user interface 56 * \param client VrpnClient of the connection, if unspecified, use the default one 57 57 */ 58 58 VrpnObject(std::string name, 59 const gui::TabWidget *tab );59 const gui::TabWidget *tab,sensor::VrpnClient *client=GetVrpnClient()); 60 60 61 61 /*! 62 62 * \brief Constructor 63 63 * 64 * Construct a VrpnObject. Connection is done by IP.64 * Construct a VrpnObject. Connection is done by xbee. 65 65 * 66 66 * \param name name 67 * \param id VRPN object id, should be the same as defined in the server67 * \param id VRPN object id, should be the same as defined in the xbee bridge 68 68 * \param tab Tab for the user interface 69 * \param client VrpnClient of the connection, if unspecified, use the default one 69 70 */ 70 71 VrpnObject(std::string name, uint8_t id, 71 const gui::TabWidget *tab );72 const gui::TabWidget *tab,sensor::VrpnClient *client=GetVrpnClient()); 72 73 73 74 /*! -
trunk/include/FlairSimulator/Blade.h
r13 r94 36 36 const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0), 37 37 bool inverted = false, irr::s32 id = -1); 38 39 Blade(irr::scene::ISceneNode *parent, 40 const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0), 41 bool inverted = false, irr::s32 id = -1); 42 38 43 virtual void OnRegisterSceneNode(void); 39 44 virtual void render(void); -
trunk/include/FlairSimulator/MeshSceneNode.h
r13 r94 31 31 const irr::core::vector3df &rotation = irr::core::vector3df(0, 0, 0), 32 32 irr::video::ITexture *texture = NULL, irr::s32 id = -1); 33 34 MeshSceneNode( 35 irr::scene::ISceneNode *parent, irr::scene::IMesh *mesh, 36 const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0), 37 const irr::core::vector3df &rotation = irr::core::vector3df(0, 0, 0), 38 irr::video::ITexture *texture = NULL, irr::s32 id = -1); 33 39 34 40 virtual void OnRegisterSceneNode(void); -
trunk/include/FlairSimulator/Simulator.h
r50 r94 44 44 // yaw_deg: rotation of the vrpn coordinate with respect to the earth 45 45 // coordinate, around z axis 46 Simulator(std::string name, int optitrack_mstime = 10, float yaw_deg = 30 );46 Simulator(std::string name, int optitrack_mstime = 10, float yaw_deg = 30, int port=3883); 47 47 ~Simulator(); 48 48 void RunSimu(void); -
trunk/include/FlairSimulator/VisualizationCamera.h
r34 r94 27 27 class ICameraSceneNode; 28 28 } 29 namespace video { 30 class ITexture; 31 } 29 32 } 30 33 … … 42 45 irr::scene::ICameraSceneNode *getCameraSceneNode(void); 43 46 std::string getName(void); 47 void renderAxisToTexture(irr::video::ITexture* texture); 44 48 45 49 private: 46 50 virtual bool isEventReceiverEnabled(void) const { return true; } 47 51 irr::scene::ISceneNode *nodeX,*nodeY,*nodeZ; 52 irr::scene::ISceneManager *axis_scenemanager; 53 48 54 protected: 49 55 bool LMouseKey; 50 56 irr::scene::ICameraSceneNode *camera; 57 irr::scene::ICameraSceneNode *axis_camera; 51 58 irr::core::position2df MousePos; 52 59 float currentZoom; -
trunk/include/FlairSimulator/X4.h
r68 r94 43 43 #ifdef GL 44 44 virtual void Draw(void); 45 virtual void ExtraDraw(void){}; 45 virtual void ExtraDraw(void){}; 46 #endif 46 47 47 protected:48 Blade *fl_blade, *fr_blade, *rl_blade, *rr_blade;49 core::Mutex *motor_speed_mutex;50 #endif51 48 private: 52 49 void CalcModel(void); … … 56 53 void WritedbtBuf(char *dbtbuf); 57 54 void ReaddbtBuf(char *dbtbuf); 55 Blade *fl_blade, *fr_blade, *rl_blade, *rr_blade; 56 core::Mutex *motor_speed_mutex; 58 57 #endif 59 58 -
trunk/include/FlairSimulator/X8.h
r68 r94 45 45 46 46 protected: 47 #ifdef GL 48 Blade *tfl_blade, *tfr_blade, *trl_blade, *trr_blade; 49 Blade *bfl_blade, *bfr_blade, *brl_blade, *brr_blade; 50 #endif 47 51 48 private: 52 49 void CalcModel(void); … … 57 54 void ReaddbtBuf(char *dbtbuf); 58 55 core::Mutex *motor_speed_mutex; 56 Blade *tfl_blade, *tfr_blade, *trl_blade, *trr_blade; 57 Blade *bfl_blade, *bfr_blade, *brl_blade, *brr_blade; 59 58 #endif 60 59
Note:
See TracChangeset
for help on using the changeset viewer.