Skip to content

Commit

Permalink
Merge branch 'main' into sync-upstream
Browse files Browse the repository at this point in the history
Signed-off-by: Autumn60 <[email protected]>
  • Loading branch information
Autumn60 committed Oct 2, 2024
2 parents ad91b58 + eec2295 commit 9028f61
Show file tree
Hide file tree
Showing 78 changed files with 16,105 additions and 109 deletions.
138 changes: 138 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"ignorePaths": [
"**/*.bash",
"**/*.cspell.json",
"**/*.dae",
"**/*.html",
"**/*.mp3",
"**/*.mp4",
"**/*.pcd",
"**/*.rviz",
"**/*.sh",
"**/*.stl",
"**/*.svg",
"**/*.wav",
"**/*.zip",
"**/.git/**",
"**/.gitignore",
"**/.vscode/**",
"**/build/**",
"**/CHANGELOG.rst",
"**/.clang-format",
"**/CPPLINT.cfg",
"**/Doxyfile",
"**/install/**",
"**/log/**",
"**/package-lock.json"
],
"ignoreRegExpList": [
"\\[.*/.*\\]\\(https://github.com",
"Copyright .*[0-9]{4}.+",
"github.com[/:][\\w._\\-]+(/[\\w._\\-]+)?",
"ppa:.+/[^\\s]+",
"@[a-zA-Z0-9](?:[a-zA-Z0-9]|-(?=[a-zA-Z0-9])){0,38}"
],
"overrides": [
{
"filename": "**/*.yaml",
"ignoreRegExpList": ["author: .+$", "git_email: .+$", "git_user: .+$", "uses: .+$"]
},
{
"filename": "**/package.xml",
"ignoreRegExpList": ["<author.*?</author>", "<maintainer.*?</maintainer>"]
},
{
"filename": "**/{*.cpp,*.hpp}",
"ignoreRegExpList": ["@author .*$", "[\\@]tparam", "\\author .*$", "Author(s)?( )?: .*$", "TODO\\((.*?)\\)"]
}
],
"flagWords": [
"gird"
],
"words": [
"ackermann",
"adapi",
"aichallenge",
"astar",
"autocompute",
"automotiveaichallenge",
"autoware",
"awsim",
"booars",
"buildtool",
"colcon",
"costmap",
"cuda",
"cyclonedds",
"dallara",
"dcmake",
"distro",
"downsample",
"freespace",
"gnss",
"gnucxx",
"gtest",
"initialpose",
"lanechange",
"lanefollowing",
"lanelet",
"lanelets",
"libgazebo",
"libgl",
"linalg",
"linestring",
"linestrings",
"lowpass",
"mapfile",
"mathcal",
"mgrs",
"odometry",
"osrf",
"pitstop",
"pointcloud",
"rclcpp",
"rclpy",
"rcutils",
"rgba",
"rois",
"rosdep",
"rosdistro",
"rrtstar",
"rviz",
"schematypens",
"sideshift",
"srvs",
"stddev",
"traj",
"urdf",
"velodyne",
"wextra",
"wmctrl",
"wpedantic",
"xacro",
"xyzrpy",
"zcvf",
"mppi",
"Qdin",
"Kohei",
"MPPI",
"Savitzky",
"satitzky",
"Golay",
"Vandermonde",
"michikuni",
"eguchi",
"vander",
"pinv",
"dtheta",
"cind",
"dind",
"ncourse",
"argmin",
"reparameting",
"tempature",
"rsample",
"coeffs",
"softplus"
]
}
16 changes: 16 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
aichallenge/workspace/src/aichallenge_submit/aichallenge_submit_launch/** @booars/aic2024-developers
aichallenge/workspace/src/aichallenge_submit/booars_dummy_perception_publisher/** @Autumn60
aichallenge/workspace/src/aichallenge_submit/booars_launch/** @Autumn60
aichallenge/workspace/src/aichallenge_submit/booars_utils/** @Autumn60
aichallenge/workspace/src/aichallenge_submit/costmap/** @Autumn60
aichallenge/workspace/src/aichallenge_submit/goal_pose_setter/** @hrjp
aichallenge/workspace/src/aichallenge_submit/gyro_odometer/** @booars/aic2024-developers
aichallenge/workspace/src/aichallenge_submit/imu_corrector/** @booars/aic2024-developers
aichallenge/workspace/src/aichallenge_submit/imu_gnss_poser/** @booars/aic2024-developers
aichallenge/workspace/src/aichallenge_submit/path_to_trajectory/** @booars/aic2024-developers
aichallenge/workspace/src/aichallenge_submit/racing_kart_description/** @Autumn60
aichallenge/workspace/src/aichallenge_submit/racing_kart_sensor_kit_description/** @booars/aic2024-developers
aichallenge/workspace/src/aichallenge_submit/simple_pure_pursuit/** @sitahara
aichallenge/workspace/src/aichallenge_system/aichallenge_system_launch/** @booars/aic2024-developers
aichallenge/workspace/src/aichallenge_submit/mppi_controller/** @tamago117
aichallenge/workspace/src/aichallenge_submit/stanley_control/** @sitahara
18 changes: 18 additions & 0 deletions .github/workflows/spell-check-differential.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: spell-check-differential

on:
pull_request:
branches: [main]

jobs:
spell-check-differential:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run spell check
uses: streetsidesoftware/cspell-action@v6
with:
config: .cspell.json
incremental_files_only: true
20 changes: 20 additions & 0 deletions .github/workflows/spell-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: spell-check

on:
push:
branches:
- main
workflow_dispatch:

jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run spell check
uses: streetsidesoftware/cspell-action@v6
with:
config: .cspell.json
incremental_files_only: false
31 changes: 31 additions & 0 deletions .github/workflows/sync-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: sync-upstream

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
sync-upstream:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: main
sync-pr-branch: sync-upstream
sync-target-repository: https://github.com/AutomotiveAIChallenge/aichallenge-2024.git
sync-target-branch: main
pr-title: "chore: sync upstream"
pr-labels: |
bot
sync-upstream
auto-merge-method: merge
2 changes: 2 additions & 0 deletions aichallenge/pkill_all.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

pkill -9 AWSIM.x86_64
pkill -9 component_conta
pkill -9 dummy_objects_p
pkill -9 ekf_localizer
pkill -9 empty_objects_p
pkill -9 goal_pose_sette
Expand Down
3 changes: 3 additions & 0 deletions aichallenge/run_evaluation.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
AWSIM_DIRECTORY=/aichallenge/simulator/AWSIM

# Kill all processes
source /aichallenge/pkill_all.sh

# Move working directory
OUTPUT_DIRECTORY=$(date +%Y%m%d-%H%M%S)
cd /output || exit
Expand Down
47 changes: 47 additions & 0 deletions aichallenge/workspace/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
Language: Cpp
BasedOnStyle: Google

AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AllowShortFunctionsOnASingleLine: InlineOnly
BraceWrapping:
AfterClass: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
BreakBeforeBraces: Custom
ColumnLimit: 100
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 2
DerivePointerAlignment: false
PointerAlignment: Middle
ReflowComments: true
IncludeCategories:
# C++ system headers
- Regex: <[a-z_]*>
Priority: 6
CaseSensitive: true
# C system headers
- Regex: <.*\.h>
Priority: 5
CaseSensitive: true
# Boost headers
- Regex: boost/.*
Priority: 4
CaseSensitive: true
# Message headers
- Regex: .*_msgs/.*
Priority: 3
CaseSensitive: true
- Regex: .*_srvs/.*
Priority: 3
CaseSensitive: true
# Other Package headers
- Regex: <.*>
Priority: 2
CaseSensitive: true
# Local package headers
- Regex: '".*"'
Priority: 1
CaseSensitive: true
3 changes: 3 additions & 0 deletions aichallenge/workspace/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/build
/install
/log

.vscode
*.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
cmake_minimum_required(VERSION 3.5)
project(booars_dummy_perception_publisher)

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)
ament_auto_find_build_dependencies()

include_directories(include)

ament_auto_add_library(booars_dummy_perception_publisher SHARED
src/dummy_objects_publisher.cpp
)

rclcpp_components_register_node(booars_dummy_perception_publisher
PLUGIN "booars_dummy_perception_publisher::DummyObjectsPublisher"
EXECUTABLE dummy_objects_publisher
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2024 Booars
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef BOOARS_DUMMY_PERCEPTION_PUBLISHER__DUMMY_OBJECTS_PUBLISHER_HPP_
#define BOOARS_DUMMY_PERCEPTION_PUBLISHER__DUMMY_OBJECTS_PUBLISHER_HPP_

#include <rclcpp/rclcpp.hpp>

#include <autoware_auto_perception_msgs/msg/predicted_objects.hpp>
#include <std_msgs/msg/float64_multi_array.hpp>

#include <string>

namespace booars_dummy_perception_publisher
{
using Float64MultiArray = std_msgs::msg::Float64MultiArray;
using PredictedObjects = autoware_auto_perception_msgs::msg::PredictedObjects;

class DummyObjectsPublisher : public rclcpp::Node
{
public:
explicit DummyObjectsPublisher(const rclcpp::NodeOptions & options);

private:
void objects_callback(const Float64MultiArray::SharedPtr msg);

rclcpp::Subscription<Float64MultiArray>::SharedPtr objects_sub_;
rclcpp::Publisher<PredictedObjects>::SharedPtr objects_pub_;

std::string map_frame_id_;
};
} // namespace booars_dummy_perception_publisher

#endif // BOOARS_DUMMY_PERCEPTION_PUBLISHER__DUMMY_OBJECTS_PUBLISHER_HPP_
Loading

0 comments on commit 9028f61

Please sign in to comment.