forked from autowarefoundation/autoware_launch
-
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.
Merge pull request autowarefoundation#809 from tier4/sync-tier4-upstream
chore: sync upstream
- Loading branch information
Showing
20 changed files
with
293 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# This workflow is intended for the use in the repositories created by forking tier4/autoware_launch. | ||
name: sync-tier4-upstream-up-to-tag | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
sync-target-tag: | ||
description: sync target tag like v0.24.0 | ||
required: true | ||
type: string | ||
default: "" | ||
|
||
jobs: | ||
sync-tier4-upstream-up-to-tag: | ||
runs-on: ubuntu-latest | ||
env: | ||
BASE_BRANCH: tier4/main | ||
SYNC_TARGET_REPOSITORY: https://github.com/tier4/autoware_launch.git | ||
steps: | ||
- name: Generate token | ||
id: generate-token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.PRIVATE_KEY }} | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.BASE_BRANCH }} | ||
fetch-depth: 0 | ||
|
||
- name: Set git config | ||
uses: autowarefoundation/autoware-github-actions/set-git-config@v1 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
|
||
- name: Sync tag | ||
run: | | ||
git remote add sync-target ${{ env.SYNC_TARGET_REPOSITORY }} | ||
git fetch -pPtf --all | ||
git reset --hard "${{ inputs.sync-target-tag }}" | ||
git remote rm sync-target | ||
shell: bash | ||
|
||
- name: Generate changelog | ||
id: generate-changelog | ||
uses: autowarefoundation/autoware-github-actions/generate-changelog@v1 | ||
with: | ||
git-cliff-args: origin/${{ env.BASE_BRANCH }}..HEAD | ||
|
||
- name: Replace PR number to URL | ||
id: replace-pr-number-to-url | ||
run: | | ||
# Output multiline strings: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-a-multiline-string | ||
changelog=$(echo "$CHANGELOG" | sed -r "s|\(#([0-9]+)\)|("${REPO_URL%.git}"/pull/\1)|g") | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
echo "changelog<<$EOF" >> $GITHUB_OUTPUT | ||
echo "$changelog" >> $GITHUB_OUTPUT | ||
echo "$EOF" >> $GITHUB_OUTPUT | ||
env: | ||
CHANGELOG: ${{ steps.generate-changelog.outputs.changelog }} | ||
REPO_URL: ${{ env.SYNC_TARGET_REPOSITORY }} | ||
shell: bash | ||
|
||
- name: Create PR | ||
id: create-pr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
base: ${{ env.BASE_BRANCH }} | ||
branch: sync-tier4-upstream-${{ inputs.sync-target-tag }} | ||
title: "chore: sync upstream up to ${{ inputs.sync-target-tag }}" | ||
body: ${{ steps.replace-pr-number-to-url.outputs.changelog }} | ||
labels: | | ||
bot | ||
sync-tier4-upstream | ||
author: github-actions <[email protected]> | ||
signoff: true | ||
delete-branch: true | ||
|
||
- name: Check outputs | ||
run: | | ||
echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}" | ||
- name: Enable auto-merge | ||
if: ${{ steps.create-pr.outputs.pull-request-operation == 'created' }} | ||
run: gh pr merge --merge --auto "${{ steps.create-pr.outputs.pull-request-number }}" | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} |
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
53 changes: 53 additions & 0 deletions
53
.../perception/occupancy_grid_map/multi_lidar_pointcloud_based_occupancy_grid_map.param.yaml
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,53 @@ | ||
# sample grid map fusion parameters for sample sensor kit | ||
/**: | ||
ros__parameters: | ||
# shared parameters | ||
shared_config: | ||
map_frame: "map" | ||
base_link_frame: "base_link" | ||
# center of the grid map | ||
gridmap_origin_frame: "base_link" | ||
|
||
map_resolution: 0.5 # [m] | ||
map_length_x: 150.0 # [m] | ||
map_length_y: 150.0 # [m] | ||
|
||
# each grid map parameters | ||
ogm_creation_config: | ||
height_filter: | ||
use_height_filter: true | ||
min_height: -1.0 | ||
max_height: 2.0 | ||
enable_single_frame_mode: true | ||
# use sensor pointcloud to filter obstacle pointcloud | ||
filter_obstacle_pointcloud_by_raw_pointcloud: true | ||
|
||
grid_map_type: "OccupancyGridMapFixedBlindSpot" | ||
OccupancyGridMapFixedBlindSpot: | ||
distance_margin: 1.0 | ||
OccupancyGridMapProjectiveBlindSpot: | ||
projection_dz_threshold: 0.01 # [m] for avoiding null division | ||
obstacle_separation_threshold: 1.0 # [m] fill the interval between obstacles with unknown for this length | ||
pub_debug_grid: false | ||
|
||
# parameter settings for ogm fusion | ||
fusion_config: | ||
# following parameters are shared: map_frame, base_link_frame, gridmap_origin_frame, map_resolution, map_length | ||
# Setting1: tune ogm creation parameters | ||
raw_pointcloud_topics: # put each sensor's pointcloud topic | ||
- "/sensing/lidar/top/pointcloud" | ||
- "/sensing/lidar/left/pointcloud" | ||
- "/sensing/lidar/right/pointcloud" | ||
fusion_input_ogm_topics: | ||
- "/perception/occupancy_grid_map/top_lidar/map" | ||
- "/perception/occupancy_grid_map/left_lidar/map" | ||
- "/perception/occupancy_grid_map/right_lidar/map" | ||
# reliability of each sensor (0.0 ~ 1.0) only work with "log-odds" and "dempster-shafer" | ||
input_ogm_reliabilities: | ||
- 1.0 | ||
- 0.6 | ||
- 0.6 | ||
|
||
# Setting2: tune ogm fusion parameters | ||
## choose fusion method from ["overwrite", "log-odds", "dempster-shafer"] | ||
fusion_method: "overwrite" |
20 changes: 20 additions & 0 deletions
20
..._launch/config/perception/occupancy_grid_map/synchronized_grid_map_fusion_node.param.yaml
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,20 @@ | ||
/**: | ||
ros__parameters: | ||
# 1. fusion parameters | ||
fusion_input_ogm_topics: ["topic1", "topic2"] | ||
input_ogm_reliabilities: [0.8, 0.2] | ||
fusion_method: "overwrite" # choose from ["overwrite", "log-odds", "dempster-shafer"] | ||
|
||
# 2. synchronization settings | ||
match_threshold_sec: 0.01 # 10ms | ||
timeout_sec: 0.1 # 100ms | ||
input_offset_sec: [0.0, 0.0] # no offset | ||
|
||
# 3. settings for fused fusion map | ||
# remember resolution and map size should be same with input maps | ||
map_frame_: "map" | ||
base_link_frame_: "base_link" | ||
grid_map_origin_frame_: "base_link" | ||
fusion_map_length_x: 100.0 | ||
fusion_map_length_y: 100.0 | ||
fusion_map_resolution: 0.5 |
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.