int main(int argc, char* argv[]) { shared_ptr<lcm::LCM> lcm(new lcm::LCM); if(!lcm->good()) return 1; DrakeSystemPtr p = make_shared<PendulumWithBotVis>(lcm); runLCM(p,*lcm,0,50,p->getRandomState()); cout << "output frame: " << p->getOutputFrame() << endl; }
int main(int argc, char* argv[]) { shared_ptr<lcm::LCM> lcm(new lcm::LCM); if(!lcm->good()) return 1; DrakeSystemPtr p = make_shared<PendulumWithBotVis>(lcm); p->input_frame = make_shared<LCMCoordinateFrame<drake::lcmt_drake_signal> >("PendulumInput",p->input_frame->getCoordinateNames(),lcm); p->output_frame = make_shared<LCMCoordinateFrame<drake::lcmt_drake_signal> >("PendulumState",p->output_frame->getCoordinateNames(),lcm); runLCM(p,lcm,0,50,p->getRandomState()); cout << "output frame: " << p->getOutputFrame() << endl; }