wjwwood_serial Unable to open port
HI everyone!
I used wjwwood_serial to connect my RS232.And i installed by use sudo apt-get install ros-indigo-serial in computer1 and laptop.
Then I created package and wrote code, let it can listen to ROS node. And it can run perfect in computer1,but when i copy this package to laptop and run. It shows Unable to open port.
my code:https://drive.google.com/folderview?id=0B02FisAlf-IXTGVmclV0UW11QTg&usp=sharing
what happened? thank for any help and advice!
best regard!
Asked by Josephlin on 2016-07-26 03:18:37 UTC
Comments
Has your user the rights to use the serial port on the laptop? Try sudo chmod 666 /dev/ttyS0 (or whatever your serial port is)
Asked by fsteinhardt on 2016-07-26 04:21:55 UTC
thank you! i sloved the problem by use sudo chmod 666 /dev/ttyUSB0. so it is the permission problem
Asked by Josephlin on 2016-07-27 01:25:37 UTC
Hi! I am new for ROS, i am wondering if you could tell/teach me how to create package and why should we do it. THX!
Asked by Allen_Feng on 2016-09-26 00:47:12 UTC
Hi ! I just see the email this weekend,i so sorry for reply too late.If you want to use this package,you just need to.
sudo apt-get install ros-indigo-serial
.Then you can use serial like in python or c++,just like #includeAsked by Josephlin on 2016-10-10 05:48:47 UTC
the serial example
Asked by Josephlin on 2016-10-10 05:48:59 UTC
Hi, can you send me the serial example as the link is no longer available?
Asked by KirillRomanov on 2018-02-08 05:14:58 UTC