Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python node read serial port for just half of seconds #76

Open
GITSHOHOKU opened this issue Nov 30, 2018 · 1 comment
Open

python node read serial port for just half of seconds #76

GITSHOHOKU opened this issue Nov 30, 2018 · 1 comment

Comments

@GITSHOHOKU
Copy link

Hi
Thanks for this wonderful package!
I use a python node in roslaunch file to communicate with serial ports on upstart, I did used chown and chgrp on each ttyUSB* like this

KERNELS=="1-3",  MODE:="0666", OWNER:="hkwal", GROUP:="hkwal"
KERNELS=="1-1.1",  MODE:="0666", OWNER:="hkwal", GROUP:="hkwal"  
KERNELS=="1-1.4",  MODE:="0666", OWNER:="hkwal", GROUP:="hkwal"

And set the --user to my login name hkwal, when I start my PC , I saw the log file that said I have start it for just 0.5 seconds and then it was shotdown message like this:

[roslaunch][INFO] 2018-11-30 21:00:12,469: process[robot_startup-2]: start w/ args [[u'/home/hkwal/catkin_model/src/sx_robot/nodes/serial_to_controllor.py', u'__name:=robot_startup', u'__log:=/home/hkwal/NEWDISK/Startlogfile/sx_robot_upstart.log/df47a2bc-f49f-11e8-8aa8-29ac412068f5/robot_startup-2.log']]
[roslaunch][INFO] 2018-11-30 21:00:12,469: process[robot_startup-2]: cwd will be [/home/hkwal/.ros]
[roslaunch][INFO] 2018-11-30 21:00:12,472: process[robot_startup-2]: started with pid [1282]
[roslaunch][INFO] 2018-11-30 21:00:12,472: ... successfully launched [robot_startup-2]
[roslaunch][INFO] 2018-11-30 21:00:12,472: ... launch_nodes complete
[roslaunch.pmon][INFO] 2018-11-30 21:00:12,472: registrations completed <ProcessMonitor(ProcessMonitor-1, started daemon 139705500083968)>
[roslaunch.parent][INFO] 2018-11-30 21:00:12,472: ... roslaunch parent running, waiting for process exit
[roslaunch][INFO] 2018-11-30 21:00:12,472: spin
[roslaunch][ERROR] 2018-11-30 21:00:12,929: [robot_startup-2] process has died [pid 1282, exit code 1, cmd /home/hkwal/catkin_model/src/sx_robot/nodes/serial_to_controllor.py __name:=robot_startup __log:=/home/hkwal/NEWDISK/Startlogfile/sx_robot_upstart.log/df47a2bc-f49f-11e8-8aa8-29ac412068f5/robot_startup-2.log].
log file: /home/hkwal/NEWDISK/Startlogfile/sx_robot_upstart.log/df47a2bc-f49f-11e8-8aa8-29ac412068f5/robot_startup-2*.log
[roslaunch.pmon][INFO] 2018-11-30 21:00:12,929: ProcessMonitor.unregister[robot_startup-2] starting
[roslaunch.pmon][INFO] 2018-11-30 21:00:12,929: ProcessMonitor.unregister[robot_startup-2] complete

Anybodys knows why ! I had disturbed by it for a long time!!!
Thanks anyway!

@GITSHOHOKU
Copy link
Author

Another information is that when I in my LOGIN name hkwal , I reboot the PC ,it can upstart success , but when I poweroff it and power on PC the python node start failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant