Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 1213c4f

Browse files
authored
Override gazebo reset method (#413) (#414)
1 parent b09685c commit 1213c4f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

gazebo_ros2_control/include/gazebo_ros2_control/gazebo_ros2_control_plugin.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class GazeboRosControlPlugin : public gazebo::ModelPlugin
5757

5858
// Overloaded Gazebo entry point
5959
void Load(gazebo::physics::ModelPtr parent, sdf::ElementPtr sdf) override;
60+
void Reset() override;
6061

6162
private:
6263
/// Private data pointer

gazebo_ros2_control/src/gazebo_ros2_control_plugin.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,11 @@ void GazeboRosControlPrivate::Update()
437437
}
438438

439439
// Called on world reset
440+
void GazeboRosControlPlugin::Reset()
441+
{
442+
impl_->Reset();
443+
}
444+
440445
void GazeboRosControlPrivate::Reset()
441446
{
442447
// Reset timing variables to not pass negative update periods to controllers on world reset

0 commit comments

Comments
 (0)