cb_base_navigation
src
global_planner.cpp
Go to the documentation of this file.
1
#include "
cb_base_navigation/global_planner/global_planner_interface.h
"
2
3
#include <
costmap_2d/costmap_2d_ros.h
>
4
5
#include <ros/init.h>
6
#include <ros/duration.h>
7
8
#include <tf2_ros/buffer.h>
9
#include <tf2_ros/transform_listener.h>
10
11
int
main
(
int
argc,
char
** argv){
12
13
ros::init(argc, argv,
"cb_global_planner_interface"
);
14
15
// Transform listener
16
tf2_ros::Buffer buffer(ros::Duration(10));
17
tf2_ros::TransformListener tf(buffer);
18
19
// Setup the global costmap
20
costmap_2d::Costmap2DROS
costmap(
"global_costmap"
, buffer);
21
costmap.
start
();
22
23
// Create planner interface
24
cb_global_planner::GlobalPlannerInterface
gpi(&costmap, &buffer);
25
26
// Spin :)
27
ros::spin();
28
29
return
(0);
30
}
cb_global_planner::GlobalPlannerInterface
Definition:
global_planner_interface.h:39
costmap_2d_ros.h
main
int main(int argc, char **argv)
Definition:
global_planner.cpp:11
costmap_2d::Costmap2DROS::start
void start()
global_planner_interface.h
costmap_2d::Costmap2DROS
Generated on Sun Feb 23 2025 04:34:29 for cb_base_navigation by
1.8.17