se2ez
yaml.cpp
Go to the documentation of this file.
1 /* Author: Zachary Kingston */
2 
3 #include <iostream>
4 
5 #include <se2ez/core.h>
6 
7 using namespace se2ez;
8 
9 int main(int argc, char **argv)
10 {
11  if (argc < 2)
12  {
13  std::cout << "Please give filename to load!" << std::endl;
14  return -1;
15  }
16 
17  auto robot = io::loadRobot(std::string(argv[1]));
18  if (!robot)
19  return -1;
20 
21  std::cout << robot->printDebug() << std::endl;
22 }
RobotPtr loadRobot(const std::string &filename)
Loads a robot from a YAML file.
Definition: yaml.cpp:303
T endl(T... args)
int main(int argc, char **argv)
Definition: yaml.cpp:9
Main namespace.
Definition: collision.h:11