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) #1165

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.92%. Comparing base (94149be) to head (576fafb).
Report is 1 commits behind head on iron.

Additional details and impacted files
@@            Coverage Diff             @@
##             iron    #1165      +/-   ##
==========================================
+ Coverage   86.67%   86.92%   +0.25%     
==========================================
  Files          86       86              
  Lines        7412     7401      -11     
  Branches      612      611       -1     
==========================================
+ Hits         6424     6433       +9     
+ Misses        759      740      -19     
+ Partials      229      228       -1     
Flag Coverage Δ
unittests 86.92% <74.35%> (+0.25%) ⬆️

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 36ce104 into iron Jun 5, 2024
11 of 12 checks passed
@christophfroehlich christophfroehlich deleted the mergify/bp/iron/pr-1149 branch June 5, 2024 20:34
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