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

[pull] main from autowarefoundation:main #12

Merged
merged 31 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2a93ee3
fix(behavior_path_planner): replace deprecated function (#2817)
tkimura4 Feb 7, 2023
0324e05
fix(behavior_path_planner): fix geometric pull out lane id for overla…
kosuke55 Feb 7, 2023
e1069e1
feat(behavior_path_planner): deal with non rectangle object avoidance…
takayuki5168 Feb 7, 2023
eb782af
fix(behavior_path_planner): fix path distortion of no back pull out (…
kosuke55 Feb 7, 2023
298b224
ci(pre-commit): disable autoupdate (#2838)
awf-autoware-bot[bot] Feb 8, 2023
4269291
refactor(ekf_localizer): add a function to check the delay step (#2657)
IshitaTakeshi Feb 8, 2023
1e90380
refactor(ekf_localizer): add a function to erase a slash from the beg…
IshitaTakeshi Feb 8, 2023
14979d0
fix(behavior_path_planner): fix drivable area for long backawrd avoid…
takayuki5168 Feb 8, 2023
ff9d064
feat(behavior_path_planner): add option to disable path update (#2831)
takayuki5168 Feb 9, 2023
a052556
fix(lane_change): get sorted lane ids (#2847)
zulfaqar-azmi-t4 Feb 9, 2023
6a8f2a6
fix(lane_change): safe intervehicle distance in collision check (#2807)
zulfaqar-azmi-t4 Feb 9, 2023
fe32cd5
fix(lane_change): checks only shifted path for isInLanelet check (#2853)
zulfaqar-azmi-t4 Feb 9, 2023
9c632a5
feat(behavior_path_planner): fix z of extracted drivable area (#2856)
takayuki5168 Feb 10, 2023
a7f20aa
feat(operation_mode_transition_manager): add guard to invalid paramet…
tkimura4 Feb 10, 2023
95be33e
feat(simple_planning_sim): publish sensing interface imu data (#2843)
TakaHoribe Feb 10, 2023
d30616f
fix(behavior_path_planner): fix drivable area expansion method outsid…
takayuki5168 Feb 10, 2023
5907db6
fix(behavior_path_planner): fix overlapping checker (#2855)
purewater0901 Feb 10, 2023
d034c09
fix(behavior_path_planner): fix geometric parallel parking guard (#2857)
kosuke55 Feb 10, 2023
efd61ea
fix(behavior_path_planner): fix the reason of behind threshold (#2851)
takayuki5168 Feb 10, 2023
93fbdb9
feat(image_projection_based_fusion): add trust distance to fusion (#2…
kaancolak Feb 11, 2023
a8caf21
refactor(tier4_planning_rviz_plugin): create abstract class for footp…
takayuki5168 Feb 11, 2023
fb2bb6d
refactor(tier4_planning_rviz_plugin): clean up the code of path (#2871)
takayuki5168 Feb 11, 2023
00b97e4
feat(tier4_perception_launch): update cam/lidar detection architectur…
kaancolak Feb 12, 2023
b850b25
perf(detection_area): point and polygon inclusion check by minimum en…
veqcc Feb 13, 2023
58ee5e4
fix(behavior_path_planner): fix lane change path validation logic (#2…
rej55 Feb 13, 2023
b0b0b7a
fix(behavior_velocity_planner): continue collision checking after pas…
soblin Feb 13, 2023
a18de91
fix(behavior_velocity_planner): keep intersection module for lanes wi…
soblin Feb 13, 2023
501309b
fix(behavior_path_planner): fix drivable area expansion method outsid…
takayuki5168 Feb 13, 2023
f63d7d4
build(lidar_centerpoint): use APT version of python3-open3d as depend…
esteve Feb 13, 2023
a2ba6dc
feat(mission_planner): add random id to route (#2746)
isamu-takagi Feb 14, 2023
54fd689
docs: update expired links and fix internal links (#2842)
HansRobo Feb 14, 2023
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
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ci:
autofix_commit_msg: "style(pre-commit): autofix"
autoupdate_commit_msg: "ci(pre-commit): autoupdate"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Two convex polygon's intersection can be visualized on the image below as the blue area:

<img src="convex_polygon_intersection.png">
<!-- <img src="convex_polygon_intersection.png"> -->

## Purpose / Use cases

Expand Down
12 changes: 4 additions & 8 deletions common/tier4_planning_rviz_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,16 @@ include_directories(
ament_auto_add_library(tier4_planning_rviz_plugin SHARED
include/drivable_area/display.hpp
src/drivable_area/display.cpp
# path point
include/path/display_base.hpp
include/path/display.hpp
src/path/display.cpp
# footprint
include/path_footprint/display_base.hpp
include/path_footprint/display.hpp
src/path_footprint/display.cpp
include/path_with_lane_id/display.hpp
src/path_with_lane_id/display.cpp
include/path_with_lane_id_footprint/display.hpp
src/path_with_lane_id_footprint/display.cpp
include/pose_with_uuid_stamped/display.hpp
src/pose_with_uuid_stamped/display.cpp
include/trajectory/display.hpp
src/trajectory/display.cpp
include/trajectory_footprint/display.hpp
src/trajectory_footprint/display.cpp
include/mission_checkpoint/mission_checkpoint.hpp
src/mission_checkpoint/mission_checkpoint.cpp
src/tools/jsk_overlay_utils.cpp
Expand Down
71 changes: 15 additions & 56 deletions common/tier4_planning_rviz_plugin/include/path/display.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Tier IV, Inc.
// Copyright 2023 TIER IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -15,71 +15,30 @@
#ifndef PATH__DISPLAY_HPP_
#define PATH__DISPLAY_HPP_

#include <rclcpp/rclcpp.hpp>
#include <rviz_common/display_context.hpp>
#include <rviz_common/frame_manager_iface.hpp>
#include <rviz_common/message_filter_display.hpp>
#include <rviz_common/properties/bool_property.hpp>
#include <rviz_common/properties/color_property.hpp>
#include <rviz_common/properties/float_property.hpp>
#include <rviz_common/properties/parse_color.hpp>
#include <rviz_common/validate_floats.hpp>
#include <path/display_base.hpp>

#include <autoware_auto_planning_msgs/msg/path.hpp>

#include <OgreBillboardSet.h>
#include <OgreManualObject.h>
#include <OgreMaterialManager.h>
#include <OgreSceneManager.h>
#include <OgreSceneNode.h>

#include <deque>
#include <memory>
#include <autoware_auto_planning_msgs/msg/path_with_lane_id.hpp>
#include <autoware_auto_planning_msgs/msg/trajectory.hpp>

namespace rviz_plugins
{
class AutowarePathDisplay
: public rviz_common::MessageFilterDisplay<autoware_auto_planning_msgs::msg::Path>
class AutowarePathWithLaneIdDisplay
: public AutowarePathBaseDisplay<autoware_auto_planning_msgs::msg::PathWithLaneId>
{
Q_OBJECT
};

public:
AutowarePathDisplay();
~AutowarePathDisplay() override;

void onInitialize() override;
void reset() override;

private Q_SLOTS:
void updateVisualization();

protected:
void processMessage(
const autoware_auto_planning_msgs::msg::Path::ConstSharedPtr msg_ptr) override;
static std::unique_ptr<Ogre::ColourValue> setColorDependsOnVelocity(
const double vel_max, const double cmd_vel);
static std::unique_ptr<Ogre::ColourValue> gradation(
const QColor & color_min, const QColor & color_max, const double ratio);
Ogre::ManualObject * path_manual_object_{nullptr};
Ogre::ManualObject * velocity_manual_object_{nullptr};
rviz_common::properties::BoolProperty * property_path_view_;
rviz_common::properties::BoolProperty * property_velocity_view_;
rviz_common::properties::FloatProperty * property_path_width_;
rviz_common::properties::ColorProperty * property_path_color_;
rviz_common::properties::ColorProperty * property_velocity_color_;
rviz_common::properties::FloatProperty * property_path_alpha_;
rviz_common::properties::FloatProperty * property_velocity_alpha_;
rviz_common::properties::FloatProperty * property_velocity_scale_;
rviz_common::properties::BoolProperty * property_path_color_view_;
rviz_common::properties::BoolProperty * property_velocity_color_view_;
rviz_common::properties::FloatProperty * property_vel_max_;

private: // NOLINT for Qt
autoware_auto_planning_msgs::msg::Path::ConstSharedPtr last_msg_ptr_;
static bool validateFloats(
const autoware_auto_planning_msgs::msg::Path::ConstSharedPtr & msg_ptr);
class AutowarePathDisplay : public AutowarePathBaseDisplay<autoware_auto_planning_msgs::msg::Path>
{
Q_OBJECT
};

class AutowareTrajectoryDisplay
: public AutowarePathBaseDisplay<autoware_auto_planning_msgs::msg::Trajectory>
{
Q_OBJECT
};
} // namespace rviz_plugins

#endif // PATH__DISPLAY_HPP_
Loading