RawImage
A raw image
Panel support
RawImage
is used in the Image panel.
Schema
field | type | description |
---|---|---|
timestamp | time | Timestamp of image |
frame_id | string | Frame of reference for the image. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image. |
width | uint32 | Image width |
height | uint32 | Image height |
encoding | string | Encoding of the raw image data |
step | uint32 | Byte length of a single row |
data | bytes | Raw image data |
encoding
Supported values: 8UC1
, 8UC3
, 16UC1
(little endian), 32FC1
(little endian), bayer_bggr8
, bayer_gbrg8
, bayer_grbg8
, bayer_rggb8
, bgr8
, bgra8
, mono8
, mono16
, rgb8
, rgba8
, uyvy
or yuv422
, yuyv
or yuv422_yuy2
Reference implementations
Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:
encoding | schema |
---|---|
ROS 1 | foxglove_msgs/RawImage |
ROS 2 | foxglove_msgs/msg/RawImage |
JSON | foxglove.RawImage |
Protobuf | foxglove.RawImage |
FlatBuffers | foxglove.RawImage |
OMG IDL | foxglove::RawImage |
You must use the schema names specified above for Foxglove to recognize the schema.