Sarafun Behavior Trees package
1
Behavior trees for the SARAFun project
Main Page
Data Structures
All
Data Structures
Namespaces
Functions
Variables
Enumerations
Enumerator
sarafun_tree
src
demo_bt_nodes
ApproachObjectsAction.cpp
1
#include <sarafun_tree/demo_bt_nodes/ApproachObjectsAction.h>
2
3
namespace
sarafun {
4
bool
ApproachObjectsAction::fillGoal
(sarafun_manipulation::ApproachGoal &goal) {
5
return
true
;
6
}
7
8
double
ApproachObjectsAction::getTimeoutValue
() {
9
double
timeout = 0;
10
fillParameter
(
"/sarafun/bt/approach_objects/timeout"
, 30.0, timeout);
11
12
return
timeout;
13
}
14
}
15
16
int
main(
int
argc,
char
**argv) {
17
ros::init(argc, argv,
"ApproachObjects"
);
18
sarafun::ApproachObjectsAction
approach_action(
19
ros::this_node::getName(),
"/sarafun/manipulation/approach"
,
20
"approach_objects_action"
);
21
ros::spin();
22
return
1;
23
}
sarafun::ApproachObjectsAction::fillGoal
bool fillGoal(sarafun_manipulation::ApproachGoal &goal)
Definition:
ApproachObjectsAction.cpp:4
sarafun::ExecuteAction< sarafun_manipulation::ApproachAction, sarafun_manipulation::ApproachGoal >::fillParameter
bool fillParameter(std::string param_name, std::string ¶m_val)
sarafun::ApproachObjectsAction
Definition:
ApproachObjectsAction.h:9
sarafun::ApproachObjectsAction::getTimeoutValue
double getTimeoutValue()
Definition:
ApproachObjectsAction.cpp:8
Generated on Fri Feb 17 2017 11:14:54 for Sarafun Behavior Trees package by
1.8.6