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 a 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 array of the first and last waypoints of the Trajectory field of the input JSON file concatenated row-wise. M is the joint size of the robot.

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

    3. (W-2)*M numeric array of the intermediate waypoints of the Trajectory field of the input JSON file. W is the number of waypoints. M is the joint size of the robot.

    Version History

    Introduced in R2024a