From f445ee56eb6efbf5a3b0b52d5810a29e57d26d8a Mon Sep 17 00:00:00 2001 From: Yara Shahin Date: Fri, 24 Oct 2025 13:07:53 +0300 Subject: [PATCH 1/2] add BatteryStates msg Signed-off-by: Yara Shahin --- docs/APIReviewFoxy.md | 1 + sensor_msgs/CMakeLists.txt | 1 + sensor_msgs/README.md | 1 + sensor_msgs/msg/BatteryStates.msg | 1 + 4 files changed, 4 insertions(+) create mode 100644 sensor_msgs/msg/BatteryStates.msg diff --git a/docs/APIReviewFoxy.md b/docs/APIReviewFoxy.md index b00b4fce..49fce2d3 100644 --- a/docs/APIReviewFoxy.md +++ b/docs/APIReviewFoxy.md @@ -233,6 +233,7 @@ Msg * [https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/BatteryState.msg](https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/BatteryState.msg) +* [https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/BatteryStates.msg](https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/BatteryStates.msg) * [https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/CameraInfo.msg](https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/CameraInfo.msg) * [https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/ChannelFloat32.msg](https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/ChannelFloat32.msg) * [https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/CompressedImage.msg](https://github.com/ros2/common_interfaces/blob/master/sensor_msgs/msg/CompressedImage.msg) diff --git a/sensor_msgs/CMakeLists.txt b/sensor_msgs/CMakeLists.txt index 530141e3..d3233862 100644 --- a/sensor_msgs/CMakeLists.txt +++ b/sensor_msgs/CMakeLists.txt @@ -19,6 +19,7 @@ find_package(std_msgs REQUIRED) set(msg_files "msg/BatteryState.msg" + "msg/BatteryStates.msg" "msg/CameraInfo.msg" "msg/ChannelFloat32.msg" "msg/CompressedImage.msg" diff --git a/sensor_msgs/README.md b/sensor_msgs/README.md index 7385aaad..6d742d39 100644 --- a/sensor_msgs/README.md +++ b/sensor_msgs/README.md @@ -17,6 +17,7 @@ This package provides some common C++ functionality relating to manipulating a c ## Messages (.msg) * [BatteryState](msg/BatteryState.msg): Describes the power state of the battery. +* [BatteryStates](msg/BatteryStates.msg): An array of BatteryState messages. * [CameraInfo](msg/CameraInfo.msg): Meta information for a camera. * [ChannelFloat32](msg/ChannelFloat32.msg): Holds optional data associated with each point in a PointCloud message. * [CompressedImage](msg/CompressedImage.msg): A compressed image. diff --git a/sensor_msgs/msg/BatteryStates.msg b/sensor_msgs/msg/BatteryStates.msg new file mode 100644 index 00000000..1317cbf6 --- /dev/null +++ b/sensor_msgs/msg/BatteryStates.msg @@ -0,0 +1 @@ +sensor_msgs/BatteryState[] battery_states From 8f074b1ad574fc583bd8685e936339adb3e07a31 Mon Sep 17 00:00:00 2001 From: Yara Shahin Date: Fri, 24 Oct 2025 14:18:46 +0300 Subject: [PATCH 2/2] add comment for msg Signed-off-by: Yara Shahin --- sensor_msgs/msg/BatteryStates.msg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sensor_msgs/msg/BatteryStates.msg b/sensor_msgs/msg/BatteryStates.msg index 1317cbf6..bd9a013e 100644 --- a/sensor_msgs/msg/BatteryStates.msg +++ b/sensor_msgs/msg/BatteryStates.msg @@ -1 +1,2 @@ -sensor_msgs/BatteryState[] battery_states +# This message publishes values for multiple batteries at once. +BatteryState[] battery_states