-
Notifications
You must be signed in to change notification settings - Fork 199
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
ENABLE_BUTTON is now optional. Also added a braking button. #22
base: indigo-devel
Are you sure you want to change the base?
ENABLE_BUTTON is now optional. Also added a braking button. #22
Conversation
…thout enable_button the no-movement command would never be sent (it gets sent when enable_button is released) a breaking button was added which does exactly that. break_button is by default disabled (assigned to button -1). If enabled, breaking takes preference over any other kind of movement.
Name should be |
@mikepurvis Thank you, i didn't notice my typo. I renamed Also, about the uses-cases. All my motor-controlling nodes have an internal timeout, with which, if no twist message is received in the last N seconds, they stop.
But if I simply disable Therefore I added the |
Part of the point is that You should be able to get most of what you want using the options available in joy_node, specifically |
@mikepurvis True indeed. I just wanted the means for manually overriding any movement command with the I see this solution might not fill all cases. Could you help me to think out an alternative? :) |
The Travis CI build failed. EDIT: I hope it was the break/brake typo. Let's give it another run. |
Travis is upset about linter violations. Build the roslint target locally and see what it complains about. |
…er than 120 chars
@mikepurvis Thank you :) I think I've fixed them all |
it->first.c_str(), it->second, pimpl_->scale_linear_map[it->first]); | ||
ROS_INFO_COND_NAMED(pimpl_->enable_turbo_button >= 0, "TeleopTwistJoy", | ||
"Turbo for linear axis %s is scale %f.", it->first.c_str(), pimpl_->scale_linear_turbo_map[it->first]); | ||
ROS_INFO_COND_NAMED(pimpl_->enable_button >= 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space here and below.
Sorry for the delay on this. Would like to merge and then release to at least Kinetic. A few remaining concerns though:
@arne48 Will this implementation meet your needs in #19? Alternatively, we could avoid the brake button business altogether and go with your simpler change which only allows disabling the enable button. |
@mikepurvis: absolutely, maybe forgetting about the brake button altogether for the sake of KISS would be better. I guess I'll simply add the option to make enable_button == -1 as in #19. Regarding your comments:
I'll take a look at the code ASAP. |
I'm not sure why "enable_button_disabled_joy.test" fails. |
Ok. This worked. I have removed the brake button, simply making ENABLE_BUTTON optional (can be explicitly disabled by asigning it to key -1). Ehm. I don't know. Do you like the idea of the optional ENABLE_BUTTON? |
Hello all, I want to publish on /MyRobot1/cmd_vel, /MyRobot2/cmd_vel, /MyRobot3/cmd_vel for multiple robots in gazebo using three joysticks. How would I do that using this code. |
Hello @faizuddinfaruqui. This thread is related with a merge-request (modification) of the joystick code. So you will probably find no answer here. However, let me point you to "ROS launch files". You can rename topics and nodes using these files. This would allow you to rename, for instance , all topics adding an identificaton number at the end (ie: cmd_vel1, cmd_vel2 and cmd_vel3). Just google it. Good luck ;) |
Signed-off-by: Chris Lalancette <[email protected]>
ENABLE_BUTTON
The
enable_button
can be disabled by assigning joystick button "-1" to it. By default it is still assigned to button 0.BREAK_BUTTONBRAKE_BUTTONBecause without
enable_button
the no-movement command would never be sent (it gets sent when enable_button is released) a breaking button was added which does exactly that.The
break_button
brake_button
is by default disabled (assigned to button "-1"). If enabled, breaking takes preference over any other kind of movement.