Public Member Functions | |
IsMovingPredicate () | |
void | update () |
void | velocityCallback (const geometry_msgs::TwistConstPtr &msg) |
Private Attributes | |
bool | is_moving_forward_ |
NodeHandle | nh_ |
Subscriber | vel_subs_ |
An example of a Predicate that defines a condition over an active ROS topic. (This Predicate isn't used in the accompanying MDP state representation)
Definition at line 48 of file demo_predicates.cpp.
IsMovingPredicate::IsMovingPredicate | ( | ) | [inline] |
Definition at line 51 of file demo_predicates.cpp.
void IsMovingPredicate::update | ( | ) | [inline, virtual] |
Implements predicate_manager::PredicateDependentEntity.
Definition at line 67 of file demo_predicates.cpp.
void IsMovingPredicate::velocityCallback | ( | const geometry_msgs::TwistConstPtr & | msg | ) | [inline] |
Definition at line 57 of file demo_predicates.cpp.
bool IsMovingPredicate::is_moving_forward_ [private] |
Definition at line 75 of file demo_predicates.cpp.
NodeHandle IsMovingPredicate::nh_ [private] |
Definition at line 73 of file demo_predicates.cpp.
Subscriber IsMovingPredicate::vel_subs_ [private] |
Definition at line 74 of file demo_predicates.cpp.