Skip to content

Conversation

@jorgenfj
Copy link
Contributor

Renamed vortex util types to reflect the changes in: vortexntnu/vortex-utils#22
This should probably be merged after the waypoint manager pull request

@jorgenfj jorgenfj requested a review from Andeshog December 18, 2025 18:42
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

❌ Patch coverage is 87.03704% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.58%. Comparing base (007bb81) to head (653f8dd).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...s_controller/src/dp_adapt_backs_controller_ros.cpp 0.00% 20 Missing ⚠️
...controller/src/dp_adapt_backs_controller_utils.cpp 96.87% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
- Coverage   35.63%   35.58%   -0.06%     
==========================================
  Files          38       38              
  Lines        2256     2254       -2     
  Branches      686      686              
==========================================
- Hits          804      802       -2     
  Misses       1273     1273              
  Partials      179      179              
Flag Coverage Δ
unittests 35.58% <87.03%> (-0.06%) ⬇️

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

Files with missing lines Coverage Δ
...backs_controller/src/dp_adapt_backs_controller.cpp 86.66% <100.00%> (ø)
...ontroller/test/dp_adapt_backs_controller_tests.cpp 50.64% <100.00%> (ø)
...e/reference_filter_dp/src/reference_filter_ros.cpp 72.94% <100.00%> (ø)
...sion/waypoint_manager/src/waypoint_manager_ros.cpp 50.99% <100.00%> (-0.49%) ⬇️
...controller/src/dp_adapt_backs_controller_utils.cpp 95.71% <96.87%> (ø)
...s_controller/src/dp_adapt_backs_controller_ros.cpp 0.81% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jorgenfj jorgenfj requested review from Andeshog and kluge7 and removed request for Andeshog December 20, 2025 10:57
Copy link
Contributor

@Andeshog Andeshog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel like it would be nice to also change the variable names here to better reflect the type

@jorgenfj
Copy link
Contributor Author

Aren't most of the functions taken directly from algorithms in the Fossen book. Won't it be more clear in this case to name them eta and nu when comparing them to the equations in the book?

@Andeshog
Copy link
Contributor

Not everyone has access to the book while reading the code, and as you said, not everyone knows what eta and nu represent. Code should express intent, and I think the intent is more clear when using the pose and twist terms here, especially since the types are renamed to those.

@jorgenfj
Copy link
Contributor Author

Should the function arg names for the dp specific functions also be updated?

@Andeshog
Copy link
Contributor

yeah the same applies there

@jorgenfj jorgenfj requested a review from Andeshog December 21, 2025 14:53
Comment on lines 32 to 34
Eigen::Vector6d calculate_tau(const vortex::utils::types::PoseEuler& eta,
const vortex::utils::types::PoseEuler& eta_d,
const vortex::utils::types::Twist& nu);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here as well?


if (std::abs(J.determinant()) < tolerance) {
spdlog::error("J(eta) is singular");
spdlog::error("J(pose) is singular");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just say "J is singular" instead probably

Copy link
Contributor

@Andeshog Andeshog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest looks good

@jorgenfj jorgenfj merged commit d72affd into main Dec 22, 2025
14 checks passed
@jorgenfj jorgenfj deleted the refactor/type-rename branch December 22, 2025 09:55
anbit-adhi pushed a commit that referenced this pull request Jan 6, 2026
* waypoint mode handling

* update tests with new message

* initial package setup

* ros interface function declaration

* node setup

* working prototype

* reentrant cb, multithreaded

* single threaded impl

* conv threshold action goal

* default thresholdref conv value

* removed switching logic

* removed timer execution

* sim test utils

* waypoint_manager_test setup

* no rendering test arg

* waypoint tests, timeout error

* test refactor

* format

* rename utils package

* test suite and description

* first waypoint test

* removed unused function

* renamed service field to priority. Added simple tests

* waypoint manager readme

* uniform attitude naming convention

* fix pr requests

* update tests with new service fields

* four corner test

* update util func name

* update with new action def

* removed failing build type

* test dependencies

* ignore failing yasmin package

* remove __init__ files

* quat_to_euler in make_pose helper

* added __init__ file

* removed sim deps for test packages

* added action shutdown handling

* removed waypoint manager set setup

* added waypoint manager node tests

* waypoint manager 4 corner sim test

* added missing launch testing test dependency

* add sleep for topic discovery

* fix action member field name

* updated to new utils type names

* renamed variables to match types

* update function arg to reflect vortex type

* update variable name in tests

* renamed function arg names
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.

3 participants