Commit f13f354 1 parent 7917330 commit f13f354 Copy full SHA for f13f354
File tree 1 file changed +7
-0
lines changed
perception/map_based_prediction/src
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1309,6 +1309,13 @@ void MapBasedPredictionNode::updateObjectData(TrackedObject & object)
1309
1309
// assumption: the object vx is much larger than vy
1310
1310
if (object.kinematics .twist_with_covariance .twist .linear .x >= 0.0 ) return ;
1311
1311
1312
+ // calculate absolute velocity and do nothing if it is too slow
1313
+ const double abs_object_speed = std::hypot (
1314
+ object.kinematics .twist_with_covariance .twist .linear .x ,
1315
+ object.kinematics .twist_with_covariance .twist .linear .y );
1316
+ constexpr double min_abs_speed = 1e-1 ; // 0.1 m/s
1317
+ if (abs_object_speed < min_abs_speed) return ;
1318
+
1312
1319
switch (object.kinematics .orientation_availability ) {
1313
1320
case autoware_auto_perception_msgs::msg::DetectedObjectKinematics::SIGN_UNKNOWN: {
1314
1321
const auto original_yaw =
You can’t perform that action at this time.
0 commit comments