Skip to content

Commit

Permalink
Delete debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Nov 17, 2023
1 parent eeb1aef commit b9cceb2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions healthcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ void write_health_status(const std::string &status) {
}

void msg_callback(const nav_msgs::msg::Odometry::SharedPtr msg) {
std::cout << "Message received" << std::endl;
last_msg_time = std::chrono::steady_clock::now();
}

Expand All @@ -26,10 +25,8 @@ void healthy_check(const rclcpp::Node::SharedPtr &node) {
bool is_msg_valid = elapsed_time.count() < MSG_VALID_TIME.count();

if (is_msg_valid) {
std::cout << "Health check: healthy" << std::endl;
write_health_status("healthy");
} else {
std::cout << "Health check: unhealthy" << std::endl;
write_health_status("unhealthy");
}
}
Expand Down

0 comments on commit b9cceb2

Please sign in to comment.