ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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 "date +'~/rtabmap_databases/rtabmap_%Y-%m-%d-%Ih-%Mm-%Ss.db' | tr -d '\n'""/>
It worked fine on my laptop using ROS melodic.
2 | No.2 Revision |
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 "date +'~/rtabmap_databases/rtabmap_%Y-%m-%d-%Ih-%Mm-%Ss.db' | tr -d '\n'""/>
It worked fine on my laptop using ROS melodic.