Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: missing topic info duration 1000 -> 5000 #2056

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void ControlPerformanceAnalysisNode::onVecSteeringMeasured(
{
if (!meas_steer_msg) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), 1000, "waiting for vehicle measured steering message ...");
get_logger(), *get_clock(), 5000, "waiting for vehicle measured steering message ...");
return;
}
current_vec_steering_msg_ptr_ = meas_steer_msg;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ bool AutowareJoyControllerNode::isDataReady()
{
if (!joy_) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), std::chrono::milliseconds(1000).count(),
get_logger(), *get_clock(), std::chrono::milliseconds(5000).count(),
"waiting for joy msg...");
return false;
}
Expand All @@ -211,7 +211,7 @@ bool AutowareJoyControllerNode::isDataReady()
const auto time_diff = this->now() - last_joy_received_time_;
if (time_diff.seconds() > timeout) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), std::chrono::milliseconds(1000).count(), "joy msg is timeout");
get_logger(), *get_clock(), std::chrono::milliseconds(5000).count(), "joy msg is timeout");
return false;
}
}
Expand All @@ -220,7 +220,7 @@ bool AutowareJoyControllerNode::isDataReady()
{
if (!twist_) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), std::chrono::milliseconds(1000).count(),
get_logger(), *get_clock(), std::chrono::milliseconds(5000).count(),
"waiting for twist msg...");
return false;
}
Expand All @@ -229,7 +229,7 @@ bool AutowareJoyControllerNode::isDataReady()
const auto time_diff = this->now() - twist_->header.stamp;
if (time_diff.seconds() > timeout) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), std::chrono::milliseconds(1000).count(),
get_logger(), *get_clock(), std::chrono::milliseconds(5000).count(),
"twist msg is timeout");
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ bool LaneDepartureCheckerNode::isDataValid()
{
if (reference_trajectory_->points.empty()) {
RCLCPP_ERROR_THROTTLE(
get_logger(), *get_clock(), 1000, "reference_trajectory is empty. Not expected!");
get_logger(), *get_clock(), 5000, "reference_trajectory is empty. Not expected!");
return false;
}

if (predicted_trajectory_->points.empty()) {
RCLCPP_ERROR_THROTTLE(
get_logger(), *get_clock(), 1000, "predicted_trajectory is empty. Not expected!");
get_logger(), *get_clock(), 5000, "predicted_trajectory is empty. Not expected!");
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool ObstacleCollisionCheckerNode::isDataTimeout()
const auto pose_time_diff = rclcpp::Time(current_pose_->header.stamp).seconds() - now.seconds();
if (pose_time_diff > th_pose_timeout) {
RCLCPP_WARN_THROTTLE(
this->get_logger(), *this->get_clock(), 1000 /* ms */, "pose is timeout...");
this->get_logger(), *this->get_clock(), 5000 /* ms */, "pose is timeout...");
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions control/trajectory_follower_nodes/src/controller_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ bool Controller::isTimeOut()
const auto now = this->now();
if ((now - lateral_output_->control_cmd.stamp).seconds() > timeout_thr_sec_) {
RCLCPP_ERROR_THROTTLE(
get_logger(), *get_clock(), 1000 /*ms*/,
get_logger(), *get_clock(), 5000 /*ms*/,
"Lateral control command too old, control_cmd will not be published.");
return true;
}
if ((now - longitudinal_output_->control_cmd.stamp).seconds() > timeout_thr_sec_) {
RCLCPP_ERROR_THROTTLE(
get_logger(), *get_clock(), 1000 /*ms*/,
get_logger(), *get_clock(), 5000 /*ms*/,
"Longitudinal control command too old, control_cmd will not be published.");
return true;
}
Expand Down
6 changes: 3 additions & 3 deletions control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void VehicleCmdGate::onTimer()

if (is_emergency_state_heartbeat_timeout_) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), 1000 /*ms*/, "system_emergency heartbeat is timeout.");
get_logger(), *get_clock(), 5000 /*ms*/, "system_emergency heartbeat is timeout.");
publishEmergencyStopControlCommands();
return;
}
Expand All @@ -324,7 +324,7 @@ void VehicleCmdGate::onTimer()

if (is_external_emergency_stop_heartbeat_timeout_) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), 1000 /*ms*/, "external_emergency_stop heartbeat is timeout.");
get_logger(), *get_clock(), 5000 /*ms*/, "external_emergency_stop heartbeat is timeout.");
is_external_emergency_stop_ = true;
}
}
Expand All @@ -333,7 +333,7 @@ void VehicleCmdGate::onTimer()
if (is_external_emergency_stop_) {
if (!is_external_emergency_stop_heartbeat_timeout_) {
RCLCPP_INFO_THROTTLE(
get_logger(), *get_clock(), 1000 /*ms*/,
get_logger(), *get_clock(), 5000 /*ms*/,
"Please call `clear_external_emergency_stop` service to clear state.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ bool TrafficLightModule::getHighestConfidenceTrafficSignal(
}
if (!found) {
RCLCPP_WARN_THROTTLE(
logger_, *clock_, 1000 /* ms */, "cannot find traffic light lamp state (%s).",
logger_, *clock_, 5000 /* ms */, "cannot find traffic light lamp state (%s).",
reason.c_str());
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion planning/obstacle_stop_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void ObstacleStopPlannerNode::onTrigger(const Trajectory::ConstSharedPtr input_m
{
const auto waiting = [this](const auto & str) {
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), std::chrono::milliseconds(1000).count(), "waiting for %s ...",
get_logger(), *get_clock(), std::chrono::milliseconds(5000).count(), "waiting for %s ...",
str);
};

Expand Down
6 changes: 3 additions & 3 deletions planning/surround_obstacle_checker/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void SurroundObstacleCheckerNode::onTimer()
{
if (!odometry_ptr_) {
RCLCPP_WARN_THROTTLE(
this->get_logger(), *this->get_clock(), 1000 /* ms */, "waiting for current velocity...");
this->get_logger(), *this->get_clock(), 5000 /* ms */, "waiting for current velocity...");
return;
}

Expand All @@ -207,13 +207,13 @@ void SurroundObstacleCheckerNode::onTimer()

if (node_param_.use_pointcloud && !pointcloud_ptr_) {
RCLCPP_WARN_THROTTLE(
this->get_logger(), *this->get_clock(), 1000 /* ms */, "waiting for pointcloud info...");
this->get_logger(), *this->get_clock(), 5000 /* ms */, "waiting for pointcloud info...");
return;
}

if (node_param_.use_dynamic_object && !object_ptr_) {
RCLCPP_WARN_THROTTLE(
this->get_logger(), *this->get_clock(), 1000 /* ms */, "waiting for dynamic object info...");
this->get_logger(), *this->get_clock(), 5000 /* ms */, "waiting for dynamic object info...");
return;
}

Expand Down