-
Notifications
You must be signed in to change notification settings - Fork 94
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 zero if locked #42
base: rolling
Are you sure you want to change the base?
Publish zero if locked #42
Conversation
remove lock test in `hasPriority`
Move getLockPriority to public
Publish zero if topic has priority and is locked
This seems very useful. Can we have an estimate of when it will be merged ? @bmagyar and @efernandez, do you know who currently maintains this package ? |
hi guys, sorry for the delay on this could you please add a feature flag for this and have it off by default? I'd rather not change default behaviour straight away |
I will make the modification to make it optional. What do you mean by feature flag? |
get `pub_zer_if_locked` param and propagate
Add `pub_zero_if_locked` parameter ti TopicHandle class. Publish zero vel only if param is true.
add parameter to config file
Hi @bmagyar, I made the changes to make it optional. It may be good to change the documentation too. |
Hi,
I found that when a topic is locked, the mux just stops publishing. This means that our robot depends on another timeout to stop (the smoother in our case).
So I made a small modification to publish zero twists when the topic that has priority is locked.
To do so, I moved the lock check in the topic callback. If the topic is locked, I replace the message with
geometry_msgs::msg::Twist()
. If this topic has priority, the zero twist value will be published.Hence the robot starts to brake immediately.