mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-19 00:57:37 +01:00
log
This commit is contained in:
@@ -22,6 +22,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", pin);
|
||||
} else {
|
||||
RCLCPP_INFO(this->get_logger(), "Added servo on pin %d", pin);
|
||||
}
|
||||
} else {
|
||||
RCLCPP_ERROR(this->get_logger(), "Service call failed");
|
||||
|
||||
Reference in New Issue
Block a user