mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
debug
This commit is contained in:
@@ -190,7 +190,6 @@ namespace Modelec
|
||||
"action/tir/arm/set", 10,
|
||||
[this](const std_msgs::msg::Bool::SharedPtr msg)
|
||||
{
|
||||
RCLCPP_INFO(this->get_logger(), "TIR arm set to: %s", msg->data ? "true" : "false");
|
||||
SendOrder("TIR", {"ARM", msg->data ? "1" : "0"});
|
||||
});
|
||||
|
||||
@@ -280,7 +279,7 @@ namespace Modelec
|
||||
|
||||
void PCBActionInterface::PCBCallback(const std_msgs::msg::String::SharedPtr msg)
|
||||
{
|
||||
RCLCPP_INFO(this->get_logger(), "Received message: '%s'", msg->data.c_str());
|
||||
RCLCPP_DEBUG(this->get_logger(), "Received message: '%s'", msg->data.c_str());
|
||||
std::vector<std::string> tokens = split(trim(msg->data), ';');
|
||||
|
||||
if (tokens.size() < 2)
|
||||
|
||||
@@ -436,6 +436,12 @@ namespace Modelec
|
||||
msg.y = pos.y;
|
||||
msg.theta = pos.theta;
|
||||
SetPos(msg);
|
||||
|
||||
PosMsg::SharedPtr goal = std::make_shared<PosMsg>();
|
||||
goal->x = pos.x;
|
||||
goal->y = pos.y;
|
||||
goal->theta = pos.theta;
|
||||
OnPos(goal);
|
||||
}
|
||||
|
||||
void NavigationHelper::SetPos(int x, int y, double theta)
|
||||
|
||||
Reference in New Issue
Block a user