RestPose.hh
Go to the documentation of this file.
1 
8 #ifndef _REST_POSE_HH_
9 #define _REST_POSE_HH_
10 
11 // Gazebo
12 #include <gazebo/gazebo_client.hh>
13 // Open YAML config files
14 #include "yaml-cpp/yaml.h"
15 // Debug streams
16 #include "debug.hh"
17 
19 class RestPose
20 {
27  public: static void loadFromYml(
28  const std::string & file_name,
29  const std::string & object_name,
30  std::vector<ignition::math::Pose3d> & rest_poses,
31  const bool as_pose=true,
32  const bool as_matrix=false);
33 
40  public: static void writeToYml(
41  const std::string & file_name,
42  const std::string & object_name,
43  const std::vector<ignition::math::Pose3d> & rest_poses,
44  const bool as_pose=true,
45  const bool as_matrix=false);
46 };
47 
48 #endif
RestPose tools class.
Definition: RestPose.hh:19
static void writeToYml(const std::string &file_name, const std::string &object_name, const std::vector< ignition::math::Pose3d > &rest_poses, const bool as_pose=true, const bool as_matrix=false)
Writes set of rest poses to yml file.
Definition: RestPose.cc:75
static void loadFromYml(const std::string &file_name, const std::string &object_name, std::vector< ignition::math::Pose3d > &rest_poses, const bool as_pose=true, const bool as_matrix=false)
Load set of rest poses from yml file.
Definition: RestPose.cc:11