Main Page
Namespaces
Classes
Files
File List
File Members
src
walk_analyzer_node.cpp
Go to the documentation of this file.
1
#include <
vigir_walk_monitor/walk_analyzer_node.h
>
2
3
namespace
vigir_footstep_planning
4
{
5
WalkAnalyzerNode::WalkAnalyzerNode
(
ros::NodeHandle
& nh,
WalkAnalyzer::Ptr
walk_anaylzer)
6
: walk_analyzer(walk_anaylzer)
7
{
8
// subscribe topics, note: set large queue size to enable replaying bag files instant
9
execute_step_plan_goal_sub
= nh.
subscribe
(
"execute_step_plan/goal"
, 0, &
WalkAnalyzer::executeStepPlanGoalCallback
,
walk_analyzer
.get());
10
execute_step_plan_result_sub
= nh.
subscribe
(
"execute_step_plan/result"
, 0, &
WalkAnalyzer::executeStepPlanResultCallback
,
walk_analyzer
.get());
11
step_feedback_sub
= nh.
subscribe
(
"step_feedback"
, 0, &
WalkAnalyzer::stepFeedbackCallback
,
walk_analyzer
.get());
12
}
13
14
WalkAnalyzerNode::WalkAnalyzerNode
(
ros::NodeHandle
& nh)
15
:
WalkAnalyzerNode
(nh,
WalkAnalyzer
::Ptr(new
WalkAnalyzer
(nh)))
16
{
17
}
18
19
WalkAnalyzerNode::~WalkAnalyzerNode
()
20
{
21
}
22
}
23
24
int
main
(
int
argc,
char
**argv)
25
{
26
ros::init
(argc, argv,
"walk_analyzer_node"
);
27
ros::NodeHandle
nh;
28
vigir_footstep_planning::WalkAnalyzerNode
walk_analyzer_node(nh);
29
ros::spin
();
30
31
return
0;
32
}
vigir_footstep_planning::WalkAnalyzerNode::execute_step_plan_result_sub
ros::Subscriber execute_step_plan_result_sub
Definition:
walk_analyzer_node.h:52
ros::NodeHandle
vigir_footstep_planning::WalkAnalyzerNode::walk_analyzer
WalkAnalyzer::Ptr walk_analyzer
Definition:
walk_analyzer_node.h:55
ros::NodeHandle::subscribe
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
vigir_footstep_planning::WalkAnalyzer::executeStepPlanGoalCallback
void executeStepPlanGoalCallback(const msgs::ExecuteStepPlanActionGoal &execute_goal)
Definition:
walk_analyzer.cpp:24
main
int main(int argc, char **argv)
Definition:
walk_analyzer_node.cpp:24
vigir_footstep_planning::WalkAnalyzer
Definition:
walk_analyzer.h:50
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
vigir_footstep_planning::WalkAnalyzerNode::execute_step_plan_goal_sub
ros::Subscriber execute_step_plan_goal_sub
Definition:
walk_analyzer_node.h:51
ros::spin
ROSCPP_DECL void spin(Spinner &spinner)
boost::shared_ptr< WalkAnalyzer >
vigir_footstep_planning
Definition:
walk_analyzer.h:48
vigir_footstep_planning::WalkAnalyzerNode
Definition:
walk_analyzer_node.h:42
vigir_footstep_planning::WalkAnalyzer::stepFeedbackCallback
void stepFeedbackCallback(const msgs::StepPlanFeedback &feedback)
Definition:
walk_analyzer.cpp:62
vigir_footstep_planning::WalkAnalyzerNode::WalkAnalyzerNode
WalkAnalyzerNode(ros::NodeHandle &nh, WalkAnalyzer::Ptr walk_anaylzer)
Definition:
walk_analyzer_node.cpp:5
vigir_footstep_planning::WalkAnalyzer::executeStepPlanResultCallback
void executeStepPlanResultCallback(const msgs::ExecuteStepPlanActionResult &execute_result)
Definition:
walk_analyzer.cpp:55
vigir_footstep_planning::WalkAnalyzerNode::step_feedback_sub
ros::Subscriber step_feedback_sub
Definition:
walk_analyzer_node.h:53
walk_analyzer_node.h
vigir_footstep_planning::WalkAnalyzerNode::~WalkAnalyzerNode
virtual ~WalkAnalyzerNode()
Definition:
walk_analyzer_node.cpp:19
vigir_walk_monitor
Author(s): Alexander Stumpf
autogenerated on Sun Nov 17 2019 03:30:09