Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/cancel-previous-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

# Deprecated: Use concurrency in each workflow instead.

name: cancel-previous-workflows

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/delete-closed-pr-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- cron: 0 0 * * *
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
delete-closed-pr-docs:
runs-on: ubuntu-22.04
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
push:
branches:
- main
- galactic
paths:
- mkdocs.yaml
- "**/*.md"
Expand All @@ -22,15 +21,19 @@ on:
- labeled
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
prevent-no-label-execution:
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
make-sure-label-is-present:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: run:deploy-docs

deploy-docs:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
needs: make-sure-label-is-present
if: ${{ github.event_name != 'pull_request_target' || needs.make-sure-label-is-present.outputs.result == 'true' }}
runs-on: ubuntu-22.04
steps:
- name: Check out repository
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/github-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
type: string
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
github-release:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -60,7 +64,7 @@ jobs:
run: |
gh release ${{ steps.select-verb.outputs.verb }} "${{ steps.set-tag-name.outputs.tag-name }}" \
--draft \
--title "Release ${{ steps.set-tag-name.outputs.tag-name }}" \
--title "${{ steps.set-tag-name.outputs.tag-name }}" \
--notes "$NOTES"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pre-commit-optional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ name: pre-commit-optional
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit-optional:
runs-on: ubuntu-22.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ name: pre-commit
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit:
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ on:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
check-secret:
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
secrets:
secret: ${{ secrets.APP_ID }}
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sync-files:
needs: check-secret
if: ${{ needs.check-secret.outputs.set == 'true' }}
runs-on: ubuntu-22.04
steps:
- name: Generate token
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config-optional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
# https://pre-commit.ci/#configuration
ci:
autofix_commit_msg: "style(pre-commit-optional): autofix"
# we already have our own daily update mechanism, we set this to quarterly
autoupdate_schedule: quarterly
autoupdate_commit_msg: "ci(pre-commit-optional): quarterly autoupdate"

repos:
- repo: https://github.com/tcort/markdown-link-check
rev: v3.13.7
rev: v3.14.2
hooks:
- id: markdown-link-check
args: [--quiet, --config=.markdown-link-check.json]
17 changes: 9 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# https://pre-commit.ci/#configuration
ci:
autofix_commit_msg: "style(pre-commit): autofix"
# we already have our own daily update mechanism, we set this to quarterly
autoupdate_schedule: quarterly
autoupdate_commit_msg: "ci(pre-commit): quarterly autoupdate"

Expand All @@ -26,7 +25,7 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
rev: v0.47.0
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix]
Expand All @@ -35,9 +34,10 @@ repos:
rev: v4.0.0-alpha.8
hooks:
- id: prettier
args: [--no-error-on-unmatched-pattern]

- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
rev: v1.38.0
hooks:
- id: yamllint

Expand All @@ -47,7 +47,7 @@ repos:
- id: check-package-depends

- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.10.0
rev: v0.10.2
hooks:
- id: flake8-ros
- id: prettier-xacro
Expand All @@ -68,18 +68,19 @@ repos:
args: [-w, -s, -i=4]

- repo: https://github.com/pycqa/isort
rev: 6.1.0
rev: 7.0.0
hooks:
- id: isort
args: [--profile=black, --line-length=100]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
rev: 26.1.0
hooks:
- id: black
args: [--line-length=100]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.2
rev: v21.1.8
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand All @@ -92,7 +93,7 @@ repos:
exclude: .cu

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.34.0
rev: 0.36.2
hooks:
- id: check-metaschema
files: ^.+/schema/.*schema\.json$
Expand Down
4 changes: 2 additions & 2 deletions bag2lanelet/scripts/bag2way.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def bag2pose(input_path, interval=[0.1, 10000.0]):
prev_trans = None
# read topic and fix timestamp if lidar, and write
while reader.has_next():
(topic, data, stamp) = reader.read_next()
topic, data, stamp = reader.read_next()
if topic == "/tf":
msg_type = get_message(type_map[topic])
msg = deserialize_message(data, msg_type)
Expand Down Expand Up @@ -76,7 +76,7 @@ def bag2point_stamped(input_path, too_close, too_far):
prev_trans = None
# read topic and fix timestamp if lidar, and write
while reader.has_next():
(topic, data, stamp) = reader.read_next()
topic, data, stamp = reader.read_next()
if topic == "/tf":
msg_type = get_message(type_map[topic])
msg = deserialize_message(data, msg_type)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def parse_diagnostics_msgs(rosbag_dir: str, target_list: list) -> dict:
data_dict: dict = {key: [] for key in target_list}

while reader.has_next():
(topic, data, timestamp_rosbag) = reader.read_next()
topic, data, timestamp_rosbag = reader.read_next()
msg_type = get_message(type_map[topic])
msg = deserialize_message(data, msg_type)
timestamp_header = parse_stamp(msg.header.stamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def parse_rosbag(rosbag_dir: str, target_topic_list: list[str], limit: int = 0)
topic_name_to_data = defaultdict(list)
parse_num = 0
while reader.has_next():
(topic, data, t) = reader.read_next()
topic, data, t = reader.read_next()
msg_type = get_message(type_map[topic])
msg = deserialize_message(data, msg_type)
if topic in target_topic_list:
Expand Down
2 changes: 1 addition & 1 deletion map/autoware_tp_manager/scripts/tp_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def parse_rosbag(bag_path: str, pose_topic: str, tp_topic: str, scan_topic: str)

while reader.has_next():
progress_bar.update(1)
(topic, data, stamp) = reader.read_next()
topic, data, stamp = reader.read_next()

if topic == pose_topic:
pose_msg = deserialize_message(data, PoseWithCovarianceStamped)
Expand Down
4 changes: 3 additions & 1 deletion mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extra_css:

extra_javascript:
- docs/assets/js/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

plugins:
Expand Down Expand Up @@ -97,6 +97,8 @@ markdown_extensions:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tasklist:
custom_checkbox: true
- toc:
permalink: "#"
toc_depth: 3
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# cspell:disable

"""Add prefixed trajectory topic to MCAP bag (in-place modification)."""

import argparse
from pathlib import Path
import shutil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.
# cspell:disable
"""Evaluate all LIVE trajectory topics in a bag simultaneously."""

import argparse
import json
from pathlib import Path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.
# cspell:disable
"""Auto-discover and evaluate all OR segment bags in a directory."""

import argparse
from pathlib import Path
import subprocess
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# cspell:disable

"""Generate debug visualization for OR scene trajectory comparison."""

import json
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.
# cspell:disable
"""Merge multiple model result bags for a single OR segment."""

import argparse
from pathlib import Path
import shutil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# cspell:disable

"""Rename a topic in a rosbag file."""

import argparse
from pathlib import Path

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ def main(args=None):
rclpy.spin_once(event_cmd_client)
if event_cmd_client.future.done():
result_msg = event_cmd_client.future.result()
event_cmd_client.get_logger().info(
f"Change Control Mode : \
{result_msg.response.gear}"
)
event_cmd_client.get_logger().info(f"Change Control Mode : \
{result_msg.response.gear}")
break

event_cmd_client.destroy_node()
Expand Down
Loading