se2ez
yaml.h
Go to the documentation of this file.
1 /* Author: Zachary Kingston */
2 
3 #ifndef SE2EZ_CORE_YAML_
4 #define SE2EZ_CORE_YAML_
5 
7 
8 namespace se2ez
9 {
10  /** \cond IGNORE */
11  SE2EZ_CLASS_FORWARD(Robot)
12  /** \endcond */
13 
14  namespace io
15  {
16  /** \brief Loads a robot from a YAML file.
17  * \param[in] filename The filename to load.
18  * \return A robot compiled from filename, and a nullptr on failure.
19  */
20  RobotPtr loadRobot(const std::string &filename);
21 
22  /** \brief Loads named robot states from a YAML file.
23  * \param[in, out] robot Robot to load named states into.
24  * \param[in] filename The filename to load.
25  * \return True on success, false on failure.
26  */
27  bool loadStates(RobotPtr robot, const std::string &filename);
28  } // namespace io
29 } // namespace se2ez
30 
31 #endif
RobotPtr loadRobot(const std::string &filename)
Loads a robot from a YAML file.
Definition: yaml.cpp:303
bool loadStates(RobotPtr robot, const std::string &filename)
Loads named robot states from a YAML file.
Definition: yaml.cpp:326
Main namespace.
Definition: collision.h:11
#define SE2EZ_CLASS_FORWARD(C)
Definition: class_forward.h:9