Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think the problem is that the resulting string from the command date + '~ / rtabmap_databases / rtabmap_% Y-% m-% d-% Ih-% Mm-% Ss.db' has a trailing newline character, thus the check on the last characters of the string (representing the file extension) fails.

Try to replace the command with the following:

<param command="bash -c &quot;date +'~/rtabmap_databases/rtabmap_%Y-%m-%d-%Ih-%Mm-%Ss.db' | tr -d '\n'&quot;"/>

It worked fine on my laptop using ROS melodic.

I think the problem is that the resulting string from the command date + '~ / rtabmap_databases / rtabmap_% Y-% m-% d-% Ih-% Mm-% Ss.db' has a trailing newline character, thus the check on the last characters of the string (representing the file extension) fails.

Try to replace the command with the following:

<param name="database_path" command="bash -c &quot;date +'~/rtabmap_databases/rtabmap_%Y-%m-%d-%Ih-%Mm-%Ss.db' | tr -d '\n'&quot;"/>

It worked fine on my laptop using ROS melodic.