This commit is contained in:
acki
2025-05-29 18:33:48 -04:00
parent 3996ec1e5b
commit f5819a9b65

View File

@@ -221,7 +221,7 @@ namespace Modelec
void PCBOdoInterface::PCBCallback(const std_msgs::msg::String::SharedPtr msg)
{
//RCLCPP_INFO(this->get_logger(), "Received from PCB: %s", msg->data.c_str());
RCLCPP_INFO(this->get_logger(), "Received from PCB: %s", msg->data.c_str());
std::vector<std::string> tokens = split(trim(msg->data), ';');
if (tokens.size() < 2)
{
@@ -642,6 +642,8 @@ namespace Modelec
{
if (pcb_publisher_)
{
RCLCPP_INFO(this->get_logger(), "Sending to PCB: %s", data.c_str());
auto message = std_msgs::msg::String();
message.data = data;
pcb_publisher_->publish(message);