From 9db0ab921882f07fd3ca0d5bb3e3c273e09724d2 Mon Sep 17 00:00:00 2001 From: Nikola Banovic Date: Tue, 13 Aug 2024 15:36:05 +0200 Subject: [PATCH] remove unnecessary ptr cast --- gz_ros2_control/src/gz_ros2_control_plugin.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/gz_ros2_control/src/gz_ros2_control_plugin.cpp b/gz_ros2_control/src/gz_ros2_control_plugin.cpp index b476fb50..2c80fc42 100644 --- a/gz_ros2_control/src/gz_ros2_control_plugin.cpp +++ b/gz_ros2_control/src/gz_ros2_control_plugin.cpp @@ -485,9 +485,6 @@ void GazeboSimROS2ControlPlugin::PostUpdate( if (sim_period >= this->dataPtr->control_period_) { this->dataPtr->last_update_sim_time_ros_ = sim_time_ros; - auto gz_controller_manager = - std::dynamic_pointer_cast( - this->dataPtr->controller_manager_); this->dataPtr->controller_manager_->read(sim_time_ros, sim_period); this->dataPtr->controller_manager_->update(sim_time_ros, sim_period); }