Skip to content

Sometimes joyCallback function errors #43

@jaykorea

Description

@jaykorea

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions