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

Publish a zero-velocity message at the end of an interaction #2

Open
mikepurvis opened this issue Nov 28, 2013 · 4 comments
Open

Publish a zero-velocity message at the end of an interaction #2

mikepurvis opened this issue Nov 28, 2013 · 4 comments

Comments

@mikepurvis
Copy link
Member

Use a timeout for this if necessary.

@Scheik
Copy link

Scheik commented Jan 3, 2016

Could you explain how to realize, that a zero-velocity message is send at the end of each interaction?

I am using your code and it works fine to navigate my robot from within RViz, great job you have done here! Only Problem is, that robot stays moving if i release the mouse from interaction and i don't know how to solve that issue.

Would really appreciate it.

@mikepurvis
Copy link
Member Author

It's logged as an issue right now because the current implementation doesn't actually do this— you're dependent on the underlying robot controller to enforce its own timeout based on cessation of command messages.

It should be relatively easy to add— basically check if event_type == MOUSE_UP in the callback, and if so, publish a cmd_vel message with everything set to zero.

@bcm0
Copy link

bcm0 commented Jul 6, 2017

I would really appreciate this feature, as my motor driver doesn't support this yet.
Could you please point me in the right direction where to check for the event_type?
I can't see where the mouse events get processed in the source code.

@naveedhd
Copy link

I have placed the above PR just for discussion or starting idea for @adnion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants