-
Notifications
You must be signed in to change notification settings - Fork 56
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 to call (one-shot-subscribe) safely in (let ...) scope #667
base: master
Are you sure you want to change the base?
Conversation
It would also be nice to have some more debate and some other points of view on the changes below:
In some other minor comments:
|
Thank you very much for your review. I too would like to ask other people's ideas. |
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.
So thinking a little bit more about the subject, I think that it should be ok to remove the :unsubscribe
argument and to log warnings without raising any explicit euslisp errors.
However, I would still like to see ros::get-topic-subscriber
instead of ros::get-num-publishers
and a better name for the auxiliary class.
…ne-shot-subscribe
Minor changes to one-shot-subscribe
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.
Revisiting this topic in #725
For detail, please see #666
There are several cases where (one-shot-subscribe) occurs an error.
In this PR,
:unsubscribe
argument and checking subsciber. This makes sure that there is no subscriber before (while ... (ros::spin-once)) is called. (the first commit of this PR)My concern is that by removing the :unsubscribe argument, backward compatibility will be lost.
Thank you very much for your help.
@YoheiKakiuchi @pazeshun @Affonso-Gui