ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have not used systemd myself for this task, but I've used the following method in a fairly similar situation to wrap roslaunch:

```

in your /usr/local/bin/runslam.s:

bash -c "source /path/to/catkin_ws/devel/setup.bash && roslaunch runslam slam.launch" ```

I have not used systemd myself for this task, but I've used the following method in a fairly similar situation to wrap roslaunch:

```

# in your /usr/local/bin/runslam.s:

/usr/local/bin/runslam.s: bash -c "source /path/to/catkin_ws/devel/setup.bash && roslaunch runslam slam.launch" ```

I have not used systemd myself for this task, but I've used the following method in a fairly similar situation to wrap roslaunch:.

Change /usr/local/bin/runslam.sh to:

# in your /usr/local/bin/runslam.s:
#!/usr/bin/env bash
bash -c "source /path/to/catkin_ws/devel/setup.bash && roslaunch runslam slam.launch"