cb_base_navigation
src
local_planner.cpp
Go to the documentation of this file.
1
#include "
cb_base_navigation/local_planner/local_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_local_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(
"local_costmap"
, buffer);
21
22
// Create the base controller interface
23
cb_local_planner::LocalPlannerInterface
lpi(&costmap, &buffer);
24
25
ros::spin();
26
27
return
0;
28
}
cb_local_planner::LocalPlannerInterface
Definition:
local_planner_interface.h:43
costmap_2d_ros.h
main
int main(int argc, char **argv)
Definition:
local_planner.cpp:11
local_planner_interface.h
costmap_2d::Costmap2DROS
Generated on Sun Feb 23 2025 04:34:29 for cb_base_navigation by
1.8.17