ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
I encounter the same question, and i solve it by setting HOME environment in the service file:
Environment="HOME=root"
add this line in [Service], and ros2 will work fine in systemctl.