forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port pure pursuit (autowarefoundation#134)
* porting pure_pursuit in progress * ported pure_pursuit from ROS1 to ROS2
- Loading branch information
Showing
15 changed files
with
234 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,41 @@ | ||
cmake_minimum_required(VERSION 3.0.2) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(pure_pursuit) | ||
|
||
add_compile_options(-std=c++14) | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic -Wno-unused-parameter) | ||
endif() | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
autoware_control_msgs | ||
autoware_planning_msgs | ||
geometry_msgs | ||
roscpp | ||
sensor_msgs | ||
std_msgs | ||
tf2 | ||
tf2_eigen | ||
tf2_ros | ||
) | ||
find_package(ament_cmake_auto REQUIRED) | ||
ament_auto_find_build_dependencies() | ||
|
||
find_package(Eigen3 REQUIRED) | ||
|
||
catkin_package( | ||
INCLUDE_DIRS | ||
include | ||
CATKIN_DEPENDS | ||
autoware_control_msgs | ||
autoware_planning_msgs | ||
geometry_msgs | ||
sensor_msgs | ||
std_msgs | ||
tf2 | ||
tf2_eigen | ||
tf2_ros | ||
) | ||
|
||
include_directories( | ||
include | ||
${EIGEN3_INCLUDE_DIRS} | ||
${catkin_INCLUDE_DIRS} | ||
) | ||
|
||
# pure_pursuit_core | ||
add_library(pure_pursuit_core | ||
ament_auto_add_library(pure_pursuit_core SHARED | ||
src/pure_pursuit_core/planning_utils.cpp | ||
src/pure_pursuit_core/pure_pursuit.cpp | ||
src/pure_pursuit_core/interpolate.cpp | ||
) | ||
|
||
target_link_libraries(pure_pursuit_core | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies(pure_pursuit_core | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# pure_pursuit | ||
add_executable(pure_pursuit | ||
ament_auto_add_executable(pure_pursuit | ||
src/pure_pursuit/main.cpp | ||
src/pure_pursuit/pure_pursuit_node.cpp | ||
src/pure_pursuit/pure_pursuit_viz.cpp | ||
) | ||
|
||
target_link_libraries(pure_pursuit | ||
pure_pursuit_core | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies(pure_pursuit | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# Install executables and/or libraries | ||
install( | ||
TARGETS | ||
pure_pursuit_core | ||
pure_pursuit | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) | ||
|
||
# Install project namespaced headers | ||
install(DIRECTORY include/${PROJECT_NAME}/ | ||
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} | ||
) | ||
|
||
# Install files | ||
install( | ||
DIRECTORY | ||
config | ||
launch | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
ament_auto_package(INSTALL_TO_SHARE | ||
launch | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.