3 #ifndef ROBOWFLEX_IO_YAML_
4 #define ROBOWFLEX_IO_YAML_
6 #include <geometry_msgs/Pose.h>
8 #include <moveit_msgs/PlanningScene.h>
9 #include <moveit_msgs/MotionPlanRequest.h>
10 #include <moveit_msgs/RobotTrajectory.h>
12 #include <yaml-cpp/yaml.h>
22 bool isNode(
const YAML::Node &node);
34 YAML::Node
toNode(
const geometry_msgs::Pose &msg);
40 geometry_msgs::Pose
poseFromNode(
const YAML::Node &node);
46 YAML::Node
toNode(
const moveit_msgs::PlanningScene &msg);
52 YAML::Node
toNode(
const moveit_msgs::MotionPlanRequest &msg);
58 YAML::Node
toNode(
const moveit_msgs::RobotTrajectory &msg);
64 YAML::Node
toNode(
const moveit_msgs::RobotState &msg);
bool isNode(const YAML::Node &node)
Checks if a key exists within a YAML node.
bool fromYAMLFile(moveit_msgs::PlanningScene &msg, const std::string &file)
Loads a planning scene from a YAML file.
moveit_msgs::RobotState robotStateFromNode(const YAML::Node &node)
Converts a robot state YAML to a robot_state message.
geometry_msgs::Pose poseFromNode(const YAML::Node &node)
Converts a pose YAML to a goemetry message.
YAML::Node toNode(const geometry_msgs::Pose &msg)
Converts a pose message to YAML.
Main namespace. Contains all library classes and functions.