Class Predicate

Inheritance Relationships

Base Type

  • public plansys2_msgs::msg::Node

Class Documentation

class Predicate : public plansys2_msgs::msg::Node

Represents a predicate in the planning domain.

Inherits from plansys2_msgs::msg::Node and provides constructors for easy creation from strings or existing Node messages.

Public Functions

inline Predicate()

Default constructor.

inline explicit Predicate(const std::string &pred)

Construct a Predicate from a string representation.

Parameters:

pred[in] The predicate as a string.

inline Predicate(const plansys2_msgs::msg::Node &pred)

Construct a Predicate from an existing Node message.

Parameters:

pred[in] The Node message.

inline bool operator==(const Predicate &p2) const