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
67 changes: 67 additions & 0 deletions .github/workflows/ros2_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: ROS2 CI
on:
pull_request:
jobs:
auto_format:
name: Auto-format Python & XML
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install format tools
run: |
sudo apt update
sudo apt install -y libxml2-utils
pip install black isort autoflake
- name: Run autoflake
run: |
find . -type f -name "*.py" -exec autoflake --in-place --remove-unused-variables --remove-all-unused-imports {} \;
- name: Run isort
run: |
find . -type f -name "*.py" -exec isort {} \;
- name: Run black
run: |
black .
- name: Format XML files
run: |
find . -type f \( -name "*.xml" -or -name "*.urdf" -or -name "*.xacro" -or -name "*.sdf" \) -exec xmllint --format -o {} {} \;
- name: Auto-commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Apply formatting to PR files"
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com

build_check:
name: ROS2 Build Check (colcon via industrial_ci)
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
ros_distro: [humble]
ros_repo: [main, testing]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Run industrial_ci
uses: ros-industrial/industrial_ci@master
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
ROS_REPO: ${{ matrix.ros_repo }}
BEFORE_BUILD_TARGET_WORKSPACE: 'apt update -q && python3 -m pip install -q -r requirements.txt'
IMMEDIATE_TEST_OUTPUT: true
CLANG_FORMAT_CHECK: none
CLANG_TIDY: none
PYLINT_CHECK: false
BLACK_CHECK: false

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/hyperparameter/pcd_bag/*.pcd
sing_detection/__pycache__

devel/
logs/
Expand Down
26 changes: 26 additions & 0 deletions bag/example.bag/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
rosbag2_bagfile_information:
version: 5
storage_identifier: sqlite3
duration:
nanoseconds: 19999574454
starting_time:
nanoseconds_since_epoch: 1730436811403031317
message_count: 201
topics_with_message_count:
- topic_metadata:
name: /livox/lidar
type: livox_ros_driver2/msg/CustomMsg
serialization_format: cdr
offered_qos_profiles: "- history: 3\n depth: 0\n reliability: 1\n durability: 2\n deadline:\n sec: 9223372036\n nsec: 854775807\n lifespan:\n sec: 9223372036\n nsec: 854775807\n liveliness: 1\n liveliness_lease_duration:\n sec: 9223372036\n nsec: 854775807\n avoid_ros_namespace_conventions: false"
message_count: 201
compression_format: ""
compression_mode: ""
relative_file_paths:
- no1.bag_0.db3
files:
- path: no1.bag_0.db3
starting_time:
nanoseconds_since_epoch: 1730436811403031317
duration:
nanoseconds: 19999574454
message_count: 201
Binary file added bag/example.bag/no1.bag_0.db3
Binary file not shown.
Binary file not shown.
96 changes: 0 additions & 96 deletions hyperparameter/calc_centroid.py

This file was deleted.

78 changes: 0 additions & 78 deletions hyperparameter/calc_fpfh.py

This file was deleted.

51 changes: 0 additions & 51 deletions hyperparameter/calc_hyperparams.py

This file was deleted.

51 changes: 0 additions & 51 deletions hyperparameter/calc_multi_hyperparams.py

This file was deleted.

Loading