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

Sometimes joyCallback function errors #43

Open
jaykorea opened this issue Apr 20, 2022 · 1 comment
Open

Sometimes joyCallback function errors #43

jaykorea opened this issue Apr 20, 2022 · 1 comment

Comments

@jaykorea
Copy link

jaykorea commented Apr 20, 2022

Hello.

I ve been troubled for joycallback function errors.

As I release all buttons, motors are keep spinning.

I think intermittently "sent_diable_msg" flag doesn't change that it means

I manually added simple line to end of the joycallBack function

if (!((enable_turbo_button >= 0 &&
      joy_msg->buttons.size() > enable_turbo_button &&
      joy_msg->buttons[enable_turbo_button])) && (!(joy_msg->buttons.size() > enable_button &&
           joy_msg->buttons[enable_button])))
           { 
             geometry_msgs:: Twist cmd_zero_msg;
             sent_disable_msg = false;
             cmd_vel_pub.publish(cmd_zero_msg);
           } //Safety function

Can you give me more accurate way to debug?

Thank you

@Rayman
Copy link

Rayman commented Apr 20, 2022

You could try plotting cmd_vel and odom to try to see what is going wrong. You can use plotjuggler or rqt_multiplot for this. It could be a joy driver issue, the joy node, teleop_twist_joy, or the wheel driver.

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