Skip to content

Commit d82c6d5

Browse files
refactor
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
1 parent 6f170ce commit d82c6d5

File tree

5 files changed

+6
-18
lines changed

5 files changed

+6
-18
lines changed

perception/map_based_prediction/README.md

-12
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,6 @@ If the target object is inside the road or crosswalk, this module outputs one or
206206
<img src="images/inside_road.svg" width=90%>
207207
</div>
208208

209-
\*1:
210-
The crosswalk user's intention to walk is calculated in the same way as `Cases without traffic lights`.
211-
212-
<div align="center">
213-
<table>
214-
<tr>
215-
<td><img src="./docs/without_traffic_light.svg" width="600"></td>
216-
<td><img src="./docs/with_traffic_light.svg" width="600"></td>
217-
</tr>
218-
</table>
219-
</div>
220-
221209
## Inputs / Outputs
222210

223211
### Input

perception/map_based_prediction/config/map_based_prediction.param.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
acceleration_exponential_half_life: 2.5 # [s] When using vehicle acceleration. The decaying acceleration model considers that the current vehicle acceleration will be halved after this many seconds
2222
crosswalk_with_signal:
2323
use_crosswalk_signal: true
24-
threshold_speed_as_stopping: 0.25 # [m/s] velocity threshold for the module to judge whether the objects is stopped
24+
threshold_velocity_assumed_as_stopping: 0.25 # [m/s] velocity threshold for the module to judge whether the objects is stopped
2525
# If the pedestrian does not move for X seconds against green signal, the module judge that the pedestrian has no intention to walk.
2626
distance_set_for_no_intention_to_walk: [1.0, 5.0] # [m] ascending order, keys of map
2727
timeout_set_for_no_intention_to_walk: [1.0, 0.0] # [s] values of map

perception/map_based_prediction/include/map_based_prediction/map_based_prediction_node.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class MapBasedPredictionNode : public rclcpp::Node
192192
double acceleration_exponential_half_life_;
193193

194194
bool use_crosswalk_signal_;
195-
double threshold_speed_as_stopping_;
195+
double threshold_velocity_assumed_as_stopping_;
196196
std::vector<double> distance_set_for_no_intention_to_walk_;
197197
std::vector<double> timeout_set_for_no_intention_to_walk_;
198198

perception/map_based_prediction/src/map_based_prediction_node.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,8 @@ MapBasedPredictionNode::MapBasedPredictionNode(const rclcpp::NodeOptions & node_
789789
declare_parameter<double>("acceleration_exponential_half_life");
790790

791791
use_crosswalk_signal_ = declare_parameter<bool>("crosswalk_with_signal.use_crosswalk_signal");
792-
threshold_speed_as_stopping_ =
793-
declare_parameter<double>("crosswalk_with_signal.threshold_speed_as_stopping");
792+
threshold_velocity_assumed_as_stopping_ =
793+
declare_parameter<double>("crosswalk_with_signal.threshold_velocity_assumed_as_stopping");
794794
distance_set_for_no_intention_to_walk_ = declare_parameter<std::vector<double>>(
795795
"crosswalk_with_signal.distance_set_for_no_intention_to_walk");
796796
timeout_set_for_no_intention_to_walk_ = declare_parameter<std::vector<double>>(
@@ -2298,7 +2298,7 @@ bool MapBasedPredictionNode::calcIntentionToCrossWithTrafficSgnal(
22982298
if (
22992299
signal_color == TrafficSignalElement::GREEN &&
23002300
tier4_autoware_utils::calcNorm(object.kinematics.twist_with_covariance.twist.linear) <
2301-
threshold_speed_as_stopping_) {
2301+
threshold_velocity_assumed_as_stopping_) {
23022302
stopped_times_against_green_.try_emplace(key, this->get_clock()->now());
23032303

23042304
const auto timeout_no_intention_to_walk = [&]() {

planning/behavior_velocity_crosswalk_module/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ In the case of the upper figure, `ego_pass_later_margin_x` is `{0, 1, 2}` and `e
9797
In the same way, the boundary of B and C is calculated from `ego_pass_first_margin_x` and `ego_pass_first_margin_y`.
9898
In the case of the upper figure, `ego_pass_first_margin_x` is `{3, 5}` and `ego_pass_first_margin_y` is `{0, 1}`.
9999

100-
Of course, if the red signal is indicating to the corresponding croswalk, the ego do not yield against the pedestians.
100+
If the red signal is indicating to the corresponding crosswalk, the ego do not yield against the pedestrians.
101101

102102
<div align="center">
103103
<table>

0 commit comments

Comments
 (0)