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

Added sensor data qos to laser scan publisher #36

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from

Conversation

bribribriambriguy
Copy link

use preset rmw_qos_profile_sensor_data qos profile

@@ -112,7 +112,8 @@ rplidar_node::rplidar_node(const rclcpp::NodeOptions & options)
/* done setting up RPLIDAR stuff, now set up ROS 2 stuff */

/* create the publisher for "/scan" */
m_publisher = this->create_publisher<LaserScan>(topic_name_, 10);
rclcpp::QoS scan_qos(rclcpp::KeepLast(5),rmw_qos_profile_sensor_data);
m_publisher = this->create_publisher<LaserScan>(topic_name_, scan_qos);
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure about making this the default. This would break existing behavior (as subscriptions would also need to be updated).

Could we add this as a parameter instead?

@@ -0,0 +1,14 @@
{
"ros.distro": "humble",
Copy link
Owner

Choose a reason for hiding this comment

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

I think this was added by accident? Could you please remove the extra files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants