Skip to content
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

Fix steering controllers library code documentation and naming (backport #1149) #1164

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 5, 2024

A follow-up to #1118, using consistent nomenclature introduced in #954

My commits do not change any logic or behavior, just make the code more readable.


This is an automatic backport of pull request #1149 done by Mergify.

* Update documentation and consolidate variable names

* Simplify private methods and further update docs

* Rename methods

* Rename method and variables

* Rename convert method

* Rename variables and improve doc

* Rename local variables

* Use std::isfinite instead of !isnan

Co-authored-by: Sai Kishor Kothakota <[email protected]>

* Use a lowercase theta for heading

Co-authored-by: Sai Kishor Kothakota <[email protected]>

* Make some temporary variables const

* Let update_from_position call update_from_velocity

* Explicitly set variables with 0 in constructor

* Fix docstring

* Apply consistent variable naming

Co-authored-by:  Quique Llorente <[email protected]>

---------

Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Quique Llorente <[email protected]>
(cherry picked from commit b245155)
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 74.35897% with 20 lines in your changes missing coverage. Please review.

Project coverage is 86.63%. Comparing base (8b9c2e2) to head (80ef36c).
Report is 1 commits behind head on humble.

Additional details and impacted files
@@            Coverage Diff             @@
##           humble    #1164      +/-   ##
==========================================
- Coverage   86.82%   86.63%   -0.20%     
==========================================
  Files          86       86              
  Lines        7499     7487      -12     
  Branches      620      618       -2     
==========================================
- Hits         6511     6486      -25     
- Misses        753      767      +14     
+ Partials      235      234       -1     
Flag Coverage Δ
unittests 86.63% <74.35%> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...g_controller/src/ackermann_steering_controller.cpp 80.00% <100.00%> (ø)
...steering_controllers_library/steering_odometry.hpp 100.00% <ø> (ø)
...ng_controller/src/tricycle_steering_controller.cpp 78.57% <100.00%> (ø)
...ing_controller/src/bicycle_steering_controller.cpp 75.00% <75.00%> (ø)
...ring_controllers_library/src/steering_odometry.cpp 73.79% <70.76%> (+4.76%) ⬆️

... and 3 files with indirect coverage changes

@christophfroehlich christophfroehlich merged commit deeb9d0 into humble Jun 5, 2024
11 of 12 checks passed
@christophfroehlich christophfroehlich deleted the mergify/bp/humble/pr-1149 branch June 5, 2024 20:33
henrygerardmoore pushed a commit to henrygerardmoore/ros2_controllers that referenced this pull request Jul 19, 2024
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.

1 participant