Issues with roscore on startup
Good afternoon,
I'm a new user of ROS. I developped an application on Raspberry Pi 2 Model B with ROS Indigo and Raspian Wheezy. I have to launch this application on the startup of my Raspberry. So I designed a script which is executed on the startup of the Raspberry Pi to launch roscore (in the first phase). Indeed, I linked it with success. Here is my script :
#!/bin/bash
### BEGIN INIT INFO
# Provides: servoblaster
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Init servoblaster + Run adas application
# Description: Run a command which must be executed to run a PWM signal
# Define sources for ROS and launch the adas application, thanks to roslaunch
### END INIT INFO
# -*- coding: utf-8 -*-
# Debian init.d script for servoblaster
case "$1" in
start)
touch /tmp/test_start
/home/pi/PiBits/ServoBlaster/user/servod
export ROS_ROOT=/home/pi/ros_from_sources/src/ros/rosbuild
export ROS_MASTER_URI=http://localhost:11311
export PYTHONPATH=/home/pi/ros_from_sources/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages
export ROS_PACKAGE_PATH=/home/pi/ros_from_sources/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks
export ROSCONSOLE_CONFIG_FILE=/home/pi/ros_from_sources/src/ros_comm/rosconsole/config/rosconsole.config
export ROS_ETC_DIR=/home/pi/ros_from_sources/devel/etc/ros
export ROS_DISTRO=indigo
export LC_ALL=C
source /opt/ros/indigo/setup.bash
source /home/pi/ros_from_sources/devel/setup.bash
env | grep ROS
roscore
;;
stop)
touch /tmp/test_stop
# sudo ./home/pi/PiBits/ServoBlaster/user/servod
;;
reload|force-reload)
touch /tmp/test_reload
# sudo ./home/pi/PiBits/ServoBlaster/user/servod
;;
restart)
touch /tmp/test_restart
/home/pi/PiBits/ServoBlaster/user/servod
;;
status)
touch /tmp/test_status
# sudo ./home/pi/PiBits/ServoBlaster/user/servod
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|restart|force-reload|status}" >&2
exit 2
;;
esac
exit 0
But an error appeared and I didn't manage to solve it. Here is the log error :
[roslaunch][INFO] 2016-07-25 09:14:56,932: Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
[roslaunch][INFO] 2016-07-25 09:14:57,002: Done checking log file disk usage. Usage is <1GB.
[roslaunch][INFO] 2016-07-25 09:14:57,003: roslaunch starting with args ['roscore', '--core']
[roslaunch][INFO] 2016-07-25 09:14:57,004: roslaunch env is {'ROS_DISTRO': 'indigo', 'LINES': '61', 'CPATH': '/home /pi/ros_from_sources/devel/include:/opt/ros/indigo/include', 'ROS_PACKAGE_PATH': '/home/pi/ros_from_sources/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks', 'PATH': '/home/pi/ros_from_sources/devel/bin:/opt/ros/indigo/bin:/sbin:/usr/sbin:/bin:/usr/bin', 'ROSCONSOLE_CONFIG_FILE': '/home/pi/ros_from_sources/src/ros_comm/rosconsole/config/rosconsole.config', 'LD_LIBRARY_PATH': '/home/pi/ros_from_sources/devel/lib:/home/pi/ros_from_sources/devel/lib/arm-linux-gnueabihf:/opt/ros/indigo/lib/arm-linux-gnueabihf:/opt/ros/indigo/lib', 'previous': 'N', 'TERM': 'linux', 'SHELL': '/bin/sh', 'SHLVL': '2', 'PREVLEVEL': 'N', 'ROS_LOG_FILENAME': '/.ros/log/410e4bd8-5248-11e6-a0d5-6c198f01aa9d/roslaunch-raspberrypi-2437.log', '_': '/home/pi/ros_from_sources/devel/bin/roscore', 'runlevel': '2', 'ROS_ETC_DIR': '/home/pi/ros_from_sources/devel/etc/ros', 'HOME': '/', 'CONSOLE': '/dev/console', 'PYTHONPATH': '/home/pi/ros_from_sources/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages', 'ROS_ROOT': '/home ...