-
Notifications
You must be signed in to change notification settings - Fork 319
Replay route with history player #2766
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
Conversation
6a11167 to
00441d7
Compare
00441d7 to
561a1d2
Compare
Guardiola31337
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good @kmadsen
One thing that I noticed when testing is that it seems we're wrongly calculating the last locations in the route 👀
I believe this is related to the fact of using a constant speed to generate the points along the route geometry. We've seen this in the past when using ReplayRouteLocationEngine / ReplayRouteLocationConverter.
Refs. #2717
Yeah I made this work the same way as the existing replay engine. So the behavior is unchanged. Can get started on improving it |
libnavigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayRouteMapper.kt
Show resolved
Hide resolved
|
I am finding that simulated locations are not working well with enhanced locations. Building GPS simulated locations from a route will have a lot of effort. Here is the video after updating the LocationComponent with RawLocations from the history player @Guardiola31337 |
8832326 to
95aaf0a
Compare
Not sure about this as a workaround 👀
|
If we're generating locations, I think we should be controlling the view directly. We can rely on the history data to replay GPS and real data. Otherwise, will need some more time to see if building a location generator that is able to slow down at corners. |
|
Closing this as it's going to go back in progress |
Codecov Report
@@ Coverage Diff @@
## master #2766 +/- ##
============================================
- Coverage 35.12% 35.02% -0.11%
Complexity 2100 2100
============================================
Files 540 541 +1
Lines 19260 19316 +56
Branches 1819 1827 +8
============================================
Hits 6766 6766
- Misses 11683 11739 +56
Partials 811 811 |
9eaa9c8 to
9681722
Compare
a022ec8 to
b8203c1
Compare
b8203c1 to
6f30136
Compare
Guardiola31337
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor comment. Other than that ![]()
examples/src/main/java/com/mapbox/navigation/examples/core/ReplayActivity.kt
Outdated
Show resolved
Hide resolved
…layActivity.kt Co-Authored-By: Pablo Guardiola <pablo.guardiola@mapbox.com>



Description
Create parity with a new interface. The new route player should behave the same as the old replay route location engine.
bug,feature,new API(s),SEMVER, etc.)Screenshots or Gifs
Testing
Please describe the manual tests that you ran to verify your changes
SNAPSHOTupstream dependencies if needed) through testapp/demo app and run all activities to avoid regressionsChecklist
CHANGELOGincluding this PR