-
Notifications
You must be signed in to change notification settings - Fork 363
Ability to switch controllers in non-realtime loop #2452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Ability to switch controllers in non-realtime loop #2452
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2452 +/- ##
==========================================
+ Coverage 89.21% 89.28% +0.06%
==========================================
Files 144 144
Lines 16334 16499 +165
Branches 1393 1394 +1
==========================================
+ Hits 14573 14731 +158
- Misses 1225 1228 +3
- Partials 536 540 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
@@ -141,6 +141,13 @@ def main(args=None): | |||
action="store_true", | |||
required=False, | |||
) | |||
parser.add_argument( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this means that you change the default behavior, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for the rolling that's the idea. In ros_control that's the default behavior. I'm also fine to change it back to true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you activate-as-group a large number of controllers, you will definitely see a difference that's why I set it as False by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, so let's add this explicitly in the release notes (and migration notes maybe?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing 🫡
758246f
to
2c5cad4
Compare
Hello!
This PR implements a way to switch controllers (activation or deactivation) in the non-RT loop, this is the default behavior of ros_control, and I have observed that activating some broadcasters and some controllers is causing some overruns in our system and this should bride the gap as well work without any issues. I've also added an option to switch between the behaviors.
I could find it, thanks to the changes from #2449
TIAGo Pro running at 1 kHz
With the realtime switching on (The results are in microseconds)
WIth the non-realtime switching
TALOS Running at 2 kHz
With the realtime switching on (The results are in microseconds)
WIth the non-realtime switching