add proper checking of control modes

This commit is contained in:
Sem van der Hoeven
2023-05-15 10:45:20 +02:00
parent 3ee881772c
commit 3d74ee2c41
2 changed files with 32 additions and 29 deletions

View File

@@ -151,7 +151,7 @@ private:
{
if (request->control_mode != CONTROL_MODE_VELOCITY || request->control_mode != CONTROL_MODE_POSITION)
{
RCLCPP_INFO(this->get_logger(), "Got invalid control mode: %d", request->control_mode);
RCLCPP_INFO(this->get_logger(), "Got invalid trajectory control mode: %d", request->control_mode);
response->success = false;
}
else