Abstract base class for XML plan parsing plugins.
More...
#include <parser_base.hpp>
|
| void | initialize_base (const rclcpp::Node::SharedPtr &node, const std::string &plugin_name) |
| | Base initialization method for derived classes.
|
| |
|
| rclcpp::Node::SharedPtr | node_ |
| | Shared pointer to the ROS2 node.
|
| |
| std::string | plugin_name_ |
| | Name of the validation plugin.
|
| |
Abstract base class for XML plan parsing plugins.
Implementations should provide a parse() method that extracts information from the XML plan and return a fabric::Plan object.
◆ ~ParserBase()
| virtual fabric::ParserBase::~ParserBase |
( |
| ) |
|
|
virtualdefault |
◆ check_compatibility()
| virtual bool fabric::ParserBase::check_compatibility |
( |
const fabric::Plan & |
plan | ) |
|
|
pure virtual |
Check the compatibility of the given plan with the given parser.
- Parameters
-
| plan | The plan to check for compatibility. |
- Returns
- true if the plan is compatible, false otherwise.
Implemented in fabric::XMLParser.
◆ initialize()
| virtual void fabric::ParserBase::initialize |
( |
const rclcpp::Node::SharedPtr & |
node | ) |
|
|
inlinevirtual |
Initialize the validation plugin with the given ROS2 node.
- Parameters
-
| node | Shared pointer to the ROS2 node. |
- Returns
- true if initialization was successful, false otherwise.
Reimplemented in fabric::XMLParser.
◆ initialize_base()
| void fabric::ParserBase::initialize_base |
( |
const rclcpp::Node::SharedPtr & |
node, |
|
|
const std::string & |
plugin_name |
|
) |
| |
|
inlineprotected |
Base initialization method for derived classes.
- Parameters
-
| node | Shared pointer to the ROS2 node. |
| plugin_name | Name of the validation plugin. |
◆ load_file()
| virtual bool fabric::ParserBase::load_file |
( |
const std::string & |
file_path, |
|
|
fabric::Plan & |
plan |
|
) |
| |
|
pure virtual |
load a file into an XML document
- Parameters
-
| document | The path to the XML file to be loaded |
- Returns
- true if the file was loaded successfully, false otherwise
Implemented in fabric::XMLParser.
◆ parse()
| virtual void fabric::ParserBase::parse |
( |
fabric::Plan & |
plan | ) |
|
|
pure virtual |
Parse the given XML plan.
- Parameters
-
| document | The XMLDocument representing the plan. |
| plan | The parsed plan. |
Implemented in fabric::XMLParser.
◆ node_
| rclcpp::Node::SharedPtr fabric::ParserBase::node_ |
|
protected |
Shared pointer to the ROS2 node.
◆ plugin_name_
| std::string fabric::ParserBase::plugin_name_ |
|
protected |
Name of the validation plugin.
The documentation for this class was generated from the following file: