Skip to content

Realsense-ROS

Overview

This document summarizes the ROS 2 message interfaces defined in the realsense2_camera_msgs package.


Messages

Extrinsics

Cross-stream extrinsics describing how two sensors or streams are oriented relative to each other.

Field Type Description
rotation float64[9] Column-major 3×3 rotation matrix
translation float64[3] Translation vector in meters

IMUInfo

IMU calibration and noise characteristics. The IMU source is identified via the header frame ID.

Field Type Description
header std_msgs/Header ROS header; frame_id is imu_accel or imu_gyro
data float64[12] Device-specific IMU calibration data
noise_variances float64[3] Noise variance for each axis
bias_variances float64[3] Bias variance for each axis

Metadata

Arbitrary camera metadata encoded as JSON.

Field Type Description
header std_msgs/Header Timestamp and frame information
json_data string Metadata encoded as a JSON string

RGBD

Convenience message bundling synchronized RGB and depth images with their camera info.

Field Type Description
header std_msgs/Header Common timestamp and frame
rgb_camera_info sensor_msgs/CameraInfo RGB camera intrinsics and parameters
depth_camera_info sensor_msgs/CameraInfo Depth camera intrinsics and parameters
rgb sensor_msgs/Image RGB image
depth sensor_msgs/Image Depth image

Services

Each service below is shown with Request and Response tables. Interface docs are linked per service.

ApplicationConfigRead

Read the current application config blob.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/ApplicationConfigRead.html)

Request

Field Type Description
(none) Empty request

Response

Field Type Description
success bool Whether the read succeeded
error_message string Error details if success is false
application_config string Application config blob (string-encoded)

ApplicationConfigWrite

Write an application config blob.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/ApplicationConfigWrite.html)

Request

Field Type Description
application_config string Application config blob (string-encoded)

Response

Field Type Description
success bool Whether the write succeeded
error_message string Error details if success is false

CalibConfigRead

Read the current calibration config blob.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/CalibConfigRead.html)

Request

Field Type Description
(none) Empty request

Response

Field Type Description
success bool Whether the read succeeded
error_message string Error details if success is false
calib_config string Calibration config blob (string-encoded)

CalibConfigWrite

Write a calibration config blob.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/CalibConfigWrite.html)

Request

Field Type Description
calib_config string Calibration config blob (string-encoded)

Response

Field Type Description
success bool Whether the write succeeded
error_message string Error details if success is false

DeviceInfo

Retrieve device identification and connection details.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/DeviceInfo.html)

Request

Field Type Description
(none) Empty request

Response

Field Type Description
device_name string Device model/name
serial_number string Device serial number
firmware_version string Firmware version string
usb_type_descriptor string USB descriptor/type info
firmware_update_id string Firmware update identifier
sensors string Sensor list/description
physical_port string Physical port identifier

HardwareMonitorCommandSend

Low-level “hardware monitor” command interface.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/HardwareMonitorCommandSend.html)

Request

Field Type Description
opcode uint32 Hardware monitor opcode
param1 uint32 Command parameter 1
param2 uint32 Command parameter 2
param3 uint32 Command parameter 3
param4 uint32 Command parameter 4
data uint8[] Optional payload bytes

Response

Field Type Description
success bool Whether the command succeeded
result uint8[] Result payload bytes
error_message string Error details if success is false

SafetyInterfaceConfigRead

Read the safety interface configuration.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/SafetyInterfaceConfigRead.html)

Request

Field Type Description
calib_location uint8 Calibration storage location (0=EEPROM, 1=FLASH, 2=RAM; default 2)

Response

Field Type Description
success bool Whether the read succeeded
error_message string Error details if success is false
safety_interface_config string Safety interface config blob (string-encoded)

SafetyInterfaceConfigWrite

Write the safety interface configuration.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/SafetyInterfaceConfigWrite.html)

Request

Field Type Description
safety_interface_config string Safety interface config blob (string-encoded)

Response

Field Type Description
success bool Whether the write succeeded
error_message string Error details if success is false

SafetyPresetRead

Read a safety preset by index.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/SafetyPresetRead.html)

Request

Field Type Description
index uint8 Preset index to read

Response

Field Type Description
success bool Whether the read succeeded
error_message string Error details if success is false
safety_preset string Safety preset blob (string-encoded)

SafetyPresetWrite

Write a safety preset blob at an index.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/srv/SafetyPresetWrite.html)

Request

Field Type Description
safety_preset string Safety preset blob (string-encoded)
index uint8 Preset index to write

Response

Field Type Description
success bool Whether the write succeeded
error_message string Error details if success is false

Actions

TriggeredCalibration

Run a triggered calibration sequence via an action.
(Interface docs: https://docs.ros.org/en/humble/p/realsense2_camera_msgs/action/TriggeredCalibration.html)

Goal

Field Type Description
json string Calibration command/options encoded as JSON (default shown in interface: "calib run")

Result

Field Type Description
success bool Whether calibration succeeded
error_msg string Error details if success is false
calibration string Calibration output blob (string-encoded)
health float32 Reported calibration “health” metric

Feedback

Field Type Description
progress float32 Progress indicator (typically 0.0–1.0)