#include #include #include #include #include #include #include #include int main(int argc, char* argv[]) { QCoreApplication app(argc, argv); auto cmd = std::make_shared(); cmd->_start_time = 0; cmd->_speed_motion = 20; cmd->_length_total = 200000; auto enti = std::make_shared(); auto motion = std::make_shared(); enti->append(motion); auto box3d = std::make_shared(); enti->append(box3d); auto immediate = std::make_shared(enti); QList> out; motion->execute(immediate, cmd, out); for (auto rst : out) qDebug() << rst->_success_mark << rst->_reason_text; auto total = cmd->timeExpend(); for (auto timepoint = 0; timepoint < 10000; timepoint += 1) { //qDebug() << cmd->posAtTimespan(timepoint); auto sync = std::make_shared(); sync->_time_current = timepoint; motion->execute(immediate, sync, out); qDebug() <_self_lla._lon_deg).arg(box3d->_self_lla._lat_deg).arg(box3d->_self_lla._alt_m); //qDebug() << box3d->_self_posture._azimuth_deg << box3d->_self_posture._pitch_deg << box3d->_self_posture._roll_deg; //qDebug() << timepoint << "========================"; } return app.exec(); }