-
Notifications
You must be signed in to change notification settings - Fork 682
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
Map Based Prediction Incorrect Predictions #494
Comments
* Ros2 v0.8.0 object range splitter (autowarefoundation#306) * Fix typo in perception module (autowarefoundation#440) * add use_sim-time option (autowarefoundation#454) * Unify Apache-2.0 license name (autowarefoundation#1242) * Remove use_sim_time for set_parameter (autowarefoundation#1260) Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Perception components (autowarefoundation#1368) * [bev_optical_flow]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [object_merger]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [object_range_splitter]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [shape_estimation]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [map_based_prediction]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [naive_path_prediction]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [roi_image_saver]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [lidar_apollo_instance_segmentation]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [object_flow_fusion]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [traffic_light_map_based_detector]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * [dynamic_object_visualization]: component node Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Fix typo Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Fix -Wunused-parameter (autowarefoundation#1836) * Fix -Wunused-parameter Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix mistake Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * fix spell * Fix lint issues Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Ignore flake8 warnings Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: Hiroki OTA <hiroki.ota@tier4.jp> * Detection by tracker (autowarefoundation#1910) * initial commit * backup * apply format * cosmetic change * implement divided under segmenterd clusters * cosmetic change * bug fix * bug fix * bug fix * modify launch * add debug and bug fix * bug fix * bug fix * add no found tracked object * modify parameters and cmake * bug fix * remove debug info * add readme * modify clustering launch * run pre-commit * cosmetic change * cosmetic change * cosmetic change * apply markdownlint * modify launch * modify for cpplint * modify qos * change int to size_T * bug fix * change perception qos * Update perception/object_recognition/detection/detection_by_tracker/package.xml Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> * cosmetic change * cosmetic change * fix launch * Update perception/object_recognition/detection/detection_by_tracker/src/utils.cpp Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> * modify header include order * change include order * Update perception/object_recognition/detection/detection_by_tracker/src/detection_by_tracker_core.cpp Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> * change to std::optional * cosmetic change * Update perception/object_recognition/detection/detection_by_tracker/src/detection_by_tracker_core.cpp Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> * Update perception/object_recognition/detection/detection_by_tracker/src/detection_by_tracker_core.cpp Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> * bug fix * modify readme Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> * Change formatter to clang-format and black (autowarefoundation#2332) * Revert "Temporarily comment out pre-commit hooks" This reverts commit 748e9cdb145ce12f8b520bcbd97f5ff899fc28a3. * Replace ament_lint_common with autoware_lint_common Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Remove ament_cmake_uncrustify and ament_clang_format Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Apply Black Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Apply clang-format Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix build errors Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix for cpplint * Fix include double quotes to angle brackets Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Apply clang-format Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix build errors Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Add COLCON_IGNORE (autowarefoundation#500) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * port object range splitter (autowarefoundation#494) * change autoware_perception_msgs to autoware_auto_perception_msgs * delete COLCON_IGNORE * use changed autoware_auto_perception_msgs (autowarefoundation#546) * add README of object_range_splitter (autowarefoundation#592) Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> Co-authored-by: Kazuki Miyahara <kmiya@outlook.com> Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Hiroki OTA <hiroki.ota@tier4.jp> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yusuke Muramatsu <yukke42@users.noreply.github.com>
@08beeqtufail-sudo We are currently working on a major revision and may be able to cure it there. https://github.com/autowarefoundation/autoware.universe/pull/491/files |
@yukkysaito Thanks for your reply. I am following the repository you mentioned for future updates. |
@08beeqtufail-sudo It seems like the PR mentioned by @yukkysaito is merged. Could you check if the issue still remains? If it still does, please provide a reproducing steps (or a rosbag) so that others can investigate the bug. |
@mitsudome-r I am currently working on another project but i will test it within a couple of days and let you know. |
@mitsudome-r @yukkysaito I was able to test the latest map_based_prediction with some bag files. I still have the same problem. I can see in the code that the part that decides whether to do linear prediction or normal prediction still checks the x component of twist of an object. But the tracked objects in my custom bag files are in map_frame. So the objects have a x velocity part and a y velocity part. So the speed of an object should be calculated based on both of these components. The decision to do linear prediction or not, should be based on this speed and not just x-component? |
@08beeqtufail-sudo could you send some visuals, images/short videos of the issue? It'd help us to understand the actual problem and help in the solving process. |
Hello @xmfcx , |
@miursh @yukkysaito do you have any comment on this? |
@miursh @yukkysaito friendly ping |
Myself also facing this issue while #566 While I test UC-PB-008-0001_20_20-Shalun scenario observed some wrong map based predictions for NPCs when they are turning around the roundabout. Here you can see the video. And this causes some serious issues since vehicle is not able to cross the intersection because of the wrong predicted paths. |
@kaancolak Would be looking into this issue as well. |
Another input:
[openscenario_interpreter_node-3] [map_based_prediction-34] terminate called after throwing an instance of 'std::length_error'
[openscenario_interpreter_node-3] [map_based_prediction-34] what(): Exceeded upper bound
[openscenario_interpreter_node-3] [ERROR] [map_based_prediction-34]: process has died [pid 530007, exit code -6, cmd '/home/md/projects/autoware/install/map_based_prediction/lib/map_based_prediction/map_based_prediction --ros-args -r __node:=map_based_prediction -r __ns:=/perception/object_recognition/prediction --params-file /tmp/launch_params_w6aapmdb --params-file /home/md/projects/autoware/install/map_based_prediction/share/map_based_prediction/config/map_based_prediction.param.yaml -r objects:=/perception/object_recognition/objects -r /vector_map:=/map/vector_map -r objects:=/perception/object_recognition/objects']. |
@08beeqtufail-sudo |
@08beeqtufail-sudo ping. |
@08beeqtufail-sudo could you provide test data so that we can reproduce the issue? |
@xmfcx , @angry-crab sorry for the delay. I was off for a couple of weeks. I will soon provide you with the test data. |
@08beeqtufail-sudo Will you be able to share the data? |
@mitsudome-r yes i will share the data, but it might take a couple of days. I will try to do it today, but i don't guarantee it. |
@mitsudome-r @xmfcx , After having consulted with my project partners, at this stage, we feel that providing the rosbag and lanelet2 map might be an overkill. As i have earlier explained in my post, the problem is correctly identified. The fact that our perception and tracking system is different than that of autoware.universe, means we have x-velocity and y-velocity components of the tracked or detected objects. While in autoware.universe simulation, that's not the case. When i test the autoware.universe simulation, there's no problem. But when i test the autoware.universe planning with our own perception system, that's when the problem arises. |
Hi ,if I understand correctly, the problem lies in the confusing the twist coordinate frame. The ROS twist message is I think defined with linear and angular components rather than x,y of a map frame. A simple fix would be for the perception system described to convert x,y components into linear and angular components needed by Autoware (and consistent with ROS message definition) and perhaps publish the two messages as different topics (if x,y frame needed by other components). |
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
From ASWG:
|
We will consider this feature while refactoring for the core architecture. |
Noted. Removed from Bus ODD Milestone and Project. |
This pull request has been automatically marked as stale because it has not had recent activity. |
chore: sync upstream
This pull request has been automatically marked as stale because it has not had recent activity. |
…autowarefoundation#494) Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com>
This pull request has been automatically marked as stale because it has not had recent activity. |
* Update repos files * chore: update ecu_system_setup --------- Co-authored-by: GitHub Actions <actions@example.com> Co-authored-by: Shinnosuke Hirakawa <shinnosuke.hirakawa@tier4.jp>
I will close this issue since it is stale. |
Hello Everyone,
I am testing the proposed map based prediction with some of the bag files and a map that I have at my disposal. I am facing the problem that the map_based_prediction outputs some strange trajectories (e.g, a trajectory going backwards for an object moving straight in its lane etc...) .After digging in the code a little bit, i can see that the condition to check whether to do a linear prediction or the normal prediction is decided based only on the object velocity x component (object.kinematics.twist_with_covariance.twist.linear.x) . But an object's velocity in map frame is not only x component. So i would like to know the rationale behind this. Thank you for your time and great work.
Regards,
M.Tufail
The text was updated successfully, but these errors were encountered: