Main Page
Namespaces
Classes
Files
File List
File Members
src
FootstepPlannerNode.cpp
Go to the documentation of this file.
1
/*
2
* A footstep planner for humanoid robots
3
*
4
* Copyright 2010-2011 Johannes Garimort, Armin Hornung, University of Freiburg
5
* http://www.ros.org/wiki/footstep_planner
6
*
7
*
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, version 3.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#include <
footstep_planner/FootstepPlannerNode.h
>
22
23
namespace
footstep_planner
24
{
25
FootstepPlannerNode::FootstepPlannerNode
()
26
{
27
ros::NodeHandle
nh;
28
29
// provide callbacks to interact with the footstep planner:
30
ivGridMapSub
= nh.
subscribe
<nav_msgs::OccupancyGrid>(
"map"
, 1, &
FootstepPlanner::mapCallback
, &
ivFootstepPlanner
);
31
ivGoalPoseSub
= nh.
subscribe
<geometry_msgs::PoseStamped>(
"goal"
, 1, &
FootstepPlanner::goalPoseCallback
, &
ivFootstepPlanner
);
32
ivStartPoseSub
= nh.
subscribe
<geometry_msgs::PoseWithCovarianceStamped>(
"initialpose"
, 1, &
FootstepPlanner::startPoseCallback
, &
ivFootstepPlanner
);
33
34
// service:
35
ivFootstepPlanService
= nh.
advertiseService
(
"plan_footsteps"
, &
FootstepPlanner::planService
, &
ivFootstepPlanner
);
36
ivFootstepPlanFeetService
= nh.
advertiseService
(
"plan_footsteps_feet"
, &
FootstepPlanner::planFeetService
, &
ivFootstepPlanner
);
37
}
38
39
40
FootstepPlannerNode::~FootstepPlannerNode
()
41
{}
42
}
ros::NodeHandle
footstep_planner::FootstepPlannerNode::ivStartPoseSub
ros::Subscriber ivStartPoseSub
Definition:
FootstepPlannerNode.h:49
footstep_planner::FootstepPlannerNode::ivFootstepPlanner
FootstepPlanner ivFootstepPlanner
Definition:
FootstepPlannerNode.h:45
footstep_planner::FootstepPlanner::planFeetService
bool planFeetService(humanoid_nav_msgs::PlanFootstepsBetweenFeet::Request &req, humanoid_nav_msgs::PlanFootstepsBetweenFeet::Response &resp)
Service handle to plan footsteps.
Definition:
FootstepPlanner.cpp:570
ros::NodeHandle::subscribe
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
footstep_planner::FootstepPlanner::goalPoseCallback
void goalPoseCallback(const geometry_msgs::PoseStampedConstPtr &goal_pose)
Callback to set the goal pose as a robot pose centered between two feet. If the start pose has been s...
Definition:
FootstepPlanner.cpp:622
ros::NodeHandle::advertiseService
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
footstep_planner::FootstepPlannerNode::ivGoalPoseSub
ros::Subscriber ivGoalPoseSub
Definition:
FootstepPlannerNode.h:47
footstep_planner::FootstepPlanner::mapCallback
void mapCallback(const nav_msgs::OccupancyGridConstPtr &occupancy_map)
Callback to set the map.
Definition:
FootstepPlanner.cpp:655
footstep_planner::FootstepPlanner::startPoseCallback
void startPoseCallback(const geometry_msgs::PoseWithCovarianceStampedConstPtr &start_pose)
Callback to set the start pose as a robot pose centered between two feet. If the goal pose has been s...
Definition:
FootstepPlanner.cpp:638
footstep_planner::FootstepPlannerNode::ivGridMapSub
ros::Subscriber ivGridMapSub
Definition:
FootstepPlannerNode.h:48
footstep_planner::FootstepPlannerNode::FootstepPlannerNode
FootstepPlannerNode()
Definition:
FootstepPlannerNode.cpp:25
footstep_planner::FootstepPlannerNode::ivFootstepPlanService
ros::ServiceServer ivFootstepPlanService
Definition:
FootstepPlannerNode.h:52
FootstepPlannerNode.h
footstep_planner::FootstepPlannerNode::ivFootstepPlanFeetService
ros::ServiceServer ivFootstepPlanFeetService
Definition:
FootstepPlannerNode.h:53
footstep_planner::FootstepPlanner::planService
bool planService(humanoid_nav_msgs::PlanFootsteps::Request &req, humanoid_nav_msgs::PlanFootsteps::Response &resp)
Service handle to plan footsteps.
Definition:
FootstepPlanner.cpp:549
footstep_planner::FootstepPlannerNode::~FootstepPlannerNode
virtual ~FootstepPlannerNode()
Definition:
FootstepPlannerNode.cpp:40
footstep_planner
Definition:
Footstep.h:28
footstep_planner
Author(s): Johannes Garimort, Armin Hornung
autogenerated on Mon Jun 10 2019 13:38:24