Skip to content
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

fix(autoware_radar_scan_to_pointcloud2): use sensor data qos #10157

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

mebasoglu
Copy link
Contributor

Description

Use SensorDataQoS for subscriber and publisher.

Related links

Parent Issue:

How was this PR tested?

Tested with a bag file which includes ARS 548 RadarScan data via the following launch:

<?xml version="1.0" encoding="UTF-8"?>
<launch>

  <push-ros-namespace namespace="radar_cloud"/>
  <group>

    <!--    Radar scan filter-->
    <group>
      <push-ros-namespace namespace="radarscan_filtering"/>
      <include file="$(find-pkg-share radar_scan_to_pointcloud2)/launch/radar_scan_to_pointcloud2.launch.xml">
        <arg name="input/radar" value="/sensing/radar/front/scan_raw"/>
        <arg name="output/amplitude_pointcloud" value="raw/output/amplitude_pointcloud"/>
        <arg name="output/doppler_pointcloud" value="raw/output/doppler_pointcloud"/>
      </include>
    </group>

  </group>
<launch>

Notes for reviewers

Used the same QoS setting as pointcloud_preprocessor:

Interface changes

None.

Topic changes

Modifications

Version Topic Type Topic Name Message Type Description
Old Pub ~/output/amplitude_pointcloud RadarScan rclcpp::QoS{1}
New Pub ~/output/amplitude_pointcloud RadarScan rclcpp::SensorDataQoS().keep_last(node_param_.max_queue_size)
Old Pub ~/output/doppler_pointcloud RadarScan rclcpp::QoS{1}
New Pub ~/output/doppler_pointcloud RadarScan rclcpp::SensorDataQoS().keep_last(node_param_.max_queue_size)
Old Sub ~/input/radar RadarScan rclcpp::QoS{1}
New Sub ~/input/radar RadarScan rclcpp::SensorDataQoS().keep_last(node_param_.max_queue_size)

ROS Parameter Changes

Additions and removals

Change type Parameter Name Type Default Value Description
Added max_queue_size long 5 History size of QoS profile.

Effects on system behavior

None.

@github-actions github-actions bot added the component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) label Feb 18, 2025
Copy link

github-actions bot commented Feb 18, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@mebasoglu mebasoglu added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 18, 2025
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 26.79%. Comparing base (126ae32) to head (be1206f).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...pointcloud2/src/radar_scan_to_pointcloud2_node.cpp 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10157      +/-   ##
==========================================
- Coverage   26.80%   26.79%   -0.01%     
==========================================
  Files        1414     1414              
  Lines      108240   108228      -12     
  Branches    41702    41690      -12     
==========================================
- Hits        29010    28998      -12     
- Misses      76355    76359       +4     
+ Partials     2875     2871       -4     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
differential-cuda 0.00% <0.00%> (?)
total 26.79% <ø> (-0.01%) ⬇️ Carriedforward from 126ae32

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xmfcx
Copy link
Contributor

xmfcx commented Feb 19, 2025

@xmfcx
Copy link
Contributor

xmfcx commented Feb 19, 2025

OK it functions as expected, sorry for the inconvenience.

image

@technolojin technolojin self-assigned this Feb 19, 2025
@technolojin
Copy link
Contributor

@mebasoglu
Thank you for your contribution.

Can you kindly add the new parameter max_queue_size description to the schema file and the readme?
https://github.com/autowarefoundation/autoware.universe/blob/main/sensing/autoware_radar_scan_to_pointcloud2/schema/radar_scan_to_pointcloud2.schema.json

Signed-off-by: Mehmet Emin BAŞOĞLU <mehmeteminbasoglu@hotmail.com>
Signed-off-by: Mehmet Emin BAŞOĞLU <mehmeteminbasoglu@hotmail.com>
Signed-off-by: Mehmet Emin BAŞOĞLU <mehmeteminbasoglu@hotmail.com>
@mebasoglu
Copy link
Contributor Author

Hello @technolojin, sorry, I forgot to add it in the first place. I have added now. Thank you.

Copy link
Contributor

@technolojin technolojin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

tested with old radar messages

@mebasoglu mebasoglu merged commit 5d090f2 into autowarefoundation:main Feb 19, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants