Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync upstream #37

Merged
merged 30 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c638c00
chore: sync files (#648)
awf-autoware-bot[bot] Apr 9, 2022
2f595b2
feat(multi_object_tracker): add pass through tracker (#655)
purewater0901 Apr 9, 2022
718a040
fix(simple_planning_simulator): fix bug in function to apply noise (#…
satoshi-ota Apr 11, 2022
0690195
fix(obstacle_avoidance_planner): fix bug of lerp when points' size = …
takayuki5168 Apr 11, 2022
49cc906
fix(autoware_state_panel): fix message type for /api/autoware/get/eng…
h-ohta Apr 11, 2022
973cc80
fix(control_launch): change default mpc param to improve performance …
TakaHoribe Apr 11, 2022
6dbbaee
feat(tier4_traffic_light_rviz_plugin): selectable light shape, status…
satoshi-ota Apr 11, 2022
c555767
ci(pre-commit): autoupdate (#671)
pre-commit-ci[bot] Apr 11, 2022
36165da
feat(behavior_path_planner): stop lane_driving planners in non-lane-d…
TakaHoribe Apr 12, 2022
dc682e6
fix(route): set transient_local for route subscriber (#674)
TakaHoribe Apr 12, 2022
f08233a
fix(trajectory_follower_nodes): switch to isolated gtests (#661)
maxime-clem Apr 12, 2022
e212d14
fix(map_based_prediction): add config to INSTALL_TO_SHARE (#681)
h-ohta Apr 12, 2022
c2d8091
feat(tier4_autoware_api_launch): add tier4_autoware_api_launch packag…
mitsudome-r Apr 12, 2022
7681249
feat(joy_controller): adding genesis joystick to joy controller (#683)
brkay54 Apr 12, 2022
1d5834d
fix(tier4_perception_rviz_plugin): set interactive object velocity to…
satoshi-ota Apr 13, 2022
1cb671a
fix(behavior_velocity): traffic light missing debug wall pose (#689)
taikitanaka3 Apr 13, 2022
23cb41a
fix(tier4_planning_launch): fix tier4_planning_launch package (#660)
k-obitsu Apr 13, 2022
202fd98
fix(behavior_velocity_planner): ignore pass judge when external_stop …
tkimura4 Apr 13, 2022
151ee70
chore: sync files (#685)
awf-autoware-bot[bot] Apr 14, 2022
fac209b
feat(behavior_velocity): occlusion spot generate not detection area o…
taikitanaka3 Apr 14, 2022
07a44ad
feat(image_projection_based_fusion, roi_cluster_fusion): roi and obst…
yukke42 Apr 14, 2022
1da3e61
feat: added raw twist in gyro_odometer (#676)
kminoda Apr 14, 2022
fd5b9d3
fix: traffic light module (#695)
tkimura4 Apr 14, 2022
f68121e
feat(scan_ground_filter): change launch option and threshold (#670)
miursh Apr 14, 2022
f51415a
feat(multi_object_tracker): add velocity observation (#696)
purewater0901 Apr 15, 2022
16b739c
fix(behavior_velocity): avoid to insert the same point (#699)
TomohitoAndo Apr 15, 2022
154a4bb
fix(behavior_velocity): add include autoware utils (#697)
taikitanaka3 Apr 15, 2022
1e829e2
docs(emergency_handler): fix dead link in readme (#644)
angry-crab Apr 15, 2022
0fc6098
docs(behavior_path): remove Unimplemented part of avoidance with (#709)
taikitanaka3 Apr 16, 2022
21d5453
chore: sync files (#713)
awf-autoware-bot[bot] Apr 17, 2022
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
3 changes: 3 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 1
labels:
- bot
- github-actions
1 change: 1 addition & 0 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- source: .github/workflows/build-and-test-self-hosted.yaml
- source: .github/workflows/check-build-depends.yaml
- source: .github/workflows/clang-tidy-pr-comments.yaml
- source: codecov.yaml

- repository: autowarefoundation/autoware-documentation
files:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,28 @@ on:

jobs:
pre-commit:
if: ${{ github.event.repository.private }}
runs-on: ubuntu-latest
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@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ steps.generate-token.outputs.token }}

- name: Run pre-commit
uses: autowarefoundation/autoware-github-actions/pre-commit@v1
with:
pre-commit-config: .pre-commit-config.yaml
token: ${{ steps.generate-token.outputs.token }}
4 changes: 4 additions & 0 deletions .github/workflows/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ jobs:
uses: autowarefoundation/autoware-github-actions/sync-files@v1
with:
token: ${{ steps.generate-token.outputs.token }}
pr-labels: |
bot
sync-files
auto-merge-method: squash
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.2.0
hooks:
- id: check-json
- id: check-merge-conflict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ void InteractiveObject::update(const Ogre::Vector3 & point)
: std::atan2(velocity_.y, velocity_.x);
}

void InteractiveObject::reset() { velocity_ = Ogre::Vector3::ZERO; }

double InteractiveObject::distance(const Ogre::Vector3 & point) { return point_.distance(point); }

InteractiveObjectCollection::InteractiveObjectCollection() { target_ = nullptr; }

void InteractiveObjectCollection::reset() { target_ = nullptr; }

void InteractiveObjectCollection::select(const Ogre::Vector3 & point)
{
const size_t index = nearest(point);
Expand All @@ -128,6 +128,19 @@ void InteractiveObjectCollection::select(const Ogre::Vector3 & point)
}
}

boost::optional<std::array<uint8_t, 16>> InteractiveObjectCollection::reset()
{
if (!target_) {
return {};
}

const auto uuid = target_->uuid();
target_->reset();
target_ = nullptr;

return uuid;
}

boost::optional<std::array<uint8_t, 16>> InteractiveObjectCollection::create(
const Ogre::Vector3 & point)
{
Expand Down Expand Up @@ -304,7 +317,8 @@ int InteractiveObjectTool::processMouseEvent(rviz_common::ViewportMouseEvent & e
}

if (event.rightUp()) {
objects_.reset();
const auto uuid = objects_.reset();
publishObjectMsg(uuid.get(), Object::MODIFY);
return 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class InteractiveObject
void twist(geometry_msgs::msg::Twist & twist) const;
void transform(tf2::Transform & tf_map2object) const;
void update(const Ogre::Vector3 & point);
void reset();
double distance(const Ogre::Vector3 & point);

private:
Expand All @@ -105,8 +106,8 @@ class InteractiveObjectCollection
InteractiveObjectCollection();
~InteractiveObjectCollection() {}

void reset();
void select(const Ogre::Vector3 & point);
boost::optional<std::array<uint8_t, 16>> reset();
boost::optional<std::array<uint8_t, 16>> create(const Ogre::Vector3 & point);
boost::optional<std::array<uint8_t, 16>> remove(const Ogre::Vector3 & point);
boost::optional<std::array<uint8_t, 16>> update(const Ogre::Vector3 & point);
Expand Down
4 changes: 2 additions & 2 deletions common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void AutowareStatePanel::onInitialize()
sub_gear_ = raw_node_->create_subscription<autoware_auto_vehicle_msgs::msg::GearReport>(
"/vehicle/status/gear_status", 10, std::bind(&AutowareStatePanel::onShift, this, _1));

sub_engage_ = raw_node_->create_subscription<tier4_external_api_msgs::msg::EngageStatus>(
sub_engage_ = raw_node_->create_subscription<autoware_auto_vehicle_msgs::msg::Engage>(
"/api/autoware/get/engage", 10, std::bind(&AutowareStatePanel::onEngageStatus, this, _1));

client_engage_ = raw_node_->create_client<tier4_external_api_msgs::srv::Engage>(
Expand Down Expand Up @@ -209,7 +209,7 @@ void AutowareStatePanel::onShift(
}

void AutowareStatePanel::onEngageStatus(
const tier4_external_api_msgs::msg::EngageStatus::ConstSharedPtr msg)
const autoware_auto_vehicle_msgs::msg::Engage::ConstSharedPtr msg)
{
current_engage_ = msg->engage;
engage_status_label_ptr_->setText(QString::fromStdString(Bool2String(current_engage_)));
Expand Down
6 changes: 3 additions & 3 deletions common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <rviz_common/panel.hpp>

#include <autoware_auto_system_msgs/msg/autoware_state.hpp>
#include <autoware_auto_vehicle_msgs/msg/engage.hpp>
#include <autoware_auto_vehicle_msgs/msg/gear_report.hpp>
#include <tier4_control_msgs/msg/external_command_selector_mode.hpp>
#include <tier4_control_msgs/msg/gate_mode.hpp>
#include <tier4_external_api_msgs/msg/engage_status.hpp>
#include <tier4_external_api_msgs/srv/engage.hpp>

namespace rviz_plugins
Expand All @@ -48,7 +48,7 @@ public Q_SLOTS:
const tier4_control_msgs::msg::ExternalCommandSelectorMode::ConstSharedPtr msg);
void onAutowareState(const autoware_auto_system_msgs::msg::AutowareState::ConstSharedPtr msg);
void onShift(const autoware_auto_vehicle_msgs::msg::GearReport::ConstSharedPtr msg);
void onEngageStatus(const tier4_external_api_msgs::msg::EngageStatus::ConstSharedPtr msg);
void onEngageStatus(const autoware_auto_vehicle_msgs::msg::Engage::ConstSharedPtr msg);

rclcpp::Node::SharedPtr raw_node_;
rclcpp::Subscription<tier4_control_msgs::msg::GateMode>::SharedPtr sub_gate_mode_;
Expand All @@ -57,7 +57,7 @@ public Q_SLOTS:
rclcpp::Subscription<autoware_auto_system_msgs::msg::AutowareState>::SharedPtr
sub_autoware_state_;
rclcpp::Subscription<autoware_auto_vehicle_msgs::msg::GearReport>::SharedPtr sub_gear_;
rclcpp::Subscription<tier4_external_api_msgs::msg::EngageStatus>::SharedPtr sub_engage_;
rclcpp::Subscription<autoware_auto_vehicle_msgs::msg::Engage>::SharedPtr sub_engage_;

rclcpp::Client<tier4_external_api_msgs::srv::Engage>::SharedPtr client_engage_;

Expand Down
Loading