From eef5a1720eed323f1814193378faab7de0cd6046 Mon Sep 17 00:00:00 2001 From: Alberto Tudela Date: Fri, 23 Jun 2023 09:13:51 +0200 Subject: [PATCH] Rename standby topic --- README.md | 2 +- src/sicks300_2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c38b37..b5d84e2 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ Driver for the Sick S300 Safety laser scanners. The laserscan data. -* **`scan_standby`** ([std_msgs/Bool]) +* **`scan/standby`** ([std_msgs/Bool]) True if the scanner is in standby mode, false otherwise. diff --git a/src/sicks300_2.cpp b/src/sicks300_2.cpp index b78b50f..c6d4151 100644 --- a/src/sicks300_2.cpp +++ b/src/sicks300_2.cpp @@ -154,7 +154,7 @@ rclcpp_CallReturn SickS3002::on_configure(const rclcpp_lifecycle::State &){ laser_scan_pub_ = this->create_publisher( scan_topic_, rclcpp::SensorDataQoS()); in_standby_pub_ = this->create_publisher( - "scan_standby", rclcpp::QoS(1).transient_local()); + scan_topic_ + "/standby", rclcpp::QoS(1).transient_local()); diag_pub_ = this->create_publisher( "/diagnostics", rclcpp::QoS(1));