diff --git a/umrr_ros2_driver/include/umrr_ros2_driver/UpdateService.hpp b/umrr_ros2_driver/include/umrr_ros2_driver/UpdateService.hpp index ea53097..2b51044 100644 --- a/umrr_ros2_driver/include/umrr_ros2_driver/UpdateService.hpp +++ b/umrr_ros2_driver/include/umrr_ros2_driver/UpdateService.hpp @@ -12,7 +12,4 @@ using namespace com::types; using namespace com::master; void MyUpdateServiceInfoHandler(SWUpdateInfo &updateInfoLocal); -void MyResponseCallback(IN ClientId clientId, - IN std::shared_ptr response); - void StartSoftwareUpdate(ClientId client_id, std::string update_image); diff --git a/umrr_ros2_driver/src/UpdateService.cpp b/umrr_ros2_driver/src/UpdateService.cpp index 31d01ba..ea53b4f 100644 --- a/umrr_ros2_driver/src/UpdateService.cpp +++ b/umrr_ros2_driver/src/UpdateService.cpp @@ -26,11 +26,9 @@ using namespace com::types; using namespace com::master; static SWUpdateInfo UpdateInfoStatic; -static int CallBackCounter = 0; void MyUpdateServiceInfoHandler(SWUpdateInfo &updateInfoLocal) { UpdateInfoStatic = updateInfoLocal; - CallBackCounter++; uint64_t downloadedBytes = updateInfoLocal.GetCurrentDownloadedBytes(); RCLCPP_INFO(rclcpp::get_logger("rclcpp"), "Downloaded bytes: %lu", downloadedBytes); } @@ -51,7 +49,6 @@ void StartSoftwareUpdate(ClientId client_id, std::string update_image) { UpdateInfoStatic.SetUpdateStatus(RUNNING); UpdateInfoStatic.SetCurrentDownloadedBytes(0); - int32_t CallCounter = 0; bool readyFlag = false; if (UpdateServicePtr->SoftwareUpdate(update_image, client_id, @@ -65,7 +62,6 @@ void StartSoftwareUpdate(ClientId client_id, std::string update_image) { readyFlag = true; } - CallCounter++; std::this_thread::sleep_for(std::chrono::milliseconds(100)); while (UpdateInfoStatic.GetUpdateStatus() == RUNNING && !readyFlag) {