Skip to content

Commit 7c49d89

Browse files
committed
tmp
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent f4bbb8b commit 7c49d89

File tree

1 file changed

+26
-3
lines changed
  • planning/behavior_path_avoidance_module/include/behavior_path_avoidance_module

1 file changed

+26
-3
lines changed

planning/behavior_path_avoidance_module/include/behavior_path_avoidance_module/scene.hpp

+26-3
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,21 @@ class AvoidanceModule : public SceneModuleInterface
137137
*/
138138
void removeCandidateRTCStatus()
139139
{
140+
// if (rtc_interface_ptr_map_.at("left")->isRegistered(candidate_uuid_)) {
141+
// rtc_interface_ptr_map_.at("left")->removeCooperateStatus(candidate_uuid_);
142+
// } else if (rtc_interface_ptr_map_.at("right")->isRegistered(candidate_uuid_)) {
143+
// rtc_interface_ptr_map_.at("right")->removeCooperateStatus(candidate_uuid_);
144+
// }
140145
if (rtc_interface_ptr_map_.at("left")->isRegistered(candidate_uuid_)) {
141-
rtc_interface_ptr_map_.at("left")->removeCooperateStatus(candidate_uuid_);
142-
} else if (rtc_interface_ptr_map_.at("right")->isRegistered(candidate_uuid_)) {
143-
rtc_interface_ptr_map_.at("right")->removeCooperateStatus(candidate_uuid_);
146+
rtc_interface_ptr_map_.at("left")->updateCooperateStatus(
147+
candidate_uuid_, true, State::FAILED, std::numeric_limits<double>::min(),
148+
std::numeric_limits<double>::max(), clock_->now());
149+
}
150+
151+
if (rtc_interface_ptr_map_.at("right")->isRegistered(candidate_uuid_)) {
152+
rtc_interface_ptr_map_.at("right")->updateCooperateStatus(
153+
candidate_uuid_, true, State::FAILED, std::numeric_limits<double>::min(),
154+
std::numeric_limits<double>::max(), clock_->now());
144155
}
145156
}
146157

@@ -362,6 +373,18 @@ class AvoidanceModule : public SceneModuleInterface
362373

363374
unlockNewModuleLaunch();
364375

376+
for (const auto & left_shift : left_shift_array_) {
377+
rtc_interface_ptr_map_.at("left")->updateCooperateStatus(
378+
left_shift.uuid, true, State::FAILED, std::numeric_limits<double>::min(),
379+
std::numeric_limits<double>::max(), clock_->now());
380+
}
381+
382+
for (const auto & right_shift : right_shift_array_) {
383+
rtc_interface_ptr_map_.at("right")->updateCooperateStatus(
384+
right_shift.uuid, true, State::FAILED, std::numeric_limits<double>::min(),
385+
std::numeric_limits<double>::max(), clock_->now());
386+
}
387+
365388
if (!path_shifter_.getShiftLines().empty()) {
366389
left_shift_array_.clear();
367390
right_shift_array_.clear();

0 commit comments

Comments
 (0)