Git Product home page Git Product logo

Comments (44)

MiguelCompany avatar MiguelCompany commented on August 24, 2024 1

This would be a nice addition, probably as a new rmw_event_t as @ivanpauno suggests. We could interpret it as having an event notifying of changes on get_subscription_count()

We could do the same for subscriptions, though we should probably have that as a separate issue.

from rmw.

Barry-Xu-2018 avatar Barry-Xu-2018 commented on August 24, 2024 1

In rmw_implementation, there is no test related to event currently (Including existing events).
So I need to add events test file.
Besides, rmw_implementation test depend on rmw_xxxx (e.g. rmw_fastrtps).
So I will implement rmw_fastrtps, rmw_connextdds, rmw_cyclonedds at first and then add test to rmw_implementation.

from rmw.

fujitatomoya avatar fujitatomoya commented on August 24, 2024 1

@Barry-Xu-2018 thanks for checking, i was thinking that there would be some related code or test cases in there, so just make sure that everything we may change on that table at 1st. if we do not need to update, that is also fine, i will remove rmw_implementaion from the issue header.

from rmw.

fujitatomoya avatar fujitatomoya commented on August 24, 2024

@ivanpauno @wjwwood @asorbini @MiguelCompany @alsora @SteveMacenski @mikeferguson
CC: @ros2/middleware_working_group @Barry-Xu-2018

This is to open discussion, could you share your thoughts?

from rmw.

ivanpauno avatar ivanpauno commented on August 24, 2024

Adding this like a new rmw_event_t seems reasonable to me

from rmw.

mikeferguson avatar mikeferguson commented on August 24, 2024

I think this is super useful - at the moment, you can't easily build something like rgbd_launch in ROS2 (where all of the various pipeline elements are lazy publishers/subscribers) - I didn't even realize this wasn't already ticketed somewhere...

I had some notes about use cases (and my current lazy subscriber workaround with a timer that checks get_subscription_count once a second) here: https://www.robotandchisel.com/2020/06/16/ubr1-on-ros2/

EDIT: there was also additional information in my post on 5 things ROS2 needed in 2020: https://www.robotandchisel.com/2020/07/29/five-things-ros2/

from rmw.

alsora avatar alsora commented on August 24, 2024

I'm not familiar with the on_publication_matched API.
Would it be equivalent to checking get_subscription_count() on the publishers objects?
Obviously having a callback would be much better than continuously checking that API, but I just want to make sure that I understand how it would work.

In general this looks a great feature to add.

from rmw.

fujitatomoya avatar fujitatomoya commented on August 24, 2024

Would it be equivalent to checking get_subscription_count() on the publishers objects?

the main difference is, application can be notified with event on connect/disconnect.

from rmw.

Barry-Xu-2018 avatar Barry-Xu-2018 commented on August 24, 2024

We all agreed adding new event.
I submitted a PR to add connect/disconnect event and define rmw_matched_status_t for publisher and subscription event callback.
Please review it.

from rmw.

Barry-Xu-2018 avatar Barry-Xu-2018 commented on August 24, 2024

@fujitatomoya

We should remove rmw_implementation in change list since the rmw interface isn't changed in #331

from rmw.

MiguelCompany avatar MiguelCompany commented on August 24, 2024

We should remove rmw_implementation in change list since the rmw interface isn't changed in #331

@Barry-Xu-2018 I don't think so, since that repository is there the tests for this feature should be added.

from rmw.

Barry-Xu-2018 avatar Barry-Xu-2018 commented on August 24, 2024

@MiguelCompany

I don't think so, since that repository is there the tests for this feature should be added.

Thank you for your kind reminder.
Yes. I will check and add tests.

from rmw.

ros-discourse avatar ros-discourse commented on August 24, 2024

This issue has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2023-01-19/29423/1

from rmw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.