[mavros-2] killing on exit

asked 2018-05-11 09:18:25 -0600

JeffBlumenthal gravatar image

Hi Everyone,

I'm trying to get mavros to startup on boot. Jetson TX2 Ubuntu 16.04 Kinetic

Here is my service file: mavros.service [Unit] Description=mavros After=network.target After=systemd-user-sessions.service After=network-online.target

[Service] User=root Type=forking ExecStart=/home/nvidia/catkin_ws/mavros_startup.sh Restart=on-failure

[Install] WantedBy=multi-user.target

Script #!/bin/bash source /opt/ros/kinetic/setup.bash roslaunch mavros apm.launch fcu_url:="/dev/ttyACM0:921600" gcs_url:="udp://14550@" &

after SSH'n in, I can run the script file with no problems I can start and stop the service with no problems

Per my problem: Upon boot, the service starts and then exits and I am not sure why. Could you please help?

Here is syslog from boot: May 11 13:51:17 tegra-astro mavros_startup.sh[836]: Unhandled exception in thread started by May 11 13:51:17 tegra-astro mavros_startup.sh[836]: sys.excepthook is missing May 11 13:51:17 tegra-astro mavros_startup.sh[836]: lost sys.stderr May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/sys/disable_diag: False May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/sys/min_voltage: 10.0 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/target_component_id: 1 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/target_system_id: 1 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/tdr_radio/low_rssi: 40 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/time/time_ref_source: fcu May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/time/timesync_avg_alpha: 0.6 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/time/timesync_mode: NONE May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/vibration/frame_id: base_link May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/vision_pose/tf/child_frame_id: vision_estimate May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/vision_pose/tf/frame_id: map May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/vision_pose/tf/listen: False May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/vision_pose/tf/rate_limit: 10.0 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /mavros/vision_speed/listen_twist: False May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /rosdistro: kinetic May 11 13:51:17 tegra-astro mavros_startup.sh[836]: * /rosversion: 1.12.13 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: NODES May 11 13:51:17 tegra-astro mavros_startup.sh[836]: / May 11 13:51:17 tegra-astro mavros_startup.sh[836]: mavros (mavros/mavros_node) May 11 13:51:17 tegra-astro mavros_startup.sh[836]: auto-starting new master May 11 13:51:17 tegra-astro mavros_startup.sh[836]: #033[1mprocess[master]: started with pid [1347]#033[0m May 11 13:51:17 tegra-astro mavros_startup.sh[836]: #033[1mROS_MASTER_URI=http://localhost:11311#033[0m May 11 13:51:17 tegra-astro mavros_startup.sh[836]: #033]2;/opt/ros/kinetic/share/mavros/launch/apm.launch http://localhost:11311#007 May 11 13:51:17 tegra-astro mavros_startup.sh[836]: #033[1msetting /run_id to 5efc5a02-5522-11e8-959f-06b73ffe1e65#033[0m May 11 13:51:17 tegra-astro mavros_startup.sh[836]: #033 ... (more)

edit retag flag offensive close merge delete