This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
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 map_loader to ROS2 Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp> * fix unintended change Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp> * Update map/map_loader/CMakeLists.txt Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
- Loading branch information
1 parent
280cdc7
commit b93a865
Showing
10 changed files
with
106 additions
and
132 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,69 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.0.2) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(map_loader) | ||
|
||
add_compile_options(-std=c++14) | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
geometry_msgs | ||
lanelet2_extension | ||
pcl_ros | ||
roscpp | ||
std_msgs | ||
tf2_geometry_msgs | ||
tf2_ros | ||
visualization_msgs | ||
) | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
|
||
find_package(PCL REQUIRED COMPONENTS io) | ||
find_package(Boost REQUIRED COMPONENTS filesystem) | ||
|
||
catkin_package( | ||
INCLUDE_DIRS include | ||
CATKIN_DEPENDS | ||
geometry_msgs | ||
std_msgs | ||
tf2_geometry_msgs | ||
visualization_msgs | ||
DEPENDS | ||
Boost | ||
) | ||
|
||
include_directories( | ||
include | ||
${Boost_INCLUDE_DIRS} | ||
${catkin_INCLUDE_DIRS} | ||
) | ||
find_package(ament_cmake_auto REQUIRED) | ||
ament_auto_find_build_dependencies() | ||
|
||
add_executable(pointcloud_map_loader src/pointcloud_map_loader/main.cpp src/pointcloud_map_loader/pointcloud_map_loader_node.cpp) | ||
target_link_libraries(pointcloud_map_loader ${Boost_LIBRARIES} ${catkin_LIBRARIES}) | ||
add_dependencies(pointcloud_map_loader ${catkin_EXPORTED_TARGETS}) | ||
ament_auto_add_executable(pointcloud_map_loader src/pointcloud_map_loader/main.cpp src/pointcloud_map_loader/pointcloud_map_loader_node.cpp) | ||
target_link_libraries(pointcloud_map_loader ${Boost_LIBRARIES} ${PCL_LIBRARIES}) | ||
|
||
add_executable(lanelet2_map_loader src/lanelet2_map_loader/lanelet2_map_loader.cpp) | ||
target_link_libraries(lanelet2_map_loader ${catkin_LIBRARIES}) | ||
add_dependencies(lanelet2_map_loader ${catkin_EXPORTED_TARGETS}) | ||
ament_auto_add_executable(lanelet2_map_loader src/lanelet2_map_loader/lanelet2_map_loader.cpp) | ||
|
||
add_executable(lanelet2_map_visualization src/lanelet2_map_loader/lanelet2_map_visualization.cpp) | ||
target_link_libraries(lanelet2_map_visualization ${catkin_LIBRARIES}) | ||
add_dependencies(lanelet2_map_visualization ${catkin_EXPORTED_TARGETS}) | ||
|
||
## Install executables and/or libraries | ||
install( | ||
TARGETS | ||
pointcloud_map_loader | ||
lanelet2_map_loader | ||
lanelet2_map_visualization | ||
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} | ||
) | ||
ament_auto_add_executable(lanelet2_map_visualization src/lanelet2_map_loader/lanelet2_map_visualization.cpp) | ||
|
||
## Install files | ||
install( | ||
DIRECTORY | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<launch> | ||
<arg name="pointcloud_map_path" /> | ||
|
||
<node pkg="map_loader" type="pointcloud_map_loader" name="pointcloud_map_loader" args="$(arg pointcloud_map_path)"> | ||
<remap from="~output/pointcloud_map" to="/map/pointcloud_map" /> | ||
<node pkg="map_loader" exec="pointcloud_map_loader" name="pointcloud_map_loader" args="$(var pointcloud_map_path)"> | ||
<remap from="output/pointcloud_map" to="/map/pointcloud_map" /> | ||
</node> | ||
</launch> |
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,24 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<package format="3"> | ||
<name>map_loader</name> | ||
<version>0.1.0</version> | ||
<description>The map_loader package</description> | ||
<maintainer email="ryohsuke.mitsudome@tier4.jp">mitsudome-r</maintainer> | ||
<maintainer email="kenji.miyake@tier4.jp">Kenji Miyake</maintainer> | ||
<license>Apache 2</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
<buildtool_depend>ament_cmake_auto</buildtool_depend> | ||
|
||
<depend>rclcpp</depend> | ||
<depend>geometry_msgs</depend> | ||
<depend>lanelet2_extension</depend> | ||
<depend>libboost-filesystem-dev</depend> | ||
<depend>libpcl-all-dev</depend> | ||
<depend>pcl_ros</depend> | ||
<depend>roscpp</depend> | ||
<depend>pcl_conversions</depend> | ||
<depend>std_msgs</depend> | ||
<depend>tf2_geometry_msgs</depend> | ||
<depend>tf2_ros</depend> | ||
<depend>tf</depend> | ||
<depend>visualization_msgs</depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
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.