MoveIt Studio Behavior  2.8.2
Core Behaviors for the MoveIt Studio Application
TaskPlanParser Struct Reference

#include <create_behavior_tree_from_task_plan.hpp>

Public Types

using SubtreeToKeysMap = std::pair< std::string, std::map< std::string, int > >
 

Public Member Functions

tl::expected< std::string, std::string > parseToSubtreeXml (const std::vector< std::string > &action) const
 Parse an action into an xml subtree snippet. More...
 

Public Attributes

std::map< std::string, SubtreeToKeysMapaction_to_subtree
 A mapping of a task action to its subtree and keys used in the subtree. More...
 

Member Typedef Documentation

◆ SubtreeToKeysMap

using TaskPlanParser::SubtreeToKeysMap = std::pair<std::string, std::map<std::string, int> >

Member Function Documentation

◆ parseToSubtreeXml()

tl::expected<std::string, std::string> TaskPlanParser::parseToSubtreeXml ( const std::vector< std::string > &  action) const
inline

Parse an action into an xml subtree snippet.

Parameters
actionThe action to parse, represented as a vector of words
Returns
A tl::expected wrapping a string representing the xml subtree snippet, and a string representing an error message which is set if the action could not be parsed.

Member Data Documentation

◆ action_to_subtree

std::map<std::string, SubtreeToKeysMap> TaskPlanParser::action_to_subtree

A mapping of a task action to its subtree and keys used in the subtree.


The documentation for this struct was generated from the following file: