|
39 | 39 | #include <autoware_adapi_v1_msgs/msg/steering_factor.hpp>
|
40 | 40 | #include <tier4_planning_msgs/msg/avoidance_debug_msg_array.hpp>
|
41 | 41 | #include <tier4_planning_msgs/msg/path_with_lane_id.hpp>
|
42 |
| -#include <tier4_planning_msgs/msg/stop_factor.hpp> |
43 |
| -#include <tier4_planning_msgs/msg/stop_reason.hpp> |
44 |
| -#include <tier4_planning_msgs/msg/stop_reason_array.hpp> |
45 | 42 | #include <tier4_rtc_msgs/msg/state.hpp>
|
46 | 43 | #include <unique_identifier_msgs/msg/uuid.hpp>
|
47 | 44 | #include <visualization_msgs/msg/detail/marker_array__struct.hpp>
|
@@ -69,9 +66,6 @@ using autoware_adapi_v1_msgs::msg::SteeringFactor;
|
69 | 66 | using autoware_adapi_v1_msgs::msg::VelocityFactor;
|
70 | 67 | using tier4_planning_msgs::msg::AvoidanceDebugMsgArray;
|
71 | 68 | using tier4_planning_msgs::msg::PathWithLaneId;
|
72 |
| -using tier4_planning_msgs::msg::StopFactor; |
73 |
| -using tier4_planning_msgs::msg::StopReason; |
74 |
| -using tier4_planning_msgs::msg::StopReasonArray; |
75 | 69 | using tier4_rtc_msgs::msg::State;
|
76 | 70 | using unique_identifier_msgs::msg::UUID;
|
77 | 71 | using visualization_msgs::msg::MarkerArray;
|
@@ -192,8 +186,6 @@ class SceneModuleInterface
|
192 | 186 |
|
193 | 187 | reset_factor();
|
194 | 188 |
|
195 |
| - stop_reason_ = StopReason(); |
196 |
| - |
197 | 189 | processOnExit();
|
198 | 190 | }
|
199 | 191 |
|
@@ -266,8 +258,6 @@ class SceneModuleInterface
|
266 | 258 |
|
267 | 259 | ModuleStatus getCurrentStatus() const { return current_state_; }
|
268 | 260 |
|
269 |
| - StopReason getStopReason() const { return stop_reason_; } |
270 |
| - |
271 | 261 | void reset_factor()
|
272 | 262 | {
|
273 | 263 | steering_factor_interface_.reset();
|
@@ -446,8 +436,6 @@ class SceneModuleInterface
|
446 | 436 |
|
447 | 437 | BehaviorModuleOutput previous_module_output_;
|
448 | 438 |
|
449 |
| - StopReason stop_reason_; |
450 |
| - |
451 | 439 | bool is_locked_new_module_launch_{false};
|
452 | 440 |
|
453 | 441 | bool is_locked_output_path_{false};
|
@@ -580,23 +568,6 @@ class SceneModuleInterface
|
580 | 568 | path.points, getEgoPose(), slow_pose_.value(), VelocityFactor::APPROACHING, "slow down");
|
581 | 569 | }
|
582 | 570 |
|
583 |
| - void setStopReason(const std::string & stop_reason, const PathWithLaneId & path) |
584 |
| - { |
585 |
| - stop_reason_.reason = stop_reason; |
586 |
| - stop_reason_.stop_factors.clear(); |
587 |
| - |
588 |
| - if (!stop_pose_) { |
589 |
| - stop_reason_.reason = ""; |
590 |
| - return; |
591 |
| - } |
592 |
| - |
593 |
| - StopFactor stop_factor; |
594 |
| - stop_factor.stop_pose = stop_pose_.value(); |
595 |
| - stop_factor.dist_to_stop_pose = autoware::motion_utils::calcSignedArcLength( |
596 |
| - path.points, getEgoPosition(), stop_pose_.value().position); |
597 |
| - stop_reason_.stop_factors.push_back(stop_factor); |
598 |
| - } |
599 |
| - |
600 | 571 | void setDrivableLanes(const std::vector<DrivableLanes> & drivable_lanes);
|
601 | 572 |
|
602 | 573 | BehaviorModuleOutput getPreviousModuleOutput() const { return previous_module_output_; }
|
|
0 commit comments