Main Content

readall

Read all data in datastore

Since R2024a

    Description

    data = readall(ds) returns all the data contained in the specified DLCHOMP datastore.

    Input Arguments

    collapse all

    Input datastore, specified as a dlCHOMPDatastore object.

    Output Arguments

    collapse all

    Output data, returned as an N-by-3 cell array. N is the number of JSON files in the datastore. Each row represents the contents of the corresponding JSON file, and has these elements in order:

    1. 2*M-element numeric vector of the first and last waypoints of the Trajectory field of the input JSON file, concatenated row-wise. M is the number of joints in the robot rigid body tree.

    2. E-element numeric vector of the obstacle encoding from the Encoding field of the input JSON file. E is the size of the basis point set.

    3. (W–2)*M numeric vector of the intermediate waypoints of the Trajectory field of the input JSON file. W is the number of waypoints. M is the number of joints in the robot rigid body tree.

    Version History

    Introduced in R2024a