> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chowder.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Query robotics logs

> Read camera images and message metadata directly from a compact MCAP demo recording.

A robotics recording contains more than an opaque binary log. Chowder exposes one row per MCAP message, including topic, time, schema, and supported camera payloads.

## Start with a compact recording

The demo bucket's road-spray recording contains camera images, annotations, and sensor messages. Count messages without extracting the file:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT COUNT(*) AS messages
FROM read_mcap('hf://buckets/chowderai/chowder-demo/mcap/data/road-spray-car-following.mcap');
```

The recording has 303 messages. An indexed MCAP with a valid summary can answer this count from metadata.

## Discover the recording's topics

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    topic,
    message_encoding,
    schema_name,
    COUNT(*) AS messages
FROM read_mcap('hf://buckets/chowderai/chowder-demo/mcap/data/road-spray-car-following.mcap')
GROUP BY topic, message_encoding, schema_name
ORDER BY messages DESC;
```

Inspect topics and encodings before choosing a payload decoder. MCAP is a container, not a single serialization format.

## Read camera images as SQL values

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    log_time,
    topic,
    image, -- Camera image decoded from the MCAP message
    width,
    height
FROM read_mcap('hf://buckets/chowderai/chowder-demo/mcap/data/road-spray-car-following.mcap')
WHERE topic = '/camera/image'
AND image IS NOT NULL -- Keep messages with supported camera payloads
LIMIT 5;
```

The recorded `/camera/image` messages contain 2048 × 1088 JPEGs. The `image` column is encoded image bytes that you can display or pass directly to `infer` and `embed`.

```python theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
import chowder

SQL = """
SELECT
    log_time,
    topic,
    image,
    width,
    height
FROM read_mcap('hf://buckets/chowderai/chowder-demo/mcap/data/road-spray-car-following.mcap')
WHERE topic = '/camera/image'
AND image IS NOT NULL
LIMIT 5;
"""

relation = chowder.sql(SQL)
result = relation.to_polars()

chowder.display(result)
```

## Ask a question about the camera frames

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    log_time,
    infer(
        image, -- Camera image decoded from the MCAP message
        'Is visibility reduced by water spray?',
        BOOL -- Return a typed Boolean AI response
    ).output AS reduced_visibility
FROM read_mcap('hf://buckets/chowderai/chowder-demo/mcap/data/road-spray-car-following.mcap')
WHERE topic = '/camera/image'
AND image IS NOT NULL -- Keep messages with supported camera payloads
LIMIT 3;
```

The topic restriction selects camera messages before vision inference. The AI response is a model prediction; retain an image column when you want to inspect the corresponding frame.

## Filter by time and preserve raw data

Use the recording's actual timestamp range when filtering. The [read\_mcap reference](https://docs.chowder.ai/reference/table-functions/read-mcap.md) includes an indexed topic-and-time query for this fixture.

`data` preserves serialized message bytes, `schema_data` preserves embedded schema bytes, and `decoded` contains supported payloads as relaxed JSON. Unsupported or malformed messages retain metadata and raw bytes, with diagnostics in `decode_error`. `image_error` records image extraction failures.

The larger `jackal-blind-corner-navigation.mcap` fixture contains ROS 2 CDR camera messages, and `bimanual-shirt-folding.mcap` contains a manipulation episode. Select an explicit file and inspect its topics before running a larger scan.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.