Add device_status topic for state monitoring

This commit is contained in:
xiexun
2025-09-02 17:06:59 +08:00
parent 78c4d68fb1
commit 4c932d47a8
7 changed files with 186 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ find_package(std_msgs REQUIRED)
rosidl_generate_interfaces(
${PROJECT_NAME}
"msg/DeviceInfo.msg"
"msg/DeviceStatus.msg"
"msg/Extrinsics.msg"
"msg/Metadata.msg"
"msg/IMUInfo.msg"
+32
View File
@@ -0,0 +1,32 @@
std_msgs/Header header
# --- Color stream ---
float64 color_frame_rate_cur
float64 color_frame_rate_avg
float64 color_frame_rate_min
float64 color_frame_rate_max
float64 color_delay_ms_cur
float64 color_delay_ms_avg
float64 color_delay_ms_min
float64 color_delay_ms_max
# --- Depth stream ---
float64 depth_frame_rate_cur
float64 depth_frame_rate_avg
float64 depth_frame_rate_min
float64 depth_frame_rate_max
float64 depth_delay_ms_cur
float64 depth_delay_ms_avg
float64 depth_delay_ms_min
float64 depth_delay_ms_max
# --- Device info ---
bool device_online
string connection_type # e.g. "USB2.0", "USB3.0", "GigE"
# --- Calibration status ---
bool calibration_from_user_file
bool calibration_from_device
bool calibration_from_launch_param