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

Roboclaw Reading Issue #3

Open
Rafcin opened this issue Mar 16, 2019 · 13 comments
Open

Roboclaw Reading Issue #3

Rafcin opened this issue Mar 16, 2019 · 13 comments

Comments

@Rafcin
Copy link

Rafcin commented Mar 16, 2019

So I noticed the roboclaw has some problems when it reads data, I get the error
terminate called after throwing an instance of 'boost::system::system_error' what(): Error while reading: Success
I think its due to the encoders, with other Roboclaw nodes I had a similar Input output error, I think its due to encoders but i'm unsure. Are there any specific configurations that should be set on the Roboclaw?

@Rafcin
Copy link
Author

Rafcin commented Mar 16, 2019

It could be a velocity value problem.

@csvance
Copy link
Owner

csvance commented Mar 16, 2019

How are your encoders configured? This node was created with quadrature encoders in mind, which is a pretty typical setup for differential drive robots. I think its also the default, regardless of PID settings or anything like that.

Also I have seen various version of the RoboClaw firmware not behave correctly according to their published specifications. Try updating to the latest if possible.

@Rafcin
Copy link
Author

Rafcin commented Mar 17, 2019

I am using quadrature encoders, so all the other Python nodes complain that its an issue with 2.7 and its serial communication but this node isn't python so i'm wondering what causes your node to do this. I use the teleop joynode for a few seconds and can move it for roughly 5-10 seconds and then it closes with that error.

@csvance
Copy link
Owner

csvance commented Mar 17, 2019 via email

@Rafcin
Copy link
Author

Rafcin commented Mar 17, 2019

Yea ill use the schools oscilloscope monday to check, the weird thing its happening with 2 roboclaws that never had this issue. It could also be a issue with the system i'm using a Jetson Xavier so it could be an issue with that. Currently i'm building a Ros Melodic workspace with Python 3 to see if the issue will pass after upgrading to py3 so we'll see. In IonStudio the roboclaw seems to work fine, encoders values are normal.

@csvance
Copy link
Owner

csvance commented Mar 17, 2019 via email

@csvance
Copy link
Owner

csvance commented Mar 17, 2019

One other thing I thought of, after 5 seconds without receiving any velocity commands roboclaw->set_duty is called for each controller. Could be causing the problem when dealing with more than one node, but code looks correct to me and it worked with one controller just fine.

@Rafcin
Copy link
Author

Rafcin commented Mar 17, 2019

I don't think its an issue of not reviving commands, it happens during input. I could try a different baud rate and check, my work space is almost done compiling so i'll first test the python version of the node and see if it works.

I wonder if the Kernel is missing something specific that causes the error.

@Rafcin
Copy link
Author

Rafcin commented Mar 17, 2019

If it works ill look into then why your node is cancelling out, but seeing as it fails on both devices it could well be a system problem. I'll actually go ahead and test it with Ubuntu Desktop and see if the control works there. Your code seems to be fine so its odd it what causes this.

@Rafcin
Copy link
Author

Rafcin commented Mar 17, 2019

Solved: The USB-C Hub I have is unable to take in info or something but switching to E-Sata USB works.

@Rafcin
Copy link
Author

Rafcin commented Mar 17, 2019

Output*

@csvance
Copy link
Owner

csvance commented Mar 17, 2019

Interesting. I still am developing with a Jetson TX2 and an older laptop, so I havn't used much USB-C yet.

I will leave this open for now, feel free to respond further or open another ticket.

@Rafcin
Copy link
Author

Rafcin commented Mar 18, 2019

I will test this across a few systems and see how the driver works.

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

2 participants