Skip to content

Commit

Permalink
Use reliable publisher to give the subscriber the choice of reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood authored and clalancette committed Mar 13, 2019
1 parent a952a6d commit d6a4f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DepthImageToLaserScanROS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ DepthImageToLaserScanROS::DepthImageToLaserScanROS(rclcpp::node::Node::SharedPtr
std::bind(&DepthImageToLaserScanROS::depthCb, this, std::placeholders::_1),
rmw_qos_profile_sensor_data);

scan_pub_ = node_->create_publisher<sensor_msgs::msg::LaserScan>("scan", rmw_qos_profile_sensor_data);
scan_pub_ = node_->create_publisher<sensor_msgs::msg::LaserScan>("scan");

parameter_service_ = std::make_shared<rclcpp::parameter_service::ParameterService>(node_);

Expand Down

0 comments on commit d6a4f64

Please sign in to comment.