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

Validate implementation of child class of ConnectionBasedTransport #1556

Merged

Conversation

wkentaro
Copy link
Member

@wkentaro wkentaro commented Aug 25, 2017

This checks some common mistakes when users implement Python node using jsk_topic_tools.ConnectionBasedTransport.

  • Check if publishers exist to avoid implementation failures

    Someone uses rospy.Publisher instead of ConnectionBasedTransport.advertise.

  • Use ABCMeta to avoid unexpected usage of ConnectionBasedTransport

    Someone uses this class without any subscriptions, and in that case this
    class should not be used in general. ABCMeta forces user to overwrite the abstract methods (ex. subscribe, unsubscribe).

Someone use this class without any subscriptions,
and in that case this class should not be used in general.
@wkentaro wkentaro self-assigned this Aug 25, 2017
@wkentaro wkentaro added this to the 2.2.6 milestone Aug 25, 2017
@wkentaro wkentaro changed the title Implementation support using ConnectionBasedTransport Validate implementation of child class of ConnectionBasedTransport Aug 25, 2017
@k-okada k-okada merged commit 70abcd5 into jsk-ros-pkg:master Aug 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants