Running Rtab-map with systemctl, no .dtb map saved.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Running Rtab-map with systemctl, no .dtb map saved.

matt
Good day,

Wondering if i could get some help please.

When Launching rs_rtabmap.launch through systemd .service, no dtp are updated on stopping the service.
The process is simply killed.
What am i missing?

The .service;
[Unit]
Description=rtabmap
After=network.target
After=syslog.target

[Service]
Type=forking
User=pi
ExecStart=/home/pi/rtabmapstart.sh
Restart=on-failure
TimeoutStopSec=15

[Install]
WantedBy=multi-user.target

Best regards

Reply | Threaded
Open this post in threaded view
|

Re: Running Rtab-map with systemctl, no .dtb map saved.

matlabbe
Administrator
Hi,

You may look at this post: https://www.programmersought.com/article/7453426681/
It could be possible to add an ExecStop to safely close ros (with rosnode kill) and thus let rtabmap finalizing the database on exit.

Reply | Threaded
Open this post in threaded view
|

Re: Running Rtab-map with systemctl, no .dtb map saved.

matt
Thank you for your time and reply!

Best regards