Go2Py_SIM/deploy/services/go2py-robot-description.ser...

13 lines
535 B
SYSTEMD
Raw Normal View History

[Unit]
Description=ROS2 device driver container
Requires=multi-user.target
After=multi-user.target
[Service]
Restart=always
ExecStartPre=/usr/bin/docker rm -f go2py_robot_description || true
ExecStart=/bin/bash -c '/usr/bin/docker run --rm --name go2py_robot_description --privileged --network host -v /home/unitree/locomotion:/home/locomotion -v /dev/*:/dev/* -v /etc/localtime:/etc/localtime:ro --runtime nvidia go2py_description:latest'
ExecStop=/usr/bin/docker stop -t 2 go2py_robot_description
[Install]
WantedBy=default.target