- Timestamp:
- Jun 8, 2020, 11:52:29 AM (4 years ago)
- Location:
- trunk/lib/FlairSimulator/src
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/Model.cpp
r167 r361 19 19 #include "Simulator.h" 20 20 #include <DoubleSpinBox.h> 21 #include <Vector3DSpinBox.h> 21 22 22 23 #ifdef GL … … 75 76 } 76 77 78 core::Vector3Df Model::InitialPosition(void) { 79 return pimpl_->pos_init->Value(); 80 } 81 77 82 } // end namespace simulator 78 83 } // end namespace flair -
trunk/lib/FlairSimulator/src/Model.h
r167 r361 98 98 double dT(void) const; 99 99 virtual void CalcModel(void) = 0; 100 core::Vector3Df InitialPosition(void); 100 101 #ifdef GL 101 102 FollowMeCamera *getFollowMeCamera(void) const; -
trunk/lib/FlairSimulator/src/Model_impl.cpp
r318 r361 239 239 pos_rel = pos - nodePosition; 240 240 // printf("collision %f %f %f\n",pos.X,pos.Y,pos.Z); 241 // printf(" drone%f %f %f\n",nodePosition.X,nodePosition.Y,nodePosition.Z);241 // printf("object %f %f %f\n",nodePosition.X,nodePosition.Y,nodePosition.Z); 242 242 // printf("rel %f %f %f\n",pos_rel.X,pos_rel.Z,pos_rel.Y); 243 243 … … 257 257 self->state[-1].Pos = self->state[0].Pos; 258 258 self->state[-2].Pos = self->state[0].Pos; 259 self->state[0].Vel=0; 260 self->state[-1].Vel=0; 261 self->state[-2].Vel=0; 259 262 states_mutex->ReleaseMutex(); 260 263 } -
trunk/lib/FlairSimulator/src/unexported/Model_impl.h
r286 r361 90 90 flair::gui::DoubleSpinBox *dT; 91 91 int modelId; 92 flair::gui::Vector3DSpinBox *pos_init; 92 93 93 94 private: 94 flair::gui::Vector3DSpinBox *pos_init;95 95 flair::gui::SpinBox *yaw_init; 96 96 flair::gui::CheckBox *enable_opti;
Note:
See TracChangeset
for help on using the changeset viewer.