Skip to content

Commit c9fee10

Browse files
Merge branch 'main' into feat/add_nerf_based_localizer
2 parents 55d490e + c24c3b0 commit c9fee10

File tree

224 files changed

+6222
-7453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+6222
-7453
lines changed

.cspell-partial.json

-9
This file was deleted.

.cspell.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ignorePaths": ["perception/bytetrack/lib/**"],
3+
"ignoreRegExpList": [],
4+
"words": ["dltype", "tvmgen"]
5+
}

.github/CODEOWNERS

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ evaluator/kinematic_evaluator/** dominik.jargot@robotec.ai fumiya.watanabe@tier4
7777
evaluator/localization_evaluator/** dominik.jargot@robotec.ai koji.minoda@tier4.jp
7878
evaluator/perception_online_evaluator/** fumiya.watanabe@tier4.jp kosuke.takeuchi@tier4.jp kotaro.uetake@tier4.jp kyoichi.sugahara@tier4.jp shunsuke.miura@tier4.jp yoshi.ri@tier4.jp
7979
evaluator/planning_evaluator/** kyoichi.sugahara@tier4.jp maxime.clement@tier4.jp
80-
evaluator/tier4_metrics_rviz_plugin/** kyoichi.sugahara@tier4.jp maxime.clement@tier4.jp satoshi.ota@tier4.jp
80+
evaluator/tier4_metrics_rviz_plugin/** fumiya.watanabe@tier4.jp kosuke.takeuchi@tier4.jp kyoichi.sugahara@tier4.jp maxime.clement@tier4.jp satoshi.ota@tier4.jp
8181
launch/tier4_autoware_api_launch/** isamu.takagi@tier4.jp ryohsuke.mitsudome@tier4.jp
8282
launch/tier4_control_launch/** takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
8383
launch/tier4_localization_launch/** anh.nguyen.2@tier4.jp kento.yabuuchi.2@tier4.jp koji.minoda@tier4.jp masahiro.sakamoto@tier4.jp ryu.yamamoto@tier4.jp shintaro.sakoda@tier4.jp taiki.yamada@tier4.jp yamato.ando@tier4.jp
@@ -121,7 +121,7 @@ perception/detected_object_feature_remover/** tomoya.kimura@tier4.jp
121121
perception/detected_object_validation/** dai.nguyen@tier4.jp shintaro.tomie@tier4.jp shunsuke.miura@tier4.jp yukihiro.saito@tier4.jp
122122
perception/detection_by_tracker/** taekjin.lee@tier4.jp yoshi.ri@tier4.jp yukihiro.saito@tier4.jp
123123
perception/elevation_map_loader/** kosuke.takeuchi@tier4.jp shintaro.tomie@tier4.jp taichi.higashide@tier4.jp
124-
perception/euclidean_cluster/** yukihiro.saito@tier4.jp
124+
perception/euclidean_cluster/** dai.nguyen@tier4.jp yukihiro.saito@tier4.jp
125125
perception/ground_segmentation/** abrahammonrroy@yahoo.com dai.nguyen@tier4.jp shunsuke.miura@tier4.jp yukihiro.saito@tier4.jp
126126
perception/image_projection_based_fusion/** dai.nguyen@tier4.jp koji.minoda@tier4.jp kotaro.uetake@tier4.jp shunsuke.miura@tier4.jp tao.zhong@tier4.jp yoshi.ri@tier4.jp yukihiro.saito@tier4.jp
127127
perception/lidar_apollo_instance_segmentation/** yukihiro.saito@tier4.jp
@@ -212,7 +212,7 @@ sensing/image_diagnostics/** dai.nguyen@tier4.jp
212212
sensing/image_transport_decompressor/** yukihiro.saito@tier4.jp
213213
sensing/imu_corrector/** koji.minoda@tier4.jp taiki.yamada@tier4.jp yamato.ando@tier4.jp
214214
sensing/livox/livox_tag_filter/** ryohsuke.mitsudome@tier4.jp
215-
sensing/pointcloud_preprocessor/** abrahammonrroy@yahoo.com kyoichi.sugahara@tier4.jp shunsuke.miura@tier4.jp yukihiro.saito@tier4.jp
215+
sensing/pointcloud_preprocessor/** abrahammonrroy@yahoo.com dai.nguyen@tier4.jp kyoichi.sugahara@tier4.jp shunsuke.miura@tier4.jp yukihiro.saito@tier4.jp
216216
sensing/radar_scan_to_pointcloud2/** satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taekjin.lee@tier4.jp yoshi.ri@tier4.jp
217217
sensing/radar_static_pointcloud_filter/** satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taekjin.lee@tier4.jp yoshi.ri@tier4.jp
218218
sensing/radar_threshold_filter/** satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taekjin.lee@tier4.jp yoshi.ri@tier4.jp

.github/workflows/pr-agent.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: PR-Agent
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled, unlabeled, synchronize]
6+
issue_comment:
7+
8+
jobs:
9+
prevent-no-label-execution-pr-agent:
10+
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
11+
with:
12+
label: tag:pr-agent
13+
pr_agent_job:
14+
needs: prevent-no-label-execution-pr-agent
15+
if: ${{ needs.prevent-no-label-execution-pr-agent.outputs.run == 'true' }}
16+
runs-on: ubuntu-latest
17+
permissions:
18+
issues: write
19+
pull-requests: write
20+
contents: write
21+
name: Run pr agent on every pull request, respond to user comments
22+
steps:
23+
- name: PR Agent action step
24+
id: pragent
25+
uses: Codium-ai/pr-agent@main
26+
env:
27+
OPENAI_KEY: ${{ secrets.OPENAI_KEY_PR_AGENT }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
github_action_config.auto_review: "false"
30+
github_action_config.auto_describe: "false"
31+
github_action_config.auto_improve: "false"

.github/workflows/spell-check-all.yaml

-19
This file was deleted.

.github/workflows/spell-check-partial.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@ name: spell-check-partial
22

33
on:
44
pull_request:
5+
schedule:
6+
- cron: 0 0 * * *
7+
workflow_dispatch:
58

69
jobs:
710
spell-check-partial:
811
runs-on: ubuntu-latest
912
steps:
1013
- name: Check out repository
11-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1215

1316
- name: Run spell-check
1417
uses: autowarefoundation/autoware-github-actions/spell-check@v1
1518
with:
1619
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
17-
local-cspell-json: .cspell-partial.json
20+
local-cspell-json: .cspell.json
1821
incremental-files-only: false

build_depends.repos

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ repositories:
1616
type: git
1717
url: https://github.com/autowarefoundation/autoware_adapi_msgs.git
1818
version: main
19+
core/autoware_internal_msgs:
20+
type: git
21+
url: https://github.com/autowarefoundation/autoware_internal_msgs.git
22+
version: main
1923
core/external/autoware_auto_msgs:
2024
type: git
2125
url: https://github.com/tier4/autoware_auto_msgs.git
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
// Copyright 2024 The Autoware Contributors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#ifndef TIER4_AUTOWARE_UTILS__ROS__PUBLISHED_TIME_PUBLISHER_HPP_
16+
#define TIER4_AUTOWARE_UTILS__ROS__PUBLISHED_TIME_PUBLISHER_HPP_
17+
18+
#include <rclcpp/rclcpp.hpp>
19+
20+
#include <autoware_internal_msgs/msg/published_time.hpp>
21+
#include <std_msgs/msg/header.hpp>
22+
23+
#include <functional>
24+
#include <map>
25+
#include <string>
26+
27+
namespace tier4_autoware_utils
28+
{
29+
30+
class PublishedTimePublisher
31+
{
32+
public:
33+
explicit PublishedTimePublisher(
34+
rclcpp::Node * node, const std::string & publisher_topic_suffix = "/debug/published_time",
35+
const rclcpp::QoS & qos = rclcpp::QoS(1))
36+
: node_(node), publisher_topic_suffix_(publisher_topic_suffix), qos_(qos)
37+
{
38+
}
39+
40+
void publish_if_subscribed(
41+
const rclcpp::PublisherBase::ConstSharedPtr & publisher, const rclcpp::Time & stamp)
42+
{
43+
const auto & gid_key = publisher->get_gid();
44+
45+
// if the publisher is not in the map, create a new publisher for published time
46+
ensure_publisher_exists(gid_key, publisher->get_topic_name());
47+
48+
const auto & pub_published_time_ = publishers_[gid_key];
49+
50+
// Check if there are any subscribers, otherwise don't do anything
51+
if (pub_published_time_->get_subscription_count() > 0) {
52+
PublishedTime published_time;
53+
54+
published_time.header.stamp = stamp;
55+
published_time.published_stamp = rclcpp::Clock().now();
56+
57+
pub_published_time_->publish(published_time);
58+
}
59+
}
60+
61+
void publish_if_subscribed(
62+
const rclcpp::PublisherBase::ConstSharedPtr & publisher, const std_msgs::msg::Header & header)
63+
{
64+
const auto & gid_key = publisher->get_gid();
65+
66+
// if the publisher is not in the map, create a new publisher for published time
67+
ensure_publisher_exists(gid_key, publisher->get_topic_name());
68+
69+
const auto & pub_published_time_ = publishers_[gid_key];
70+
71+
// Check if there are any subscribers, otherwise don't do anything
72+
if (pub_published_time_->get_subscription_count() > 0) {
73+
PublishedTime published_time;
74+
75+
published_time.header = header;
76+
published_time.published_stamp = rclcpp::Clock().now();
77+
78+
pub_published_time_->publish(published_time);
79+
}
80+
}
81+
82+
private:
83+
rclcpp::Node * node_;
84+
std::string publisher_topic_suffix_;
85+
rclcpp::QoS qos_;
86+
87+
using PublishedTime = autoware_internal_msgs::msg::PublishedTime;
88+
89+
// Custom comparison struct for rmw_gid_t
90+
struct GidCompare
91+
{
92+
bool operator()(const rmw_gid_t & lhs, const rmw_gid_t & rhs) const
93+
{
94+
return std::memcmp(lhs.data, rhs.data, RMW_GID_STORAGE_SIZE) < 0;
95+
}
96+
};
97+
98+
// ensure that the publisher exists in publisher_ map, if not, create a new one
99+
void ensure_publisher_exists(const rmw_gid_t & gid_key, const std::string & topic_name)
100+
{
101+
if (publishers_.find(gid_key) == publishers_.end()) {
102+
publishers_[gid_key] =
103+
node_->create_publisher<PublishedTime>(topic_name + publisher_topic_suffix_, qos_);
104+
}
105+
}
106+
107+
// store them for each different publisher of the node
108+
std::map<rmw_gid_t, rclcpp::Publisher<PublishedTime>::SharedPtr, GidCompare> publishers_;
109+
};
110+
} // namespace tier4_autoware_utils
111+
112+
#endif // TIER4_AUTOWARE_UTILS__ROS__PUBLISHED_TIME_PUBLISHER_HPP_

common/tier4_autoware_utils/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<depend>autoware_auto_perception_msgs</depend>
1616
<depend>autoware_auto_planning_msgs</depend>
1717
<depend>autoware_auto_vehicle_msgs</depend>
18+
<depend>autoware_internal_msgs</depend>
1819
<depend>builtin_interfaces</depend>
1920
<depend>diagnostic_msgs</depend>
2021
<depend>geometry_msgs</depend>

0 commit comments

Comments
 (0)