run ros2 humble node on ubuntu server 22.04 reboot/startup
Hi, I tried to run ros2 node on ubuntu server startup. For this i tried crontab and systemd service. But failed to run ros2 on system start. For this i tried following script
#!/bin/bash
source /opt/ros/humble/setup.bash
/opt/ros/humble/bin/ros2 run demo_nodes_cpp talker
System Details:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04 Codename: jammy
Python 3.10.6
Can anyone help to run ros2 node on ubuntu server startup?