You need to enable JavaScript to run this app.
文档中心
对象存储

对象存储

复制全文
下载 pdf
MCAP
McapListChannels
复制全文
下载 pdf
McapListChannels
功能描述​
此接口用于精确列出 MCAP 文件中的通道定义。​
注意事项​
  • 仅适用于 MCAP 文件。​
  • McapListChannels 接口处于邀测状态,如需使用,请联系客户经理开通白名单。​
请求消息样式​
​
GET /demo.mcap?x-tos-process=file/mcap-list,channels HTTP/1.1​
Host: <bucket_name>.tos-cn-beijing.volces.com​
Authorization: <authorization_string>​
​
请求参数和消息头​
该请求使用的公共请求消息头,请参见公共参数。​
​
名称​
位置​
参数类型​
是否必选​
示例值​
说明​
x-tos-process​
Query​
String​
是​
file/mcap-list,channels​
列举 MCAP 文件中通道定义的请求标识。​
​
请求元素​
该接口无请求元素。​
响应消息头​
该请求返回的公共响应消息头,请参见公共参数。​
响应元素​
​
名称​
参数类型​
示例值​
说明​
channels​
Array​
-​
通道列表。​
id​
Int​
0​
通道的唯一标识 ID。​
父节点:channels​
schema_id​
Int​
1​
通道关联的消息结构定义(Schema)ID。​
父节点:channels​
topic​
String​
/chatter​
通道对应的主题名称。​
父节点:channels​
message_encoding​
String​
ros1​
通道内消息的编码格式。​
父节点:channels​
metadata​
String​
{"md5sum":"992ce8a1687cec8c8bd883ec73ca41d1","topic":"/chatter"}​
通道的自定义元数据。​
父节点:channels​
​
请求示例​
​
GET /demo.mcap?x-tos-process=file/mcap-list,channels HTTP/1.1​
Host: <bucket_name>.tos-cn-beijing.volces.com​
Authorization: <authorization_string>​
​
响应示例​
​
HTTP/1.1 200 OK​
Server: TosServer​
x-tos-id-2: 1e89f203jld00006-a444fd0​
x-tos-request-id: 1e89f203b2d00006-a444ed0​
​
{​
"channels": [​
{​
"id": 0,​
"schema_id": 1,​
"topic": "/chatter",​
"message_encoding": "ros1",​
"metadata": "{\"md5sum\":\"992ce8a1687cec8c8bd883ec73ca41d1\",\"topic\":\"/chatter\"}"​
},​
{​
"id": 1,​
"schema_id": 1,​
"topic": "/diagnostics",​
"message_encoding": "ros1",​
"metadata": "{\"md5sum\":\"992ce8a1687cec8c8bd883ec73ca41d1\",\"topic\":\"/diagnostics\"}"​
}​
]​
}​
​
最近更新时间:2026.08.03 15:17:36
这个页面对您有帮助吗?
有用
有用
无用
无用