write_trajectory_def

Function write_trajectory_def 

Source
pub fn write_trajectory_def(traj: &impl ToInputArray) -> Result<()>
Expand description

takes vector<Affine3> with T = float/double and writes to a sequence of files with given filename format

§Parameters

  • traj: Trajectory containing a list of poses. It can be - std::vectorcv::Mat, each cv::Mat is of type CV_32F16 or CV_64FC16 - std::vectorcv::Affine3f, std::vectorcv::Affine3d - cv::Mat of type CV_32FC16 OR CV_64F16
  • files_format: Format specifier string for constructing filenames. The only placeholder in the string should support int.
  • start: The initial counter for files_format.
  • tag: Name of the matrix in the file.

§Note

This alternative version of write_trajectory function uses the following default values for its arguments:

  • files_format: “pose%05d.xml”
  • start: 0
  • tag: “pose”