Struct ActionVariant

Struct Documentation

struct ActionVariant

Public Types

using shared_ptr_action = std::shared_ptr<plansys2_msgs::msg::Action>
using shared_ptr_durative = std::shared_ptr<plansys2_msgs::msg::DurativeAction>

Public Functions

inline ActionVariant &operator=(shared_ptr_action ptr)
inline ActionVariant &operator=(shared_ptr_durative ptr)
inline std::string get_action_string() const
inline std::string get_action_name() const
inline std::vector<plansys2_msgs::msg::Param> get_action_params() const
inline plansys2_msgs::msg::Tree get_overall_requirements() const
inline plansys2_msgs::msg::Tree get_at_start_requirements() const
inline plansys2_msgs::msg::Tree get_at_end_requirements() const
inline plansys2_msgs::msg::Tree get_at_start_effects() const
inline plansys2_msgs::msg::Tree get_at_end_effects() const
inline bool is_action() const
inline bool is_durative_action() const

Public Members

std::variant<std::shared_ptr<plansys2_msgs::msg::Action>, std::shared_ptr<plansys2_msgs::msg::DurativeAction>> action