Skip to content

Commit

Permalink
remove unnecessary ptr cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Nibanovic committed Aug 13, 2024
1 parent b8b673c commit 9db0ab9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gz_ros2_control/src/gz_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<gz_ros2_control::GazeboSimSystemInterface>(
this->dataPtr->controller_manager_);
this->dataPtr->controller_manager_->read(sim_time_ros, sim_period);
this->dataPtr->controller_manager_->update(sim_time_ros, sim_period);
}
Expand Down

0 comments on commit 9db0ab9

Please sign in to comment.