Speed is inverted when dist is negative#1897
Speed is inverted when dist is negative#1897SteveMacenski merged 3 commits intoros-navigation:masterfrom
Conversation
f54ce6c to
6e694d8
Compare
Codecov Report
@@ Coverage Diff @@
## master #1897 +/- ##
==========================================
- Coverage 71.83% 71.15% -0.69%
==========================================
Files 222 222
Lines 10673 10671 -2
==========================================
- Hits 7667 7593 -74
- Misses 3006 3078 +72
Continue to review full report at Codecov.
|
|
This is not an intuitive solution. I think you'd be better off checking both variables for signs. The speed must be positive since speed is a scalar not a vector quantity. We assume this is always positive and the sign is flipped in the backup recovery. The distance is also a scalar and should also be assumed to always be positive. |
6e694d8 to
784e14f
Compare
|
I agree, and updated, but shouldn't then the backup recovery in nav2_recoveries also be changed because there a negative distance and a positive speed is required to go backward. This also not very intuitive. |
|
I agree that's unintuitive for the API. Can you update the recovery behavior & the BT node to use only positive values as inputs and then set the negative signs required in the recovery behavior itself? So at the end, it should be all positive values in the BT node and in the actual recovery behavior we add negative sign for the velocity and distance when processing. I think it would be good to add that as a doc as well. In the Foxy migration page https://github.com/ros-planning/navigation.ros.org/blob/master/migration/Foxy.rst can you write a couple sentences explaining that change? |
|
Interface changes documented in: ros-navigation/docs.nav2.org#60 |
b837500 to
76339c6
Compare
* Positive speed and distance are enforced in backup action node * Enforce positive inputs to backup recovery * Removed positive enforcement from backup action Co-authored-by: Matthijs den Toom <mdentoom@lely.com>
* Positive speed and distance are enforced in backup action node * Enforce positive inputs to backup recovery * Removed positive enforcement from backup action Co-authored-by: Matthijs den Toom <mdentoom@lely.com>
Basic Info
Description of contribution in a few bullet points
Description of documentation updates required from your changes
Future work that may be required in bullet points