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
GrabObjectAction.cpp
1
#include <sarafun_tree/demo_bt_nodes/GrabObjectAction.h>
2
3
namespace
sarafun {
4
double
GrabObjectAction::getTimeoutValue
() {
5
double
timeout = 0;
6
fillParameter
(
"/sarafun/bt/grab_object/timeout"
, 30.0, timeout);
7
8
return
timeout;
9
}
10
bool
GrabObjectAction::fillGoal
(sarafun_manipulation::GrabGoal &goal) {
11
return
true
;
12
}
13
}
14
15
int
main(
int
argc,
char
**argv) {
16
ros::init(argc, argv,
"GrabObject"
);
17
sarafun::GrabObjectAction
grab_action(ros::this_node::getName(),
18
"/sarafun/manipulation/grab"
,
19
"grab_object_action"
);
20
ros::spin();
21
return
1;
22
}
sarafun::GrabObjectAction::fillGoal
bool fillGoal(sarafun_manipulation::GrabGoal &goal)
Definition:
GrabObjectAction.cpp:10
sarafun::GrabObjectAction::getTimeoutValue
double getTimeoutValue()
Definition:
GrabObjectAction.cpp:4
sarafun::GrabObjectAction
Definition:
GrabObjectAction.h:9
sarafun::ExecuteAction< sarafun_manipulation::GrabAction, sarafun_manipulation::GrabGoal >::fillParameter
bool fillParameter(std::string param_name, std::string ¶m_val)
Generated on Fri Feb 17 2017 11:14:54 for Sarafun Behavior Trees package by
1.8.6