-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
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 functionCan you give me more accurate way to debug?
Thank you
Metadata
Metadata
Assignees
Labels
No labels