Importing and exporting paths

The path import/export functionality operates on CSV-files (Comma Separated Values) than can be created or read with a simple text-editor, but also easily imported/exported into applications like Microsoft Excel.


Importing paths

V-REP's import functionality ( [Menu bar --> File --> Import path from CSV...] ) reads line-by-line values, where each line corresponds to a control point. Each line should be formatted in following way:

x,y,z,alpha,beta,gamma,relativeVelocity,BezierPointCount,interpolationFactor1,interpolationFactor2

Where:

  • (x, y, z) represents a control point's position in METERS
  • (alpha, beta, gamma) represents a control point's orientation given as Euler angles in DEGREES.
  • RelativeVelocity represents a control point's relative velocity (for the generation of a velocity profile)
  • BezierPointCount is the number of Bezier points that are desired for the control point
  • InterpolationFactor1 & InterpolationFactor2 are the interpolation factors described in the section on path control points and Bezier points.
  • Except for the first 3 values (control point position coordinates), all other values can be omitted, in which case default values are applied.


    Exporting paths

    A path's control points can be exported by selecting the path, then clicking [Menu bar --> File --> Export selected path as CSV...]. The export format in this case is identical to the previously described path import format.

    A path's Bezier points can also be exported by selecting the path, then clicking [Menu bar --> File --> Export selected path's bezier curve as CSV...]. In this case, each line in the created file (exported file) corresponds to a Bezier point and contains following values:

    x,y,z,alpha,beta,gamma,relativeVelocity
    

    Recommended topics

  • Paths
  • Path control points and Bezier points
  • Path dialog
  • Path edit mode