better logging

This commit is contained in:
Sem van der Hoeven
2023-05-15 10:54:20 +02:00
parent 25a9aa3509
commit 61ee751642

View File

@@ -161,9 +161,9 @@ private:
{
for (int i = 0; i < 3; i++)
{
velocity[i] = request->values[i];
velocity[i] += request->values[i];
}
RCLCPP_INFO(this->get_logger(), "Got new velocity setpoint: %f %f %f", velocity[0], velocity[1], velocity[2]);
RCLCPP_INFO(this->get_logger(), "Got new velocity setpoint. %f %f %f", velocity[0], velocity[1], velocity[2]);
}
else if (request->control_mode == CONTROL_MODE_POSITION)
{
@@ -175,6 +175,7 @@ private:
}
last_angle = request->yaw;
RCLCPP_INFO(this->get_logger(), "Yaw: %f", last_angle);
response->success = true;
}
}