Function mrpt::obs::format_externals_filename

Function Documentation

std::string mrpt::obs::format_externals_filename(const mrpt::obs::CObservation &obs, const std::string &fmt)

Replaces format placeholders in a string according to an observation:

  • ${type} is replaced by: img, stereo, 3dcam for single images, stereo images and depth camera observations, respectively, or other otherwise.

  • ${label} is replaced by the observation sensorLabel field.

  • f with any standard printf() format modifiers will be replaced by UNIX timestamp (with fractions of seconds) of the observation.

  • Anything else will be left unmodified.

For example, the default format string used in rawlog-edit --rename-externals is "${type}_${label}_%.06%f".

Note

(new in MRPT 2.4.1)