libcreate icon indicating copy to clipboard operation
libcreate copied to clipboard

[create::Serial] serial error - End of file

Open franciscodominguezmateos opened this issue 6 years ago • 11 comments

Hello I am trying to use your lib but there any problem with the serial connection. I have inserted some printing on the source code in order to track the error and the problem seems to be in the startReading method. I get this error message: [create::Serial] serial error - End of file I am working with Ubuntu 16.04. I have tried pycreate2 and it works fine with a Roomba 605. Thank you. Paco

Hi Paco. This worked for me on the Raspberry Pi 4: Grab #38 and #45 and set baud in the create_autonomy/ca_driver/config/default.yaml file. Dave

dcarpy avatar Aug 03 '19 00:08 dcarpy

Hello Dave You meant #54. don't you? I was trying to make the changes but I don't have a serial.hpp but a serial.h I found two bind in serial.cpp and did changes but now this error: Port:/dev/ttyUSB0 baud:115200 Puerto abierto [create::Serial] serial error - Operation canceled [create::Serial] failed to receive data from Create. Check if robot is powered! Failed to connect to robot on port /dev/ttyUSB0 The Spanish words are a cout to check that the port is actually open. Paco

Hi Paco. You are right I forgot about #54--I did make that change in addition to #38 and #45. I forgot to mention I switched from kinetic to melodic because Raspbian for Pi4 is based on Debian 10. Dave

dcarpy avatar Aug 03 '19 12:08 dcarpy

Hello Dave I am not working with ROS yet, I cloned libcreate repo and compiled with traditional cmake commands. I don't see the point on #38 and #45. I have Ubuntu 16.04. Paco

It is the only way I could get it to work. Try setting your baud first for the 605 and if that still doesn't work then make the other changes.

dcarpy avatar Aug 03 '19 13:08 dcarpy

I finally checked in my changes if you want to take a look: https://github.com/dcarpy/libcreate

dcarpy avatar Aug 03 '19 13:08 dcarpy

Hello Dave The same problem with your code. I tested it on a Jetson Nano with Ubuntu 18.04 and same problem. I seem not to be a SO version problem. Thank you again. Paco

Hello Dave I have just got a Raspberry Pi 4. I have installed Raspian and Boost 1.67 compile your and original lib and same error. On the other hand, pycreate2 works fine. Any idea? Thank you again. Paco

Hi Paco. Is is possible your 605 is on 19200? I did update the firmware on the Pi4--but I doubt it is related. Hmm...I can send you my bash history if you think it would help? Thanks. Dave

dcarpy avatar Aug 05 '19 15:08 dcarpy

Hello David As I told you with pycreate2 works by default then it is not in 19200. Don't you? I don't see the point of viewing your bash history. By the way, where do you get it from? Thank you. Paco

I can confirm this problem with the example code compiled on a raspberry pi (ubuntu 18.04). Works fine on my amd64 desktop (ubuntu 20.04). So I suspect something to do with the architecture?

shuhaowu avatar Sep 22 '20 01:09 shuhaowu