Function mrpt::obs::format_externals_filename
Defined in File format_externals_filename.h
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,3dcamfor single images, stereo images and depth camera observations, respectively, orotherotherwise.${label}is replaced by the observationsensorLabelfield.fwith any standardprintf()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-externalsis"${type}_${label}_%.06%f".Note
(new in MRPT 2.4.1)