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

We use systemd service with properly defined environment variables, works fine.

We use systemd service with properly defined environment variables, works fine.fine. Example:

[Unit]
Description="Project daemon"

[Service]
Environment="ROS_DOMAIN_ID=42"
Environment="LD_LIBRARY_PATH=/opt/project/install/lib:/opt/ros/dashing/lib"
Environment="PYTHONPATH=/opt/project/install/lib/python3.6/site-packages:/opt/ros/dashing/lib/python3.6/site-packages/"
Environment="AMENT_PREFIX_PATH=/opt/project/install:/opt/ros/dashing"

ExecStart=/opt/ros/dashing/bin/ros2 launch --debug project_bringup project.launch.py
Restart=on-failure

[Install]
WantedBy=multi-user.target