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

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

Open
franciscodominguezmateos opened this issue Jul 30, 2019 · 11 comments
Open

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

franciscodominguezmateos opened this issue Jul 30, 2019 · 11 comments

Comments

@franciscodominguezmateos

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

@dcarpy
Copy link

dcarpy commented Aug 3, 2019

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

@franciscodominguezmateos
Copy link
Author

franciscodominguezmateos commented Aug 3, 2019

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

@dcarpy
Copy link

dcarpy commented Aug 3, 2019

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

@franciscodominguezmateos
Copy link
Author

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

@dcarpy
Copy link

dcarpy commented Aug 3, 2019

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
Copy link

dcarpy commented Aug 3, 2019

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

@franciscodominguezmateos
Copy link
Author

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

@franciscodominguezmateos
Copy link
Author

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

@dcarpy
Copy link

dcarpy commented Aug 5, 2019

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

@franciscodominguezmateos
Copy link
Author

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

@shuhaowu
Copy link

shuhaowu commented Sep 22, 2020

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?

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

No branches or pull requests

4 participants