Skip to content

Twist stamped migration#4031

Closed
SteveMacenski wants to merge 38 commits intomainfrom
twist_stamped_migration
Closed

Twist stamped migration#4031
SteveMacenski wants to merge 38 commits intomainfrom
twist_stamped_migration

Conversation

@SteveMacenski
Copy link
Member


Basic Info

Info Please fill out this column
Ticket(s) this addresses (add tickets here #1)
Primary OS tested on Ubuntu,
Robotic platform tested on CI
Does this PR contain AI generated software? None

Ryanf55 and others added 30 commits December 7, 2023 18:33
* Add a new util class for publishing either Twist or TwistStamped
* Add a new parameter for selecting to stamp the twist data
* Consume TwistPublisher in nav2_controller

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
* Unused variable
* Incorrect doxygen

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
* Facing timeout even though it does the same thing as velocity smoother test

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
* Can't use it due to needing to join the pub thread after rclcpp shuts down

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
* Instead of std::move(std::unique_ptr<TwistStamped>)

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
* Implement behavior in the stamped callback
* Unstamped callback calls the stamped callback
* Switch to unique pointer for publisher

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Ryanf55 and others added 7 commits December 22, 2023 22:25
* Use incoming twistStamped timestamp if available
* Convert all internal representations to use TwistStamped

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
* This makes it easier to switch to std::move instead of dereference on
  publish

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>
@Ryanf55
Copy link
Contributor

Ryanf55 commented Jan 4, 2024

The additional changes look great. Any reason I shouldn't just cherry-pick them onto the original PR? Due to some unforeseen circumstances, I'll need 1 week, perhaps 2, before I am able to build+test this with ArduPilot. Given the previous level of testing and CI, I'd be happy to merge as-is.

@SteveMacenski
Copy link
Member Author

Any reason I shouldn't just cherry-pick them onto the original PR?

I figured this was easier, but if you want to continue to take the lead, I'm perfectly happy with that. I'd want you to test before merging as the primary consumer of enabling the parameters

@codecov
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (e2c8555) 90.15% compared to head (da53aa2) 90.13%.
Report is 4 commits behind head on main.

❗ Current head da53aa2 differs from pull request most recent head 2e311c2. Consider uploading reports for the commit 2e311c2 to get more accurate results

Files Patch % Lines
nav2_behaviors/plugins/assisted_teleop.cpp 78.57% 3 Missing ⚠️
...2_collision_monitor/src/collision_monitor_node.cpp 88.23% 2 Missing ⚠️
nav2_util/include/nav2_util/twist_publisher.hpp 92.30% 2 Missing ⚠️
nav2_velocity_smoother/src/velocity_smoother.cpp 93.54% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4031      +/-   ##
==========================================
- Coverage   90.15%   90.13%   -0.03%     
==========================================
  Files         415      417       +2     
  Lines       18593    18645      +52     
==========================================
+ Hits        16763    16805      +42     
- Misses       1830     1840      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SteveMacenski
Copy link
Member Author

Nice catch, looking back over it, the original had a number of issues where the proper stamps weren't stored and reused, but incorrectly restamped

Copy link
Contributor

@jwallace42 jwallace42 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Ryanf55
Copy link
Contributor

Ryanf55 commented Jan 8, 2024

I've cherry picked these changes back to the original PR. I'll report back with ArduPilot test results soon.

@SteveMacenski
Copy link
Member Author

No rush - take it easy Ryan

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.

4 participants