Importing and exporting pathsThe 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.
CoppeliaSim'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, virtualDistance,auxiliaryFlags,auxiliaryChannel1,auxiliaryChannel2,auxiliaryChannel3,auxiliaryChannel4 Where: Except for the first 3 values (control point position coordinates), all other values can be omitted, in which case default values are applied.
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,virtualDistance,auxiliaryFlags,auxiliaryChannel1,auxiliaryChannel2, auxiliaryChannel3,auxiliaryChannel4 Recommended topics |