Skip to content

Commit 6241a0e

Browse files
committed
change warn to debug in distributed handles and state-/commandpublisher
1 parent 6f9de32 commit 6241a0e

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

hardware_interface/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ endif()
77

88
set(THIS_PACKAGE_INCLUDE_DEPENDS
99
control_msgs
10-
controller_manager_msgs
10+
controller_manager_msgs
1111
lifecycle_msgs
1212
pluginlib
13-
rclcpp
13+
rclcpp
1414
rclcpp_lifecycle
1515
rcpputils
1616
rcutils
17-
std_msgs
17+
std_msgs
1818
TinyXML2
1919
tinyxml2_vendor
2020
)

hardware_interface/include/hardware_interface/handle.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class DistributedReadOnlyHandle : public ReadOnlyHandle
254254
void get_value_cb(const std_msgs::msg::Float64 & msg)
255255
{
256256
value_ = msg.data;
257-
RCLCPP_WARN_STREAM(node_->get_logger(), "Receiving:[" << value_ << "].");
257+
RCLCPP_DEBUG_STREAM(node_->get_logger(), "Receiving:[" << value_ << "].");
258258
}
259259

260260
std::string get_value_topic_name_;
@@ -405,7 +405,7 @@ class DistributedReadWriteHandle : public ReadWriteHandle
405405
auto msg = std::make_unique<std_msgs::msg::Float64>();
406406
msg->data = value;
407407

408-
RCLCPP_WARN(node_->get_logger(), "DistributedCommandInterface Publishing: '%.7lf'", msg->data);
408+
RCLCPP_DEBUG(node_->get_logger(), "DistributedCommandInterface Publishing: '%.7lf'", msg->data);
409409
std::flush(std::cout);
410410

411411
command_value_pub_->publish(std::move(msg));
@@ -417,7 +417,7 @@ class DistributedReadWriteHandle : public ReadWriteHandle
417417
void get_value_cb(const std_msgs::msg::Float64 & msg)
418418
{
419419
value_ = msg.data;
420-
RCLCPP_WARN_STREAM(
420+
RCLCPP_DEBUG_STREAM(
421421
node_->get_logger(), "DistributedCommandInterface Receiving:[" << value_ << "].");
422422
}
423423

hardware_interface/src/hardware_interface/distributed_control_interface/command_forwarder.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <map>
77
#include <stdexcept>
88

9+
#include "rclcpp/rclcpp.hpp"
10+
911
using namespace std::chrono_literals;
1012

1113
namespace distributed_control
@@ -105,7 +107,7 @@ void CommandForwarder::publish_value_on_timer()
105107
{
106108
msg->data = std::numeric_limits<double>::quiet_NaN();
107109
}
108-
RCLCPP_WARN(node_->get_logger(), "Publishing: '%.7lf'", msg->data);
110+
RCLCPP_DEBUG(node_->get_logger(), "Publishing: '%.7lf'", msg->data);
109111
std::flush(std::cout);
110112

111113
// Put the message into a queue to be processed by the middleware.

hardware_interface/src/hardware_interface/distributed_control_interface/state_publisher.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <map>
77
#include <stdexcept>
88

9+
#include "rclcpp/rclcpp.hpp"
10+
911
using namespace std::chrono_literals;
1012

1113
namespace distributed_control
@@ -97,7 +99,7 @@ void StatePublisher::publish_value_on_timer()
9799
// Make explicit note implicit!!!
98100
msg->data = std::numeric_limits<double>::quiet_NaN();
99101
}
100-
RCLCPP_WARN(node_->get_logger(), "Publishing: '%.7lf'", msg->data);
102+
RCLCPP_DEBUG(node_->get_logger(), "Publishing: '%.7lf'", msg->data);
101103
std::flush(std::cout);
102104

103105
// Put the message into a queue to be processed by the middleware.

0 commit comments

Comments
 (0)