@fleetless/contracts 15.1.0 → 15.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/artifacts/constants.json +19 -0
- package/artifacts/openapi.json +76 -14
- package/artifacts/schema/camera-source.schema.json +7 -3
- package/artifacts/schema/cloud-config.schema.json +56 -9
- package/artifacts/schema/config-draft-response.schema.json +56 -9
- package/artifacts/schema/config-version-response.schema.json +56 -9
- package/artifacts/schema/robot-config-doc.schema.json +56 -9
- package/dist/config.d.ts +83 -0
- package/dist/config.js +129 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/protocol.d.ts +11 -0
- package/dist/rest.d.ts +22 -0
- package/package.json +1 -1
|
@@ -1437,7 +1437,7 @@
|
|
|
1437
1437
|
"type": "string",
|
|
1438
1438
|
"maxLength": 255,
|
|
1439
1439
|
"pattern": "^[a-z][a-z0-9_]*\\/(?:msg|srv|action)\\/[A-Za-z][A-Za-z0-9]*$",
|
|
1440
|
-
"description": "The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.",
|
|
1440
|
+
"description": "The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes, `foxglove_msgs/msg/CompressedVideo` for a topic that carries H.264. H.264 is passed through to live viewers without the bridge decoding or encoding it: always for `CompressedVideo`, and for a `CompressedImage` whose `format` contains `h264`, in any case. A `CompressedImage` that carries JPEG stays a picture source. A camera that is passed through follows what `passthrough` says on an RTSP source: `width` and `height` must equal the stream's size, B-frames are refused, a new viewer waits for the next keyframe, and low-bandwidth mode ends its stream. The bridge does not depend on `foxglove_msgs`; a robot without the package reports `unknown type` for that one camera. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.",
|
|
1441
1441
|
"patternErrorMessage": "A ROS 2 type name has three segments: the package, then `msg`, `srv` or `action`, then the type — `sensor_msgs/msg/BatteryState`, `std_srvs/srv/Trigger`, `nav2_msgs/action/NavigateToPose`. The middle segment is the one usually left out. The package is lower-case with underscores; the type itself is letters and digits, conventionally CamelCase.",
|
|
1442
1442
|
"examples": [
|
|
1443
1443
|
"sensor_msgs/msg/Image"
|
|
@@ -1458,7 +1458,7 @@
|
|
|
1458
1458
|
"body": {
|
|
1459
1459
|
"kind": "ros",
|
|
1460
1460
|
"topic": "${1:/camera/image_raw}",
|
|
1461
|
-
"type": "${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage|}"
|
|
1461
|
+
"type": "${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage,foxglove_msgs/msg/CompressedVideo|}"
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
1464
|
]
|
|
@@ -1469,7 +1469,7 @@
|
|
|
1469
1469
|
"kind": {
|
|
1470
1470
|
"type": "string",
|
|
1471
1471
|
"const": "rtsp",
|
|
1472
|
-
"description": "Selects the RTSP source: this camera then carries `url`, and optionally `transport` and `credentials`."
|
|
1472
|
+
"description": "Selects the RTSP source: this camera then carries `url`, and optionally `transport`, `passthrough` and `credentials`."
|
|
1473
1473
|
},
|
|
1474
1474
|
"url": {
|
|
1475
1475
|
"type": "string",
|
|
@@ -1494,6 +1494,10 @@
|
|
|
1494
1494
|
"udp"
|
|
1495
1495
|
]
|
|
1496
1496
|
},
|
|
1497
|
+
"passthrough": {
|
|
1498
|
+
"description": "Passes the camera's own H.264 through to live viewers: the bridge forwards the access units it receives and neither decodes nor encodes the live video. A snapshot is decoded from the newest keyframe, so it is at most one keyframe interval old. Omitted means `false`: the stream is decoded and encoded again, and `fps` and `bitrate_kbps` are enforced. With `true`, `width` and `height` must equal the stream's own size, or the camera reports an error naming both and publishes nothing. `fps` and `bitrate_kbps` are not enforced then: the bridge cannot drop or shrink frames it does not encode, so both are set at the camera. The stream must be H.264 without B-frames; anything else is refused with a camera error. A new viewer waits for the camera's next keyframe, so set its keyframe interval to one to two seconds. Low-bandwidth mode ends such a stream, under `camera: reduce` as under `stop`: there is no bitrate to lower.",
|
|
1499
|
+
"type": "boolean"
|
|
1500
|
+
},
|
|
1497
1501
|
"credentials": {
|
|
1498
1502
|
"type": "object",
|
|
1499
1503
|
"properties": {
|
|
@@ -1657,7 +1661,7 @@
|
|
|
1657
1661
|
"type": "integer",
|
|
1658
1662
|
"exclusiveMinimum": 0,
|
|
1659
1663
|
"maximum": 7680,
|
|
1660
|
-
"description": "The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer's request, so no client can make the robot encode a larger frame than the developer allowed.",
|
|
1664
|
+
"description": "The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer's request, so no client can make the robot encode a larger frame than the developer allowed. A passthrough camera is the exception for live video: the bridge does not scale what it does not encode, so `width` and `height` must equal the stream's own size.",
|
|
1661
1665
|
"examples": [
|
|
1662
1666
|
1280
|
|
1663
1667
|
]
|
|
@@ -1666,7 +1670,7 @@
|
|
|
1666
1670
|
"type": "integer",
|
|
1667
1671
|
"exclusiveMinimum": 0,
|
|
1668
1672
|
"maximum": 4320,
|
|
1669
|
-
"description": "The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded.",
|
|
1673
|
+
"description": "The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded. The live video of a passthrough camera is not scaled: `height` and `width` must equal the stream's own size.",
|
|
1670
1674
|
"examples": [
|
|
1671
1675
|
720
|
|
1672
1676
|
]
|
|
@@ -1675,7 +1679,7 @@
|
|
|
1675
1679
|
"type": "integer",
|
|
1676
1680
|
"exclusiveMinimum": 0,
|
|
1677
1681
|
"maximum": 60,
|
|
1678
|
-
"description": "How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be.",
|
|
1682
|
+
"description": "How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be. A passthrough camera is the exception: the bridge forwards its H.264 at the rate the source sends it, and `fps` only bounds how often a snapshot is taken.",
|
|
1679
1683
|
"examples": [
|
|
1680
1684
|
15
|
|
1681
1685
|
]
|
|
@@ -1684,7 +1688,7 @@
|
|
|
1684
1688
|
"type": "integer",
|
|
1685
1689
|
"exclusiveMinimum": 0,
|
|
1686
1690
|
"maximum": 50000,
|
|
1687
|
-
"description": "The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot's uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail.",
|
|
1691
|
+
"description": "The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot's uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail. A passthrough camera is not encoded by the bridge, so nothing enforces this number there: the bitrate is set at the source, and this value is only what the track declares to the media server.",
|
|
1688
1692
|
"examples": [
|
|
1689
1693
|
2000
|
|
1690
1694
|
]
|
|
@@ -2034,7 +2038,7 @@
|
|
|
2034
2038
|
"camera": {
|
|
2035
2039
|
"description": "What happens to a running stream in the mode. New streams are refused either way.",
|
|
2036
2040
|
"enumDescriptions": [
|
|
2037
|
-
"A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none.",
|
|
2041
|
+
"A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none. A passthrough camera is the exception: the bridge does not encode it, so its stream ends as under `stop`.",
|
|
2038
2042
|
"A running stream ends and the viewer is told why. The uplink is then free for datapoints, which is the right trade where video is the nice-to-have."
|
|
2039
2043
|
],
|
|
2040
2044
|
"type": "string",
|
|
@@ -2044,13 +2048,56 @@
|
|
|
2044
2048
|
]
|
|
2045
2049
|
},
|
|
2046
2050
|
"camera_bitrate_kbps": {
|
|
2047
|
-
"description": "Bitrate applied to running streams under `reduce`.",
|
|
2051
|
+
"description": "Bitrate applied to running streams under `reduce`. A passthrough stream is not encoded by the bridge, so there is no bitrate to reduce and the stream ends.",
|
|
2048
2052
|
"type": "integer",
|
|
2049
2053
|
"minimum": 50,
|
|
2050
2054
|
"maximum": 20000
|
|
2051
2055
|
}
|
|
2052
2056
|
},
|
|
2053
2057
|
"additionalProperties": false
|
|
2058
|
+
},
|
|
2059
|
+
"live": {
|
|
2060
|
+
"description": "How the bridge sends live video, for every camera of the robot. Each key overrides the bridge's ROS parameter of the same name; an absent key leaves the parameter alone.",
|
|
2061
|
+
"defaultSnippets": [
|
|
2062
|
+
{
|
|
2063
|
+
"label": "live video, packet size",
|
|
2064
|
+
"description": "Caps every RTP packet the bridge sends. 1200 is the default; lower it for viewers behind a tunnel inside a tunnel.",
|
|
2065
|
+
"body": {
|
|
2066
|
+
"max_packet_bytes": 1200
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
],
|
|
2070
|
+
"type": "object",
|
|
2071
|
+
"properties": {
|
|
2072
|
+
"max_packet_bytes": {
|
|
2073
|
+
"description": "The largest RTP packet the bridge sends, in bytes: fixed header, header extensions and payload, before SRTP adds its tag, retransmissions included. It is not an MTU: the MTU belongs to the path to each viewer, which the robot does not know. On the wire a packet is up to about 80 bytes longer. Lower it when a viewer's path carries less, such as a tunnel inside a tunnel. The ceiling sits just under what the bridge's SRTP library protects (1356 bytes); past that, live video stops. Overrides the bridge's ROS parameter `live.max_packet_bytes`; without either, the bridge sends 1200. A change holds from the next frame, for running streams too.",
|
|
2074
|
+
"examples": [
|
|
2075
|
+
1200
|
|
2076
|
+
],
|
|
2077
|
+
"type": "integer",
|
|
2078
|
+
"minimum": 576,
|
|
2079
|
+
"maximum": 1350
|
|
2080
|
+
},
|
|
2081
|
+
"encoder": {
|
|
2082
|
+
"description": "What encodes live video on the robot. `software` is the bridge's own encoder on the CPU. Every other value sends H.264 from a hardware encoder, reached through GStreamer, which the robot has to have installed. An encoder that does not start, or stops delivering, is replaced by software H.264 for the rest of that session, with one warning in the bridge's log; one that did not start is not tried again until this setting changes or the bridge restarts. The fallback catches an encoder that fails, not one that draws a wrong picture, so look at the stream once after choosing one. The hardware encoders are written from the documentation of their GStreamer elements and tested through a software stand-in; the reference page of this section says which have been proven on hardware. It is one setting for the robot, not one per camera: the chip is part of the computer. It does not apply to a camera whose source already delivers H.264 and is passed through: that video is forwarded, not encoded. Overrides the bridge's ROS parameter `live.encoder`; without either, the bridge uses `software`. A change holds from the next live start; a running stream keeps its encoder.",
|
|
2083
|
+
"enumDescriptions": [
|
|
2084
|
+
"The bridge encodes on the CPU: VP8 or H.264, whichever the media server picks, as every robot did before the setting existed.",
|
|
2085
|
+
"Tries `nvenc`, then `vaapi`, then `v4l2`, and uses the first that starts. With none of them, software H.264.",
|
|
2086
|
+
"NVIDIA. On a Jetson the board's encoder (`nvv4l2h264enc`); a Jetson Orin Nano has none and ends on software. On a desktop card `nvh264enc`.",
|
|
2087
|
+
"Intel and AMD graphics through VA-API: `vah264enc` where the installed GStreamer has it, else `vaapih264enc`.",
|
|
2088
|
+
"A V4L2 encoder (`v4l2h264enc`), as on a Raspberry Pi 4. A Raspberry Pi 5 has no hardware encoder and ends on software."
|
|
2089
|
+
],
|
|
2090
|
+
"type": "string",
|
|
2091
|
+
"enum": [
|
|
2092
|
+
"software",
|
|
2093
|
+
"auto",
|
|
2094
|
+
"nvenc",
|
|
2095
|
+
"vaapi",
|
|
2096
|
+
"v4l2"
|
|
2097
|
+
]
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
"additionalProperties": false
|
|
2054
2101
|
}
|
|
2055
2102
|
},
|
|
2056
2103
|
"required": [
|
|
@@ -1475,7 +1475,7 @@
|
|
|
1475
1475
|
"type": "string",
|
|
1476
1476
|
"maxLength": 255,
|
|
1477
1477
|
"pattern": "^[a-z][a-z0-9_]*\\/(?:msg|srv|action)\\/[A-Za-z][A-Za-z0-9]*$",
|
|
1478
|
-
"description": "The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.",
|
|
1478
|
+
"description": "The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes, `foxglove_msgs/msg/CompressedVideo` for a topic that carries H.264. H.264 is passed through to live viewers without the bridge decoding or encoding it: always for `CompressedVideo`, and for a `CompressedImage` whose `format` contains `h264`, in any case. A `CompressedImage` that carries JPEG stays a picture source. A camera that is passed through follows what `passthrough` says on an RTSP source: `width` and `height` must equal the stream's size, B-frames are refused, a new viewer waits for the next keyframe, and low-bandwidth mode ends its stream. The bridge does not depend on `foxglove_msgs`; a robot without the package reports `unknown type` for that one camera. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.",
|
|
1479
1479
|
"patternErrorMessage": "A ROS 2 type name has three segments: the package, then `msg`, `srv` or `action`, then the type — `sensor_msgs/msg/BatteryState`, `std_srvs/srv/Trigger`, `nav2_msgs/action/NavigateToPose`. The middle segment is the one usually left out. The package is lower-case with underscores; the type itself is letters and digits, conventionally CamelCase.",
|
|
1480
1480
|
"examples": [
|
|
1481
1481
|
"sensor_msgs/msg/Image"
|
|
@@ -1496,7 +1496,7 @@
|
|
|
1496
1496
|
"body": {
|
|
1497
1497
|
"kind": "ros",
|
|
1498
1498
|
"topic": "${1:/camera/image_raw}",
|
|
1499
|
-
"type": "${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage|}"
|
|
1499
|
+
"type": "${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage,foxglove_msgs/msg/CompressedVideo|}"
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
]
|
|
@@ -1507,7 +1507,7 @@
|
|
|
1507
1507
|
"kind": {
|
|
1508
1508
|
"type": "string",
|
|
1509
1509
|
"const": "rtsp",
|
|
1510
|
-
"description": "Selects the RTSP source: this camera then carries `url`, and optionally `transport` and `credentials`."
|
|
1510
|
+
"description": "Selects the RTSP source: this camera then carries `url`, and optionally `transport`, `passthrough` and `credentials`."
|
|
1511
1511
|
},
|
|
1512
1512
|
"url": {
|
|
1513
1513
|
"type": "string",
|
|
@@ -1532,6 +1532,10 @@
|
|
|
1532
1532
|
"udp"
|
|
1533
1533
|
]
|
|
1534
1534
|
},
|
|
1535
|
+
"passthrough": {
|
|
1536
|
+
"description": "Passes the camera's own H.264 through to live viewers: the bridge forwards the access units it receives and neither decodes nor encodes the live video. A snapshot is decoded from the newest keyframe, so it is at most one keyframe interval old. Omitted means `false`: the stream is decoded and encoded again, and `fps` and `bitrate_kbps` are enforced. With `true`, `width` and `height` must equal the stream's own size, or the camera reports an error naming both and publishes nothing. `fps` and `bitrate_kbps` are not enforced then: the bridge cannot drop or shrink frames it does not encode, so both are set at the camera. The stream must be H.264 without B-frames; anything else is refused with a camera error. A new viewer waits for the camera's next keyframe, so set its keyframe interval to one to two seconds. Low-bandwidth mode ends such a stream, under `camera: reduce` as under `stop`: there is no bitrate to lower.",
|
|
1537
|
+
"type": "boolean"
|
|
1538
|
+
},
|
|
1535
1539
|
"credentials": {
|
|
1536
1540
|
"type": "object",
|
|
1537
1541
|
"properties": {
|
|
@@ -1695,7 +1699,7 @@
|
|
|
1695
1699
|
"type": "integer",
|
|
1696
1700
|
"exclusiveMinimum": 0,
|
|
1697
1701
|
"maximum": 7680,
|
|
1698
|
-
"description": "The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer's request, so no client can make the robot encode a larger frame than the developer allowed.",
|
|
1702
|
+
"description": "The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer's request, so no client can make the robot encode a larger frame than the developer allowed. A passthrough camera is the exception for live video: the bridge does not scale what it does not encode, so `width` and `height` must equal the stream's own size.",
|
|
1699
1703
|
"examples": [
|
|
1700
1704
|
1280
|
|
1701
1705
|
]
|
|
@@ -1704,7 +1708,7 @@
|
|
|
1704
1708
|
"type": "integer",
|
|
1705
1709
|
"exclusiveMinimum": 0,
|
|
1706
1710
|
"maximum": 4320,
|
|
1707
|
-
"description": "The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded.",
|
|
1711
|
+
"description": "The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded. The live video of a passthrough camera is not scaled: `height` and `width` must equal the stream's own size.",
|
|
1708
1712
|
"examples": [
|
|
1709
1713
|
720
|
|
1710
1714
|
]
|
|
@@ -1713,7 +1717,7 @@
|
|
|
1713
1717
|
"type": "integer",
|
|
1714
1718
|
"exclusiveMinimum": 0,
|
|
1715
1719
|
"maximum": 60,
|
|
1716
|
-
"description": "How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be.",
|
|
1720
|
+
"description": "How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be. A passthrough camera is the exception: the bridge forwards its H.264 at the rate the source sends it, and `fps` only bounds how often a snapshot is taken.",
|
|
1717
1721
|
"examples": [
|
|
1718
1722
|
15
|
|
1719
1723
|
]
|
|
@@ -1722,7 +1726,7 @@
|
|
|
1722
1726
|
"type": "integer",
|
|
1723
1727
|
"exclusiveMinimum": 0,
|
|
1724
1728
|
"maximum": 50000,
|
|
1725
|
-
"description": "The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot's uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail.",
|
|
1729
|
+
"description": "The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot's uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail. A passthrough camera is not encoded by the bridge, so nothing enforces this number there: the bitrate is set at the source, and this value is only what the track declares to the media server.",
|
|
1726
1730
|
"examples": [
|
|
1727
1731
|
2000
|
|
1728
1732
|
]
|
|
@@ -2072,7 +2076,7 @@
|
|
|
2072
2076
|
"camera": {
|
|
2073
2077
|
"description": "What happens to a running stream in the mode. New streams are refused either way.",
|
|
2074
2078
|
"enumDescriptions": [
|
|
2075
|
-
"A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none.",
|
|
2079
|
+
"A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none. A passthrough camera is the exception: the bridge does not encode it, so its stream ends as under `stop`.",
|
|
2076
2080
|
"A running stream ends and the viewer is told why. The uplink is then free for datapoints, which is the right trade where video is the nice-to-have."
|
|
2077
2081
|
],
|
|
2078
2082
|
"type": "string",
|
|
@@ -2082,13 +2086,56 @@
|
|
|
2082
2086
|
]
|
|
2083
2087
|
},
|
|
2084
2088
|
"camera_bitrate_kbps": {
|
|
2085
|
-
"description": "Bitrate applied to running streams under `reduce`.",
|
|
2089
|
+
"description": "Bitrate applied to running streams under `reduce`. A passthrough stream is not encoded by the bridge, so there is no bitrate to reduce and the stream ends.",
|
|
2086
2090
|
"type": "integer",
|
|
2087
2091
|
"minimum": 50,
|
|
2088
2092
|
"maximum": 20000
|
|
2089
2093
|
}
|
|
2090
2094
|
},
|
|
2091
2095
|
"additionalProperties": false
|
|
2096
|
+
},
|
|
2097
|
+
"live": {
|
|
2098
|
+
"description": "How the bridge sends live video, for every camera of the robot. Each key overrides the bridge's ROS parameter of the same name; an absent key leaves the parameter alone.",
|
|
2099
|
+
"defaultSnippets": [
|
|
2100
|
+
{
|
|
2101
|
+
"label": "live video, packet size",
|
|
2102
|
+
"description": "Caps every RTP packet the bridge sends. 1200 is the default; lower it for viewers behind a tunnel inside a tunnel.",
|
|
2103
|
+
"body": {
|
|
2104
|
+
"max_packet_bytes": 1200
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
],
|
|
2108
|
+
"type": "object",
|
|
2109
|
+
"properties": {
|
|
2110
|
+
"max_packet_bytes": {
|
|
2111
|
+
"description": "The largest RTP packet the bridge sends, in bytes: fixed header, header extensions and payload, before SRTP adds its tag, retransmissions included. It is not an MTU: the MTU belongs to the path to each viewer, which the robot does not know. On the wire a packet is up to about 80 bytes longer. Lower it when a viewer's path carries less, such as a tunnel inside a tunnel. The ceiling sits just under what the bridge's SRTP library protects (1356 bytes); past that, live video stops. Overrides the bridge's ROS parameter `live.max_packet_bytes`; without either, the bridge sends 1200. A change holds from the next frame, for running streams too.",
|
|
2112
|
+
"examples": [
|
|
2113
|
+
1200
|
|
2114
|
+
],
|
|
2115
|
+
"type": "integer",
|
|
2116
|
+
"minimum": 576,
|
|
2117
|
+
"maximum": 1350
|
|
2118
|
+
},
|
|
2119
|
+
"encoder": {
|
|
2120
|
+
"description": "What encodes live video on the robot. `software` is the bridge's own encoder on the CPU. Every other value sends H.264 from a hardware encoder, reached through GStreamer, which the robot has to have installed. An encoder that does not start, or stops delivering, is replaced by software H.264 for the rest of that session, with one warning in the bridge's log; one that did not start is not tried again until this setting changes or the bridge restarts. The fallback catches an encoder that fails, not one that draws a wrong picture, so look at the stream once after choosing one. The hardware encoders are written from the documentation of their GStreamer elements and tested through a software stand-in; the reference page of this section says which have been proven on hardware. It is one setting for the robot, not one per camera: the chip is part of the computer. It does not apply to a camera whose source already delivers H.264 and is passed through: that video is forwarded, not encoded. Overrides the bridge's ROS parameter `live.encoder`; without either, the bridge uses `software`. A change holds from the next live start; a running stream keeps its encoder.",
|
|
2121
|
+
"enumDescriptions": [
|
|
2122
|
+
"The bridge encodes on the CPU: VP8 or H.264, whichever the media server picks, as every robot did before the setting existed.",
|
|
2123
|
+
"Tries `nvenc`, then `vaapi`, then `v4l2`, and uses the first that starts. With none of them, software H.264.",
|
|
2124
|
+
"NVIDIA. On a Jetson the board's encoder (`nvv4l2h264enc`); a Jetson Orin Nano has none and ends on software. On a desktop card `nvh264enc`.",
|
|
2125
|
+
"Intel and AMD graphics through VA-API: `vah264enc` where the installed GStreamer has it, else `vaapih264enc`.",
|
|
2126
|
+
"A V4L2 encoder (`v4l2h264enc`), as on a Raspberry Pi 4. A Raspberry Pi 5 has no hardware encoder and ends on software."
|
|
2127
|
+
],
|
|
2128
|
+
"type": "string",
|
|
2129
|
+
"enum": [
|
|
2130
|
+
"software",
|
|
2131
|
+
"auto",
|
|
2132
|
+
"nvenc",
|
|
2133
|
+
"vaapi",
|
|
2134
|
+
"v4l2"
|
|
2135
|
+
]
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
"additionalProperties": false
|
|
2092
2139
|
}
|
|
2093
2140
|
},
|
|
2094
2141
|
"required": [
|
|
@@ -1432,7 +1432,7 @@
|
|
|
1432
1432
|
"type": "string",
|
|
1433
1433
|
"maxLength": 255,
|
|
1434
1434
|
"pattern": "^[a-z][a-z0-9_]*\\/(?:msg|srv|action)\\/[A-Za-z][A-Za-z0-9]*$",
|
|
1435
|
-
"description": "The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.",
|
|
1435
|
+
"description": "The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes, `foxglove_msgs/msg/CompressedVideo` for a topic that carries H.264. H.264 is passed through to live viewers without the bridge decoding or encoding it: always for `CompressedVideo`, and for a `CompressedImage` whose `format` contains `h264`, in any case. A `CompressedImage` that carries JPEG stays a picture source. A camera that is passed through follows what `passthrough` says on an RTSP source: `width` and `height` must equal the stream's size, B-frames are refused, a new viewer waits for the next keyframe, and low-bandwidth mode ends its stream. The bridge does not depend on `foxglove_msgs`; a robot without the package reports `unknown type` for that one camera. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.",
|
|
1436
1436
|
"patternErrorMessage": "A ROS 2 type name has three segments: the package, then `msg`, `srv` or `action`, then the type — `sensor_msgs/msg/BatteryState`, `std_srvs/srv/Trigger`, `nav2_msgs/action/NavigateToPose`. The middle segment is the one usually left out. The package is lower-case with underscores; the type itself is letters and digits, conventionally CamelCase.",
|
|
1437
1437
|
"examples": [
|
|
1438
1438
|
"sensor_msgs/msg/Image"
|
|
@@ -1453,7 +1453,7 @@
|
|
|
1453
1453
|
"body": {
|
|
1454
1454
|
"kind": "ros",
|
|
1455
1455
|
"topic": "${1:/camera/image_raw}",
|
|
1456
|
-
"type": "${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage|}"
|
|
1456
|
+
"type": "${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage,foxglove_msgs/msg/CompressedVideo|}"
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
]
|
|
@@ -1464,7 +1464,7 @@
|
|
|
1464
1464
|
"kind": {
|
|
1465
1465
|
"type": "string",
|
|
1466
1466
|
"const": "rtsp",
|
|
1467
|
-
"description": "Selects the RTSP source: this camera then carries `url`, and optionally `transport` and `credentials`."
|
|
1467
|
+
"description": "Selects the RTSP source: this camera then carries `url`, and optionally `transport`, `passthrough` and `credentials`."
|
|
1468
1468
|
},
|
|
1469
1469
|
"url": {
|
|
1470
1470
|
"type": "string",
|
|
@@ -1489,6 +1489,10 @@
|
|
|
1489
1489
|
"udp"
|
|
1490
1490
|
]
|
|
1491
1491
|
},
|
|
1492
|
+
"passthrough": {
|
|
1493
|
+
"description": "Passes the camera's own H.264 through to live viewers: the bridge forwards the access units it receives and neither decodes nor encodes the live video. A snapshot is decoded from the newest keyframe, so it is at most one keyframe interval old. Omitted means `false`: the stream is decoded and encoded again, and `fps` and `bitrate_kbps` are enforced. With `true`, `width` and `height` must equal the stream's own size, or the camera reports an error naming both and publishes nothing. `fps` and `bitrate_kbps` are not enforced then: the bridge cannot drop or shrink frames it does not encode, so both are set at the camera. The stream must be H.264 without B-frames; anything else is refused with a camera error. A new viewer waits for the camera's next keyframe, so set its keyframe interval to one to two seconds. Low-bandwidth mode ends such a stream, under `camera: reduce` as under `stop`: there is no bitrate to lower.",
|
|
1494
|
+
"type": "boolean"
|
|
1495
|
+
},
|
|
1492
1496
|
"credentials": {
|
|
1493
1497
|
"type": "object",
|
|
1494
1498
|
"properties": {
|
|
@@ -1652,7 +1656,7 @@
|
|
|
1652
1656
|
"type": "integer",
|
|
1653
1657
|
"exclusiveMinimum": 0,
|
|
1654
1658
|
"maximum": 7680,
|
|
1655
|
-
"description": "The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer's request, so no client can make the robot encode a larger frame than the developer allowed.",
|
|
1659
|
+
"description": "The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer's request, so no client can make the robot encode a larger frame than the developer allowed. A passthrough camera is the exception for live video: the bridge does not scale what it does not encode, so `width` and `height` must equal the stream's own size.",
|
|
1656
1660
|
"examples": [
|
|
1657
1661
|
1280
|
|
1658
1662
|
]
|
|
@@ -1661,7 +1665,7 @@
|
|
|
1661
1665
|
"type": "integer",
|
|
1662
1666
|
"exclusiveMinimum": 0,
|
|
1663
1667
|
"maximum": 4320,
|
|
1664
|
-
"description": "The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded.",
|
|
1668
|
+
"description": "The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded. The live video of a passthrough camera is not scaled: `height` and `width` must equal the stream's own size.",
|
|
1665
1669
|
"examples": [
|
|
1666
1670
|
720
|
|
1667
1671
|
]
|
|
@@ -1670,7 +1674,7 @@
|
|
|
1670
1674
|
"type": "integer",
|
|
1671
1675
|
"exclusiveMinimum": 0,
|
|
1672
1676
|
"maximum": 60,
|
|
1673
|
-
"description": "How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be.",
|
|
1677
|
+
"description": "How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be. A passthrough camera is the exception: the bridge forwards its H.264 at the rate the source sends it, and `fps` only bounds how often a snapshot is taken.",
|
|
1674
1678
|
"examples": [
|
|
1675
1679
|
15
|
|
1676
1680
|
]
|
|
@@ -1679,7 +1683,7 @@
|
|
|
1679
1683
|
"type": "integer",
|
|
1680
1684
|
"exclusiveMinimum": 0,
|
|
1681
1685
|
"maximum": 50000,
|
|
1682
|
-
"description": "The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot's uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail.",
|
|
1686
|
+
"description": "The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot's uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail. A passthrough camera is not encoded by the bridge, so nothing enforces this number there: the bitrate is set at the source, and this value is only what the track declares to the media server.",
|
|
1683
1687
|
"examples": [
|
|
1684
1688
|
2000
|
|
1685
1689
|
]
|
|
@@ -2029,7 +2033,7 @@
|
|
|
2029
2033
|
"camera": {
|
|
2030
2034
|
"description": "What happens to a running stream in the mode. New streams are refused either way.",
|
|
2031
2035
|
"enumDescriptions": [
|
|
2032
|
-
"A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none.",
|
|
2036
|
+
"A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none. A passthrough camera is the exception: the bridge does not encode it, so its stream ends as under `stop`.",
|
|
2033
2037
|
"A running stream ends and the viewer is told why. The uplink is then free for datapoints, which is the right trade where video is the nice-to-have."
|
|
2034
2038
|
],
|
|
2035
2039
|
"type": "string",
|
|
@@ -2039,13 +2043,56 @@
|
|
|
2039
2043
|
]
|
|
2040
2044
|
},
|
|
2041
2045
|
"camera_bitrate_kbps": {
|
|
2042
|
-
"description": "Bitrate applied to running streams under `reduce`.",
|
|
2046
|
+
"description": "Bitrate applied to running streams under `reduce`. A passthrough stream is not encoded by the bridge, so there is no bitrate to reduce and the stream ends.",
|
|
2043
2047
|
"type": "integer",
|
|
2044
2048
|
"minimum": 50,
|
|
2045
2049
|
"maximum": 20000
|
|
2046
2050
|
}
|
|
2047
2051
|
},
|
|
2048
2052
|
"additionalProperties": false
|
|
2053
|
+
},
|
|
2054
|
+
"live": {
|
|
2055
|
+
"description": "How the bridge sends live video, for every camera of the robot. Each key overrides the bridge's ROS parameter of the same name; an absent key leaves the parameter alone.",
|
|
2056
|
+
"defaultSnippets": [
|
|
2057
|
+
{
|
|
2058
|
+
"label": "live video, packet size",
|
|
2059
|
+
"description": "Caps every RTP packet the bridge sends. 1200 is the default; lower it for viewers behind a tunnel inside a tunnel.",
|
|
2060
|
+
"body": {
|
|
2061
|
+
"max_packet_bytes": 1200
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
],
|
|
2065
|
+
"type": "object",
|
|
2066
|
+
"properties": {
|
|
2067
|
+
"max_packet_bytes": {
|
|
2068
|
+
"description": "The largest RTP packet the bridge sends, in bytes: fixed header, header extensions and payload, before SRTP adds its tag, retransmissions included. It is not an MTU: the MTU belongs to the path to each viewer, which the robot does not know. On the wire a packet is up to about 80 bytes longer. Lower it when a viewer's path carries less, such as a tunnel inside a tunnel. The ceiling sits just under what the bridge's SRTP library protects (1356 bytes); past that, live video stops. Overrides the bridge's ROS parameter `live.max_packet_bytes`; without either, the bridge sends 1200. A change holds from the next frame, for running streams too.",
|
|
2069
|
+
"examples": [
|
|
2070
|
+
1200
|
|
2071
|
+
],
|
|
2072
|
+
"type": "integer",
|
|
2073
|
+
"minimum": 576,
|
|
2074
|
+
"maximum": 1350
|
|
2075
|
+
},
|
|
2076
|
+
"encoder": {
|
|
2077
|
+
"description": "What encodes live video on the robot. `software` is the bridge's own encoder on the CPU. Every other value sends H.264 from a hardware encoder, reached through GStreamer, which the robot has to have installed. An encoder that does not start, or stops delivering, is replaced by software H.264 for the rest of that session, with one warning in the bridge's log; one that did not start is not tried again until this setting changes or the bridge restarts. The fallback catches an encoder that fails, not one that draws a wrong picture, so look at the stream once after choosing one. The hardware encoders are written from the documentation of their GStreamer elements and tested through a software stand-in; the reference page of this section says which have been proven on hardware. It is one setting for the robot, not one per camera: the chip is part of the computer. It does not apply to a camera whose source already delivers H.264 and is passed through: that video is forwarded, not encoded. Overrides the bridge's ROS parameter `live.encoder`; without either, the bridge uses `software`. A change holds from the next live start; a running stream keeps its encoder.",
|
|
2078
|
+
"enumDescriptions": [
|
|
2079
|
+
"The bridge encodes on the CPU: VP8 or H.264, whichever the media server picks, as every robot did before the setting existed.",
|
|
2080
|
+
"Tries `nvenc`, then `vaapi`, then `v4l2`, and uses the first that starts. With none of them, software H.264.",
|
|
2081
|
+
"NVIDIA. On a Jetson the board's encoder (`nvv4l2h264enc`); a Jetson Orin Nano has none and ends on software. On a desktop card `nvh264enc`.",
|
|
2082
|
+
"Intel and AMD graphics through VA-API: `vah264enc` where the installed GStreamer has it, else `vaapih264enc`.",
|
|
2083
|
+
"A V4L2 encoder (`v4l2h264enc`), as on a Raspberry Pi 4. A Raspberry Pi 5 has no hardware encoder and ends on software."
|
|
2084
|
+
],
|
|
2085
|
+
"type": "string",
|
|
2086
|
+
"enum": [
|
|
2087
|
+
"software",
|
|
2088
|
+
"auto",
|
|
2089
|
+
"nvenc",
|
|
2090
|
+
"vaapi",
|
|
2091
|
+
"v4l2"
|
|
2092
|
+
]
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
"additionalProperties": false
|
|
2049
2096
|
}
|
|
2050
2097
|
},
|
|
2051
2098
|
"required": [
|
package/dist/config.d.ts
CHANGED
|
@@ -544,6 +544,7 @@ export declare const cameraSource: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
544
544
|
tcp: "tcp";
|
|
545
545
|
udp: "udp";
|
|
546
546
|
}>>;
|
|
547
|
+
passthrough: z.ZodOptional<z.ZodBoolean>;
|
|
547
548
|
credentials: z.ZodOptional<z.ZodObject<{
|
|
548
549
|
username: z.ZodOptional<z.ZodString>;
|
|
549
550
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -601,6 +602,7 @@ export declare const cameraConfig: z.ZodObject<{
|
|
|
601
602
|
tcp: "tcp";
|
|
602
603
|
udp: "udp";
|
|
603
604
|
}>>;
|
|
605
|
+
passthrough: z.ZodOptional<z.ZodBoolean>;
|
|
604
606
|
credentials: z.ZodOptional<z.ZodObject<{
|
|
605
607
|
username: z.ZodOptional<z.ZodString>;
|
|
606
608
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -673,6 +675,76 @@ export declare const lowBandwidthSection: z.ZodObject<{
|
|
|
673
675
|
camera_bitrate_kbps: z.ZodOptional<z.ZodNumber>;
|
|
674
676
|
}, z.core.$strict>;
|
|
675
677
|
export type LowBandwidthSection = z.infer<typeof lowBandwidthSection>;
|
|
678
|
+
/**
|
|
679
|
+
* What the bridge falls back to for live video when neither the document nor
|
|
680
|
+
* a ROS parameter names a setting. Exported into `constants.json` for
|
|
681
|
+
* `LOW_BANDWIDTH_DEFAULTS`' reason: the bridge reads the number rather than
|
|
682
|
+
* carrying a second copy.
|
|
683
|
+
*
|
|
684
|
+
* 1200 is what browsers send, which is why a path with an MTU of 1280 — the
|
|
685
|
+
* smallest IPv6 guarantees, and what NetBird and Tailscale set — carries it:
|
|
686
|
+
* the bytes a packet gains on the way (header extensions an SFU may add, the
|
|
687
|
+
* SRTP tag, UDP, IP, TURN) come to about 80 at most.
|
|
688
|
+
*
|
|
689
|
+
* `software` is the encoder the bridge has always had, so a bridge upgrade
|
|
690
|
+
* changes no robot. Hardware is opt-in for a reason the fallback cannot
|
|
691
|
+
* cover: it catches an encoder that does not start, not one that starts and
|
|
692
|
+
* draws the wrong picture.
|
|
693
|
+
*/
|
|
694
|
+
export declare const LIVE_DEFAULTS: {
|
|
695
|
+
readonly max_packet_bytes: 1200;
|
|
696
|
+
readonly encoder: "software";
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
* The bounds of the `live` settings, exported into `constants.json` beside the
|
|
700
|
+
* defaults: the bridge refuses a ROS parameter outside them with the same
|
|
701
|
+
* numbers this schema refuses a document with, read rather than copied.
|
|
702
|
+
*
|
|
703
|
+
* The upper bound of `max_packet_bytes` is not a taste. pylibsrtp, which
|
|
704
|
+
* protects the bridge's packets, refuses an RTP packet above 1356 bytes — a
|
|
705
|
+
* 1500-byte buffer less the room it keeps for the trailer — and aiortc's
|
|
706
|
+
* sender ends its loop on that refusal: live video stops for good. So a
|
|
707
|
+
* larger setting is not a bigger packet but no video, and it is refused where
|
|
708
|
+
* the configuration is saved. 1350 rather than 1356: a number a person can
|
|
709
|
+
* remember, and nothing is lost in six bytes.
|
|
710
|
+
*
|
|
711
|
+
* An enum's bounds are its values: `encoder.values` is the list the schema
|
|
712
|
+
* accepts, in the schema's order, so the bridge's parameter callback refuses
|
|
713
|
+
* a sixth name with the list the cloud refuses it with.
|
|
714
|
+
*/
|
|
715
|
+
export declare const LIVE_BOUNDS: {
|
|
716
|
+
readonly max_packet_bytes: {
|
|
717
|
+
readonly min: 576;
|
|
718
|
+
readonly max: 1350;
|
|
719
|
+
};
|
|
720
|
+
readonly encoder: {
|
|
721
|
+
readonly values: readonly ["software", "auto", "nvenc", "vaapi", "v4l2"];
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
/**
|
|
725
|
+
* How the bridge sends live video: settings of the transport and of the
|
|
726
|
+
* encoder, which hold for the whole robot and not for one camera — the path
|
|
727
|
+
* and the chip belong to the computer. Every key is optional and layered
|
|
728
|
+
* as in `lowBandwidthSection`: a key present here overrides the bridge's ROS
|
|
729
|
+
* parameter of the same name, an absent key falls through to it, and the
|
|
730
|
+
* parameter falls through to `LIVE_DEFAULTS`.
|
|
731
|
+
*
|
|
732
|
+
* Strict here, lenient on the robot. An unknown key is refused when the
|
|
733
|
+
* document is saved, so a typo is not a setting that silently does nothing;
|
|
734
|
+
* the bridge reads the section whole and ignores a key it does not know, so
|
|
735
|
+
* a cloud that learns a newer key does not take an older bridge off the air.
|
|
736
|
+
*/
|
|
737
|
+
export declare const liveSection: z.ZodObject<{
|
|
738
|
+
max_packet_bytes: z.ZodOptional<z.ZodNumber>;
|
|
739
|
+
encoder: z.ZodOptional<z.ZodEnum<{
|
|
740
|
+
v4l2: "v4l2";
|
|
741
|
+
auto: "auto";
|
|
742
|
+
software: "software";
|
|
743
|
+
nvenc: "nvenc";
|
|
744
|
+
vaapi: "vaapi";
|
|
745
|
+
}>>;
|
|
746
|
+
}, z.core.$strict>;
|
|
747
|
+
export type LiveSection = z.infer<typeof liveSection>;
|
|
676
748
|
/**
|
|
677
749
|
* The format version of a `fleetless.yaml`. Deliberately not called
|
|
678
750
|
* `version`: the console counts published states with "v12 → v13", and two
|
|
@@ -886,6 +958,7 @@ export declare const robotConfigDoc: z.ZodObject<{
|
|
|
886
958
|
tcp: "tcp";
|
|
887
959
|
udp: "udp";
|
|
888
960
|
}>>;
|
|
961
|
+
passthrough: z.ZodOptional<z.ZodBoolean>;
|
|
889
962
|
credentials: z.ZodOptional<z.ZodObject<{
|
|
890
963
|
username: z.ZodOptional<z.ZodString>;
|
|
891
964
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -939,6 +1012,16 @@ export declare const robotConfigDoc: z.ZodObject<{
|
|
|
939
1012
|
}>>;
|
|
940
1013
|
camera_bitrate_kbps: z.ZodOptional<z.ZodNumber>;
|
|
941
1014
|
}, z.core.$strict>>;
|
|
1015
|
+
live: z.ZodOptional<z.ZodObject<{
|
|
1016
|
+
max_packet_bytes: z.ZodOptional<z.ZodNumber>;
|
|
1017
|
+
encoder: z.ZodOptional<z.ZodEnum<{
|
|
1018
|
+
v4l2: "v4l2";
|
|
1019
|
+
auto: "auto";
|
|
1020
|
+
software: "software";
|
|
1021
|
+
nvenc: "nvenc";
|
|
1022
|
+
vaapi: "vaapi";
|
|
1023
|
+
}>>;
|
|
1024
|
+
}, z.core.$strict>>;
|
|
942
1025
|
}, z.core.$strict>;
|
|
943
1026
|
export type RobotConfigDoc = z.infer<typeof robotConfigDoc>;
|
|
944
1027
|
/**
|