33main(
int argc,
char** argv) {
34 std::vector<std::string> options;
35 for (
int i = 1; i < argc; i++) {
36 options.push_back(argv[i]);
39 libtraci::Simulation::start(options);
41 std::cout <<
"Simulation started\n";
42 for (
int i = 0; i < 50; i++) {
43 libtraci::Simulation::step();
45 libtraci::Simulation::close();
46 }
catch (
const std::runtime_error& e) {
47 std::cerr <<
"Could not start simulation: " << e.what() <<
"\n";
int main(int argc, char **argv)