Skip to content

Commit

Permalink
fix(operation_mode_transition_manager): add required param (#1342)
Browse files Browse the repository at this point in the history
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
  • Loading branch information
TakaHoribe authored Jul 14, 2022
1 parent 6af670b commit adf9cc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ bool OperationModeTransitionManager::checkEngageAvailable()
const auto & param = engage_acceptable_param_;

if (data_->trajectory.points.size() < 2) {
RCLCPP_WARN(get_logger(), "Engage unavailable: trajectory size must be > 2");
RCLCPP_WARN_SKIPFIRST_THROTTLE(
get_logger(), *get_clock(), 5000, "Engage unavailable: trajectory size must be > 2");
debug_info_ = OperationModeTransitionManagerDebug{}; // all false
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ros__parameters:
frequency_hz: 10.0
engage_acceptable_limits:
allow_autonomous_in_stopped: true # no check if the velocity is zero, always allowed.
dist_threshold: 1.5
yaw_threshold: 0.524
speed_upper_threshold: 10.0
Expand Down

0 comments on commit adf9cc0

Please sign in to comment.