This commit is contained in:
acki
2026-03-16 19:48:58 +01:00
parent fdda4851e6
commit deaa906db8

View File

@@ -122,9 +122,9 @@ namespace Modelec
void PCBOdoInterface::read(const std::string& msg) void PCBOdoInterface::read(const std::string& msg)
{ {
// RCLCPP_INFO(this->get_logger(), "Received from PCB: %s", trim(msg).c_str()); RCLCPP_INFO(this->get_logger(), "Received from PCB: %s", trim(msg).c_str());
RCLCPP_INFO_ONCE(this->get_logger(), "Received from PCB: %s", trim(msg).c_str()); // RCLCPP_INFO_ONCE(this->get_logger(), "Received from PCB: %s", trim(msg).c_str());
RCLCPP_DEBUG_SKIPFIRST(this->get_logger(), "Received from PCB: %s", msg.c_str()); // RCLCPP_DEBUG_SKIPFIRST(this->get_logger(), "Received from PCB: %s", msg.c_str());
std::vector<std::string> tokens = split(trim(msg), ';'); std::vector<std::string> tokens = split(trim(msg), ';');
if (tokens.size() < 2) if (tokens.size() < 2)
{ {
@@ -287,9 +287,9 @@ namespace Modelec
{ {
if (IsOk()) if (IsOk())
{ {
// RCLCPP_INFO(this->get_logger(), "Sending to PCB: %s", trim(data).c_str()); RCLCPP_INFO(this->get_logger(), "Sending to PCB: %s", trim(data).c_str());
RCLCPP_INFO_ONCE(this->get_logger(), "Sending to PCB: %s", trim(data).c_str()); // RCLCPP_INFO_ONCE(this->get_logger(), "Sending to PCB: %s", trim(data).c_str());
RCLCPP_DEBUG_SKIPFIRST(this->get_logger(), "Sending to PCB: %s", data.c_str()); // RCLCPP_DEBUG_SKIPFIRST(this->get_logger(), "Sending to PCB: %s", data.c_str());
this->write(data); this->write(data);
} }
} }