8000
Skip to content

Remove all reset methods in Clock, ConfigurationOverride and ControlBoard plugins - #236

Merged
xela-95 merged 1 commit into
mainfrom
fixreset
Feb 12, 2025
Merged

Remove all reset methods in Clock, ConfigurationOverride and ControlBoard plugins#236
xela-95 merged 1 commit into
mainfrom
fixreset

Conversation

@traversaro
Copy link
Copy Markdown
Member

Defining the ISystemReset interface in some plugins and not in others create a problematic situation in which some plugins are restarted in a way (calling the destructor and constructor) and some other in another way (calling the reset method). This resulted in unexpected behaviour as the one reported in #206 .

To solve at least the crash, this PR removes all the reset methods. The downside of this is that now all the YARP ports are closed and re-opened at each reset, but anyhow this is better then just crash.

Implementing a smarter reset strategy that does not restart the ports (that by the way is how Gazebo Classic and gazebo-yarp-plugins worked) will be tracked in #235 .

@traversaro
traversaro requested a review from xela-95 as a code owner February 12, 2025 13:29
@xela-95 xela-95 left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0