#include <dependencies.h>
Public Member Functions | |
Dependencies | add (const std::string &name) |
Specifies a dependency through its name. | |
Dependencies | add (const int pm_id, const std::string &name) |
Dependencies | add (const NameID &dep_id) |
Specifies a dependency through a NameID. Equivalent to "add (const int pm_id, const std::string& name)". | |
Dependencies () | |
Default constructor. | |
Public Attributes | |
NameIDSet | dependency_set_ |
Private Attributes | |
ros::NodeHandle | nh_ |
The set of dependencies, to be passed onto the constructor of a Predicate. | |
int | pm_id_ |
To access the "pm_id" parameter. |
The Dependencies class allows a user to specify the dependencies of a Predicate through a chained declaration of the dependency labels.
For example, if Predicate "A", depends on Predicates "B","C","D", and if the "MyPredicate" class implements the desired condition, you could declare it as MyPredicate("A",Dependencies().add("B").add("C").add("D"));
Definition at line 44 of file dependencies.h.
Default constructor.
Definition at line 31 of file dependencies.cpp.
Dependencies Dependencies::add | ( | const std::string & | name | ) |
Specifies a dependency through its name.
Definition at line 41 of file dependencies.cpp.
Dependencies Dependencies::add | ( | const int | pm_id, |
const std::string & | name | ||
) |
Specifies a dependency through its parent PM and its name. You can use this form to add external dependencies (dependencies on Predicates whose implementation is not known to this agent).
Definition at line 49 of file dependencies.cpp.
Dependencies Dependencies::add | ( | const NameID & | dep_id | ) |
Specifies a dependency through a NameID. Equivalent to "add (const int pm_id, const std::string& name)".
Definition at line 57 of file dependencies.cpp.
Definition at line 61 of file dependencies.h.
The set of dependencies, to be passed onto the constructor of a Predicate.
Definition at line 64 of file dependencies.h.
int predicate_manager::Dependencies::pm_id_ [private] |
To access the "pm_id" parameter.
Definition at line 66 of file dependencies.h.