-
Notifications
You must be signed in to change notification settings - Fork 235
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
Encourage users to always provide a QoS history depth #344
Conversation
@wjwwood I'm not sure if this exactly what we discussed. PTAL before I continue with services and actions. |
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.
I think we need a DeprecatedQoSProfile
class that inherits from QoSProfile
and produces a warning if used with create_*()
, and then change the type of qos_profile_default
to be that type, but leave the other builtin profiles as the QoSProfile
type, so they can be used without warnings.
@wjwwood Thanks for the review! I've address your comments and will continue to make similar changes for services and actions. I've refactored the RMW to rclpy conversion function (ea2de90) so it constructs a |
* Added a new parameter to methods for creating publishers and subscriptions The new parameter is required and must be a QoSProfile object or an integer value for the history depth. For now, it is possible to not use the parameter for backwards compatibility, but a deprecation warning is made. * Add deprecation warning when constructing a QoSProfile without a history depth If the history setting is KEEP_ALL, then it is not required to pass the depth setting. Signed-off-by: Jacob Perron <[email protected]>
Signed-off-by: Jacob Perron <[email protected]>
Signed-off-by: Jacob Perron <[email protected]>
… function This is to avoid deprecation warnings. Signed-off-by: Jacob Perron <[email protected]>
DeprecatedWarning is not visible by default until Python 3.7. Signed-off-by: Jacob Perron <[email protected]>
1b48d55
to
4afa822
Compare
Signed-off-by: Jacob Perron <[email protected]>
4afa822
to
394e93e
Compare
Rebased on master; ready for review. |
I forgot to find/replace usage of |
Signed-off-by: Jacob Perron <[email protected]>
|
Resolves #342
Added a new parameter to methods for creating publishers and subscriptions
The new parameter is required and must be a QoSProfile object or an integer value for the history depth.
For now, it is possible to not use the parameter for backwards compatibility, but a deprecation warning is made.
Add deprecation warning when constructing a QoSProfile without a history depth
If the history setting is KEEP_ALL, then it is not required to pass the depth setting.