Skip to content

Commit b7ce37a

Browse files
committed
name update
1 parent c6baf73 commit b7ce37a

File tree

7 files changed

+30
-47
lines changed

7 files changed

+30
-47
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ install_manifest.txt
99
compile_commands.json
1010
CTestTestfile.cmake
1111
_deps
12-
.idea/
13-
cmake-build-debug/
12+
/cmake-build-*
13+
/build
14+
15+
/.vscode
16+
/.idea

CMakeLists.txt

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,41 @@
1-
cmake_minimum_required(VERSION 2.8.3)
2-
project(apf_planner)
1+
cmake_minimum_required(VERSION 3.0.2)
2+
project(apf_local_planner)
33

44
set(CMAKE_BUILD_TYPE "Release")
5-
set(CMAKE_CXX_FLAGS "-std=c++14")
5+
set(CMAKE_CXX_FLAGS "-std=c++17")
66
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
77

8-
set(CMAKE_PREFIX_PATH /opt/ros/noetic;/usr/local;$ENV{HOME}/Prometheus/devel/;$ENV{HOME}/planner_ws/devel;$ENV{HOME}/mapping_ws/devel;$ENV{HOME}/mapping_ws/devel_isolated;$ENV{HOME}/tool_ws/devel)
9-
message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
10-
118
find_package(Eigen3 REQUIRED)
129
find_package(PCL 1.7 REQUIRED)
1310
find_package(catkin REQUIRED COMPONENTS
1411
roscpp
15-
rospy
16-
std_msgs
17-
sensor_msgs
18-
geometry_msgs
19-
nav_msgs
20-
visualization_msgs
21-
prometheus_msgs
22-
mavros_msgs
12+
sensor_msgs
13+
geometry_msgs
14+
nav_msgs
15+
mavros_msgs
2316
)
2417

2518
catkin_package(
2619
INCLUDE_DIRS include
27-
LIBRARIES Local_Planning
2820
# DEPENDS system_lib
2921
)
3022

3123
include_directories(
3224
SYSTEM
3325
include
34-
${PROJECT_SOURCE_DIR}/include
3526
${catkin_INCLUDE_DIRS}
3627
${Eigen3_INCLUDE_DIRS}
3728
${PCL_INCLUDE_DIRS}
38-
$ENV{HOME}/Prometheus/Modules/common/include
3929
)
4030
link_directories(${PCL_LIBRARY_DIRS})
4131

42-
add_executable(local_planner_main
32+
add_executable(apf_local_planner
4333
src/planner_node.cpp
4434
src/local_planning.cpp
4535
src/apf.cpp
46-
)
36+
)
4737

48-
target_link_libraries(local_planner_main
38+
target_link_libraries(apf_local_planner
4939
${catkin_LIBRARIES}
5040
${PCL_LIBRARIES}
5141
)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# APF-Planner
1+
# apf_local_planner
22

3-
The apf_planner package, modified from [local_planner](https://github.com/amov-lab/Prometheus/tree/v1.1/Modules/planning/local_planner)
3+
The apf_local_planner package, modified from [local_planner](https://github.com/amov-lab/Prometheus/tree/v1.1/Modules/planning/local_planner)
44

55
![HitCount](https://img.shields.io/endpoint?url=https%3A%2F%2Fhits.dwyl.com%2FHuaYuXiao%2FAPF-Planner.json%3Fcolor%3Dpink)
66
![Static Badge](https://img.shields.io/badge/ROS-noetic-22314E?logo=ros)
7-
![Static Badge](https://img.shields.io/badge/C%2B%2B-14-00599C?logo=cplusplus)
7+
![Static Badge](https://img.shields.io/badge/C%2B%2B-17-00599C?logo=cplusplus)
88
![Static Badge](https://img.shields.io/badge/MATLAB-2023b-?logo=)
99
![Static Badge](https://img.shields.io/badge/Ubuntu-20.04.6-E95420?logo=ubuntu)
1010

@@ -16,11 +16,11 @@ video on [bilibili](https://www.bilibili.com/video/BV1Lr421u7z9/)
1616
- v1.1.0: drone facing front while moving
1717

1818
```bash
19-
catkin_make install --source src/APF-Planner --build build/apf_planner
19+
catkin_make --source plan/apf_local_planner --build plan/apf_local_planner/build
2020
```
2121

2222
```bash
23-
roslaunch apf_planner simulation.launch
23+
roslaunch apf_local_planner simulation.launch
2424
```
2525

2626
![rqt_graph](log/2024-05-08/rosgraph.png)
File renamed without changes.

launch/simulation.launch

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<launch>
2-
<!-- parameter for planner -->
3-
<arg name="model" default="p450_3Dlidar_D435i"/>
4-
<arg name="planner" default="APF-Planner"/>
5-
62
<!-- world -->
73
<include file="$(find prometheus_gazebo)/launch/GFKD.launch"/>
84

@@ -15,8 +11,8 @@
1511
<include file="$(find apf_planner)/launch/mapping.launch"/>
1612

1713
<!-- 启动导航 -->
18-
<include file="$(find apf_planner)/launch/$(arg planner).launch"/>
14+
<include file="$(find apf_local_planner)/launch/apf_local_planner.launch"/>
1915

2016
<!-- 启动rviz -->
21-
<node type="rviz" name="rviz" pkg="rviz" args="-d $(find apf_planner)/config/$(arg planner).rviz"/>
17+
<node type="rviz" name="rviz" pkg="rviz" args="-d $(find apf_local_planner)/config/apf_local_planner.rviz"/>
2218
</launch>

package.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0"?>
22
<package format="2">
3-
<name>apf_planner</name>
3+
<name>apf_local_planner</name>
44
<version>1.2.0</version>
55
<description>
6-
The apf_planner package
6+
The apf_local_planner package
77
</description>
88

99
<!-- One maintainer tag required, multiple allowed, one person per tag -->
@@ -14,7 +14,7 @@
1414
<!-- One license tag required, multiple allowed, one license per tag -->
1515
<!-- Commonly used license strings: -->
1616
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
17-
<license>Apache</license>
17+
<license>MIT</license>
1818

1919
<!-- Url tags are optional, but multiple are allowed, one per tag -->
2020
<!-- Optional attribute type can be: website, bugtracker, or repository -->
@@ -53,7 +53,6 @@
5353
<depend>sensor_msgs</depend>
5454
<depend>geometry_msgs</depend>
5555
<depend>nav_msgs</depend>
56-
<depend>prometheus_msgs</depend>
5756

5857
<!-- The export tag contains other, unspecified, tags -->
5958
<export>

src/planner_node.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
#include <ros/ros.h>
2-
#include <visualization_msgs/Marker.h>
3-
4-
52
#include "local_planning.h"
63

7-
84
using namespace Local_Planning;
95

10-
int main(int argc, char** argv)
11-
{
12-
ros::init(argc, argv, "local_planner_node");
6+
int main(int argc, char** argv){
7+
ros::init(argc, argv, "apf_local_planner");
138
ros::NodeHandle nh("~");
149

15-
Local_Planner local_planning;
16-
local_planning.init(nh);
10+
Local_Planner apf_local_planner;
11+
apf_local_planner.init(nh);
1712

1813
ros::spin();
1914

2015
return 0;
21-
}
16+
}

0 commit comments

Comments
 (0)