mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
Add logging for successful servo addition in gamecontroller_listener
This commit is contained in:
@@ -26,6 +26,8 @@ namespace Modelec {
|
||||
if (rclcpp::spin_until_future_complete(this->get_node_base_interface(), res) == rclcpp::FutureReturnCode::SUCCESS) {
|
||||
if (!res.get()->success) {
|
||||
RCLCPP_ERROR(this->get_logger(), "Failed to add servo on pin %d", servo.pin);
|
||||
} else {
|
||||
RCLCPP_INFO(this->get_logger(), "Added servo on pin %d", servo.pin);
|
||||
}
|
||||
} else {
|
||||
RCLCPP_ERROR(this->get_logger(), "Service call failed");
|
||||
|
||||
Reference in New Issue
Block a user