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

feat(behavior_path_planner): add new turn signal algorithm #1964

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9c8119d
clean code
purewater0901 Sep 16, 2022
58a7e57
clean format
purewater0901 Sep 16, 2022
d5a1309
udpate
purewater0901 Sep 16, 2022
bd173b6
Merge remote-tracking branch 'upstream/main' into feat/add-new-inters…
purewater0901 Sep 16, 2022
1f14bc8
update
purewater0901 Sep 19, 2022
9ca34b0
update
purewater0901 Sep 19, 2022
bba0666
update
purewater0901 Sep 20, 2022
8636c26
Merge remote-tracking branch 'upstream/main' into feat/add-new-inters…
purewater0901 Sep 21, 2022
97d2a0b
update
purewater0901 Sep 21, 2022
79b46e7
add test
purewater0901 Sep 21, 2022
9f1a7ef
add test
purewater0901 Sep 21, 2022
bf2988a
add test
purewater0901 Sep 21, 2022
c95623d
Merge branch 'autowarefoundation:main' into feat/add-new-intersection…
satoshi-ota Sep 22, 2022
f1c2ed5
fix(avoidance): use new turn signal algorithm
satoshi-ota Sep 22, 2022
ff1050d
fix(avoidance): fix desired_start_point position
satoshi-ota Sep 22, 2022
9352ee8
Merge pull request #136 from satoshi-ota/feat/update-avoidance-turn-s…
purewater0901 Sep 22, 2022
c9cd657
update
purewater0901 Sep 22, 2022
d3d123e
fix conflict
purewater0901 Sep 26, 2022
3005fc8
change policy
purewater0901 Sep 26, 2022
af313b8
Merge remote-tracking branch 'upstream/main' into feat/add-new-inters…
purewater0901 Sep 26, 2022
dc5596c
feat(behavior_path_planner): update pull_over for new blinker logic
kosuke55 Sep 24, 2022
0a3a3e0
feat(behavior_path_planner): update pull_out for new blinker logic
kosuke55 Sep 24, 2022
a36f0bb
tmp: install flask via pip
takayuki5168 Sep 27, 2022
d40a843
Merge remote-tracking branch 'upstream/main' into feat/add-new-inters…
purewater0901 Sep 27, 2022
4f12c60
feat(lane_change): added lane change point
zulfaqar-azmi-t4 Sep 22, 2022
09b7e45
fix start_point and non backward driving turn signal
kosuke55 Sep 27, 2022
f08c7a1
get 3 second during constructing lane change path
zulfaqar-azmi-t4 Sep 26, 2022
f6663c5
fix pull over desired start point
kosuke55 Sep 27, 2022
598b715
Merge pull request #138 from tier4/feat/pull_over_out_new_winker
purewater0901 Sep 27, 2022
003af0f
Merge pull request #137 from zulfaqar-azmi-t4/feat/lane-change-turn-s…
purewater0901 Sep 27, 2022
488c075
update
purewater0901 Sep 27, 2022
d88f51b
Merge remote-tracking branch 'upstream/main' into feat/add-new-inters…
purewater0901 Sep 27, 2022
c6270ae
Merge remote-tracking branch 'origin/tmp/flask-pip-install' into feat…
purewater0901 Sep 28, 2022
577518c
delete
purewater0901 Sep 28, 2022
4f61189
Update Readme
purewater0901 Sep 28, 2022
1a47651
Merge branch 'main' into feat/add-new-intersection-algorithm
purewater0901 Sep 28, 2022
7af0c97
Update planning/behavior_path_planner/src/scene_module/avoidance/avoi…
purewater0901 Sep 28, 2022
0263d57
Update planning/behavior_path_planner/src/scene_module/avoidance/avoi…
purewater0901 Sep 28, 2022
bb6e180
fix format
purewater0901 Sep 28, 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
Prev Previous commit
Next Next commit
fix pull over desired start point
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Sep 27, 2022
commit f6663c589953bb7cc5366ada9ba30f6833a2a772
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class PullOverModule : public SceneModuleInterface
tier4_autoware_utils::LinearRing2d vehicle_footprint_;
std::unique_ptr<rclcpp::Time> last_received_time_;
std::unique_ptr<rclcpp::Time> last_approved_time_;
std::unique_ptr<Pose> last_approved_pose_;

void incrementPathIndex();
PathWithLaneId getCurrentPath() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ bool PullOverModule::planWithCloseGoal()

BehaviorModuleOutput PullOverModule::plan()
{
const auto & current_pose = planner_data_->self_pose->pose;

status_.current_lanes = util::getExtendedCurrentLanes(planner_data_);
status_.pull_over_lanes = pull_over_utils::getPullOverLanes(*(planner_data_->route_handler));
status_.lanes = lanelet::ConstLanelets{};
Expand All @@ -438,8 +440,8 @@ BehaviorModuleOutput PullOverModule::plan()
// Check if it needs to decide path
if (status_.is_safe) {
const auto dist_to_parking_start_pose = calcSignedArcLength(
getCurrentPath().points, planner_data_->self_pose->pose,
status_.pull_over_path.start_pose.position, std::numeric_limits<double>::max(), M_PI_2);
getCurrentPath().points, current_pose, status_.pull_over_path.start_pose.position,
std::numeric_limits<double>::max(), M_PI_2);

if (*dist_to_parking_start_pose < parameters_.decide_path_distance) {
status_.has_decided_path = true;
Expand All @@ -460,6 +462,7 @@ BehaviorModuleOutput PullOverModule::plan()
// When it is approved again after path is decided
clearWaitingApproval();
last_approved_time_ = std::make_unique<rclcpp::Time>(clock_->now());
last_approved_pose_ = std::make_unique<Pose>(current_pose);

// decide velocity to guarantee turn signal lighting time
if (!status_.has_decided_velocity) {
Expand Down Expand Up @@ -855,11 +858,9 @@ TurnSignalInfo PullOverModule::calcTurnSignalInfo() const
{
// ego decelerates so that current pose is the point `turn_light_on_threshold_time` seconds
// before starting pull_over
const double distance_to_start =
calcSignedArcLength(full_path.points, current_pose.position, start_pose.position);
const bool is_before_start_pose = distance_to_start >= 0.0;
turn_signal.desired_start_point =
is_before_start_pose ? current_pose.position : start_pose.position;
turn_signal.desired_start_point = last_approved_pose_ && status_.has_decided_path
? last_approved_pose_->position
: current_pose.position;
turn_signal.desired_end_point = end_pose.position;
turn_signal.required_start_point = start_pose.position;
turn_signal.required_end_point = end_pose.position;
Expand Down