Link autoware_lidar_centerpoint to autoware_multi_object_tracker for vehicle tracking #5653
-
NoteBefore starting, I'd like to inform you, that I am a beginner in terms of ROS2 and the usage of Autoware. I might have skipped essential things, because i simply didn't know better. I also would like you to know that i searched to the best of my abilities on the internet. EDIT: If more context is needed, please tell me and i will try my best to provide information. I'm currently experiencing the following issue:I want to track vehicles in a series of pointclouds with the help of the autoware_lidar_centerpoint and autoware_multi_object_tracker. I'm currently at the state, where the pointclouds are fed into autoware_lidar_centerpoint and the results are published after each frame/pointcloud at around 10 Hz. I remapped the db3 file and output of autoware_lidar_centerpoint accordingly, in order to serve it as an input for autoware_multi_object_tracker like this: Remap of bag-file for autoware_lidar_centerpoint: Remap of autoware_lidar_centerpoint-output for autoware_mutli_object_tracker: After that, i just launch autoware_multi_object_tracker without any changes: After doing all of that, this is how my node-graph looks like in rqt: Echoing the autoware_lidar_centerpoint results
Ideally, i would like to have such a result at the end: https://www.youtube.com/watch?v=5sxa38YBVDQ I hope you can help me. Thank you very much for reading. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello @vollkornholztuer Thank you for using Autoware and detailed description of your issue, I really appreciate it! For your custom scenario, you can't get expected result because of ROS time. Since you use rosbag, time differs from runtime time and you need to explicitly indicate it for all the nodes. You can do it by adding: <param name="use_sim_time" value="true"/> to both launch files within node definition. FYI, for Autoware rosbag replay use case and its launch files, we use |
Beta Was this translation helpful? Give feedback.
@vollkornholztuer
If you have correct TF tree, you can use one of
autoware_pointcloud_preprocessor
, e.g.crop_box_filter
and defineinput_frame
andoutput_frame
asbase_link
. You can also just changeframe_id
of your pointcloud.