Skip to content

Commit

Permalink
demote publisher to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnnyr committed Jan 30, 2024
1 parent 78e668f commit 433606b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sw_watchdog/src/simple_heartbeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class SimpleHeartbeat : public rclcpp::Node
publisher_ = this->create_publisher<sw_watchdog_msgs::msg::Heartbeat>("heartbeat", qos_profile);
timer_ = this->create_wall_timer(heartbeat_period,
std::bind(&SimpleHeartbeat::timer_callback, this));
RCLCPP_INFO(get_logger(), "Watchdog heartbeat initialized");
}

private:
Expand All @@ -96,7 +97,7 @@ class SimpleHeartbeat : public rclcpp::Node
auto message = sw_watchdog_msgs::msg::Heartbeat();
rclcpp::Time now = this->get_clock()->now();
message.stamp = now;
RCLCPP_INFO(this->get_logger(), "Publishing heartbeat, sent at [%f]", now.seconds());
RCLCPP_DEBUG(this->get_logger(), "Publishing heartbeat, sent at [%f]", now.seconds());
publisher_->publish(message);
}
rclcpp::TimerBase::SharedPtr timer_;
Expand Down

0 comments on commit 433606b

Please sign in to comment.