forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pointcloud based probabilistic occupancy grid map (#624)
* initial commit Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * ci(pre-commit): autofix * change param Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * update readme Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * add launch Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * ci(pre-commit): autofix * update readme Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * ci(pre-commit): autofix * fix typo Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * update readme Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * ci(pre-commit): autofix * cosmetic change Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * add single frame mode Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com> * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5707236
commit adfb7bd
Showing
32 changed files
with
1,189 additions
and
116 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
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
31 changes: 31 additions & 0 deletions
31
perception/detected_object_validation/launch/occupancy_grid_based_validator.launch.xml
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<launch> | ||
<arg name="input/detected_objects" default="/perception/object_recognition/detection/objects" /> | ||
<arg name="output/objects" default="/perception/object_recognition/detection/validation/occupancy_grid_based/objects" /> | ||
|
||
<arg name="input/laserscan" default="/perception/occupancy_grid_map/virtual_scan/laserscan" /> | ||
<arg name="input/occupancy_grid_map" default="/perception/object_recognition/detection/validation/occupancy_grid_based/single_frame_occupancy_grid_map" /> | ||
|
||
|
||
<node pkg="probabilistic_occupancy_grid_map" exec="laserscan_based_occupancy_grid_map_node" name="single_frame_laserscan_occupancy_grid_map" output="screen"> | ||
<remap from="~/input/laserscan" to="$(var input/laserscan)"/> | ||
<remap from="~/output/occupancy_grid_map" to="$(var input/occupancy_grid_map)"/> | ||
<param name="input_obstacle_pointcloud" value="false"/> | ||
<param name="input_obstacle_and_raw_pointcloud" value="false"/> | ||
<param name="map_resolution" value="0.2"/> | ||
<param name="map_length" value="200.0"/> | ||
<param name="map_width" value="20.0"/> | ||
<param name="map_frame" value="base_link"/> | ||
<param name="enable_single_frame_mode" value="true"/> | ||
</node> | ||
|
||
<node pkg="detected_object_validation" exec="occupancy_grid_based_validator_node" name="occupancy_grid_based_validator_node" output="screen"> | ||
<remap from="~/input/detected_objects" to="$(var input/detected_objects)" /> | ||
<remap from="~/input/occupancy_grid_map" to="$(var input/occupancy_grid_map)" /> | ||
<remap from="~/output/objects" to="$(var output/objects)" /> | ||
<param name="map_frame" value="base_link" /> | ||
<param name="enable_debug" value="false" /> | ||
</node> | ||
|
||
</launch> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(probabilistic_occupancy_grid_map) | ||
|
||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake_auto REQUIRED) | ||
find_package(eigen3_cmake_module REQUIRED) | ||
find_package(Eigen3 REQUIRED) | ||
find_package(PCL REQUIRED) | ||
ament_auto_find_build_dependencies() | ||
|
||
# PointcloudBasedOccupancyGridMap | ||
ament_auto_add_library(pointcloud_based_occupancy_grid_map SHARED | ||
src/pointcloud_based_occupancy_grid_map/pointcloud_based_occupancy_grid_map_node.cpp | ||
src/pointcloud_based_occupancy_grid_map/occupancy_grid_map.cpp | ||
src/updater/occupancy_grid_map_binary_bayes_filter_updater.cpp | ||
) | ||
|
||
target_link_libraries(pointcloud_based_occupancy_grid_map | ||
${PCL_LIBRARIES} | ||
) | ||
|
||
rclcpp_components_register_node(pointcloud_based_occupancy_grid_map | ||
PLUGIN "occupancy_grid_map::PointcloudBasedOccupancyGridMapNode" | ||
EXECUTABLE pointcloud_based_occupancy_grid_map_node | ||
) | ||
|
||
# LaserscanBasedOccupancyGridMap | ||
ament_auto_add_library(laserscan_based_occupancy_grid_map SHARED | ||
src/laserscan_based_occupancy_grid_map/laserscan_based_occupancy_grid_map_node.cpp | ||
src/laserscan_based_occupancy_grid_map/occupancy_grid_map.cpp | ||
src/updater/occupancy_grid_map_binary_bayes_filter_updater.cpp | ||
) | ||
|
||
target_link_libraries(laserscan_based_occupancy_grid_map | ||
${PCL_LIBRARIES} | ||
) | ||
|
||
rclcpp_components_register_node(laserscan_based_occupancy_grid_map | ||
PLUGIN "occupancy_grid_map::LaserscanBasedOccupancyGridMapNode" | ||
EXECUTABLE laserscan_based_occupancy_grid_map_node | ||
) | ||
|
||
|
||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
list(APPEND AMENT_LINT_AUTO_EXCLUDE | ||
# To avoid conflicts between cpplint and uncrustify w.r.t. inclusion guards | ||
ament_cmake_uncrustify | ||
) | ||
ament_lint_auto_find_test_dependencies() | ||
endif() | ||
|
||
ament_auto_package( | ||
INSTALL_TO_SHARE | ||
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# probabilistic_occupancy_grid_map | ||
|
||
## Purpose | ||
|
||
This package outputs the probability of having an obstacle as occupancy grid map. | ||
![pointcloud_based_occupancy_grid_map_sample_image](./image/pointcloud_based_occupancy_grid_map_sample_image.gif) | ||
|
||
## References/External links | ||
|
||
- [Pointcloud based occupancy grid map](pointcloud-based-occupancy-grid-map.md) | ||
- [Laserscan based occupancy grid map](laserscan-based-occupancy-grid-map.md) |
File renamed without changes
File renamed without changes
4 changes: 4 additions & 0 deletions
4
...babilistic_occupancy_grid_map/image/pointcloud_based_occupancy_grid_map_bev.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.85 MB
...c_occupancy_grid_map/image/pointcloud_based_occupancy_grid_map_sample_image.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
...stic_occupancy_grid_map/image/pointcloud_based_occupancy_grid_map_side_view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
..._occupancy_grid_map/image/pointcloud_based_occupancy_grid_map_side_view_1st.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
..._occupancy_grid_map/image/pointcloud_based_occupancy_grid_map_side_view_2nd.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
..._occupancy_grid_map/image/pointcloud_based_occupancy_grid_map_side_view_3rd.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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.