-
Notifications
You must be signed in to change notification settings - Fork 673
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
feat(simple_plannign_simulator): add map acc model #5688
Conversation
31b1665
to
fb931e9
Compare
6b995fc
to
caf5f58
Compare
@@ -21,6 +23,7 @@ | |||
<depend>lanelet2_extension</depend> | |||
<depend>motion_utils</depend> | |||
<depend>nav_msgs</depend> | |||
<depend>raw_vehicle_cmd_converter</depend> |
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.
I feet it is too much to depend on the raw_vehicle_cmd_converter
only for the csv_loader
. Would you have the code in the vehicle model file?
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.
...tor/include/simple_planning_simulator/vehicle_model/sim_model_delay_steer_map_acc_geared.hpp
Outdated
Show resolved
Hide resolved
...tor/include/simple_planning_simulator/vehicle_model/sim_model_delay_steer_map_acc_geared.hpp
Outdated
Show resolved
Hide resolved
06349d3
to
eeca004
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5688 +/- ##
===========================================
+ Coverage 15.32% 48.11% +32.78%
===========================================
Files 1721 21 -1700
Lines 118559 1112 -117447
Branches 37995 414 -37581
===========================================
- Hits 18169 535 -17634
+ Misses 79657 310 -79347
+ Partials 20733 267 -20466
☔ View full report in Codecov by Sentry. |
@TakaHoribe thanks for your review! I updated from your 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.
LGTM
...mulator/src/simple_planning_simulator/vehicle_model/sim_model_delay_steer_map_acc_geared.cpp
Outdated
Show resolved
Hide resolved
simulator/simple_planning_simulator/src/simple_planning_simulator/utils/csv_loader.cpp
Outdated
Show resolved
Hide resolved
simulator/simple_planning_simulator/include/simple_planning_simulator/utils/csv_loader.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
rename and format read acc map path from config Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> typo typo
Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
…mulator/vehicle_model/sim_model_delay_steer_map_acc_geared.hpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
…tor/vehicle_model/sim_model_delay_steer_map_acc_geared.cpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
…mulator/utils/csv_loader.hpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
…tor/utils/csv_loader.cpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
e63da75
to
b33d9e5
Compare
…n#5688) * (simple_planning_simulator):add delay converter model Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * refactoring rename and format read acc map path from config Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * update docs Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * remove noisy print Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * update map Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * fix pre-commit Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * update acc map Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * fix pre-commit and typo Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> typo typo * Update simulator/simple_planning_simulator/README.md Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update simulator/simple_planning_simulator/README.md Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update simulator/simple_planning_simulator/README.md Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_delay_steer_map_acc_geared.hpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * update error message Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * simplify map exmaple Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * use double Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * style(pre-commit): autofix * Update simulator/simple_planning_simulator/README.md Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add csv loader im sim pacakges Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * revert raw vehicle cmd converter Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * Update simulator/simple_planning_simulator/src/simple_planning_simulator/vehicle_model/sim_model_delay_steer_map_acc_geared.cpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update simulator/simple_planning_simulator/include/simple_planning_simulator/utils/csv_loader.hpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update simulator/simple_planning_simulator/src/simple_planning_simulator/utils/csv_loader.cpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Co-authored-by: Takumi Ito <takumi.ito@tier4.jp> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
add simulator model with
acceleration_map
.acceleration_map
shows the acceleration command on the vertical axis and the current velocity on the horizontal axis, with each cell representing the converted acceleration command that is actually used in the simulator's motion calculation. Values in between are linearly interpolated.Related links
moved from #5518
Tests performed
psim
Notes for reviewers
Interface changes
none
Effects on system behavior
none
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.