PipelineOssSource

Updated at:

Parameter

Type

Description

Example

object

The OSS data source configuration. Used only when source.type is set to oss. You must specify format, region, roleArn, and uri.

format

string

The OSS data format. LeRobot identifies the data version from meta/info.json and supports v2.1 in the initial release. MCAP imports exact objects or directories.

lerobot

region

string

The region where the OSS bucket is located.

cn-beijing

roleArn

string

The ARN of the RAM role used to access OSS. The role must belong to the current authenticated account and have the required OSS access permissions for the target data.

acs:ram::1234567890123456:role/oss-reader

uri

string

The OSS URI in the format of oss:///. LeRobot accepts package directories or parent directories, and the batch scope includes direct candidate packages in the first batch of OSS list results. MCAP accepts exact object keys ending with .mcap or directories ending with /, where directories match only direct .mcap objects.

oss://example-bucket/robot-datasets/example/

formatOptions

object

Optional. If omitted or set to {}, the default configurations are used.

The following example shows the structure of mcap_mapping, where the key is the camera view and the value is the MCAP topic path.

{
  "formatOptions": {
    "mcap_mapping": {
      "video_camera_right": "/example/camera/right",
      "video_camera_left": "/example/camera/left",
      "video_camera_head": "/example/camera/head"
    }
  }
}

{}

any

The format-specific configuration value. An example is the MCAP camera mapping.

{"video_camera_right":"/example/camera/right","video_camera_left":"/example/camera/left","video_camera_head":"/example/camera/head"}