-
Notifications
You must be signed in to change notification settings - Fork 69
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
Make API consistent #301
Comments
I'd like to take up this issue. Any update to the above list or I can just start? |
Thanks for the help, @akshatpandya ! I think the list is up-to-date, but it's possible that some classes there don't need any changes. If you notice that a class doesn't need changes, please comment here and we can check if off. |
@chapulina Should I branch off from |
@chapulina The following classes doesn't need changes:
I've made changes for the following classes:
Working on the remaining ones. |
1. Angle.cc fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
1. DiffDriveOdometry.cc 2. DiffDriveOdometry.hh fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
You can target
Thanks! Updated the ticket.
Did you mean to close the PRs? Let us know if you have any questions. I noticed you added For a function parameter passed by value, const has no effect on the caller, thus is not recommended in function declarations. |
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
1. Angle.cc fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
1. DiffDriveOdometry.cc 2. DiffDriveOdometry.hh fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
@chapulina I've opened a PR for the following updated classes: Angle |
fix gazebosim#301 Signed-off-by: Akshat Pandya <[email protected]>
Desired behavior
Some things that we should double-check:
Set
const
const
Alternatives considered
Have users memorize what classes have what API styles.
Implementation suggestion
New functions can be added to
ign-math6
, modifications need to targetmain
. We've been deprecating the old functions onmain
, for example:https://github.com/ignitionrobotics/ign-math/blob/931d058e7a9ffb8a123017d255fb876f6724630d/include/ignition/math/Quaternion.hh#L369-L378
But we could consider postponing these deprecation warnings, considering that they will impact lots of users. The goal is to provide users a nice consistent API, and we can accomplish this without adding migration burden.
Here's the status:
Additional context
This was broken off #101.
The text was updated successfully, but these errors were encountered: