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

Add API for taking a sequence of messages #212

Merged
merged 8 commits into from
Apr 24, 2020
Merged

Add API for taking a sequence of messages #212

merged 8 commits into from
Apr 24, 2020

Conversation

mjcarroll
Copy link
Member

This will allow users to take multiple messages in one take call if they
are available in the underlying middleware, versus having to make
multiple rmw_take calls in a row.

Signed-off-by: Michael Carroll michael@openrobotics.org

@mjcarroll
Copy link
Member Author

mjcarroll commented Apr 10, 2020

Covering all branches:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

rmw/include/rmw/rmw.h Show resolved Hide resolved
rmw/include/rmw/rmw.h Show resolved Hide resolved
rmw/include/rmw/rmw.h Outdated Show resolved Hide resolved
rmw/include/rmw/types.h Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/test/test_message_sequence.cpp Outdated Show resolved Hide resolved
rmw/test/test_message_sequence.cpp Outdated Show resolved Hide resolved
rmw/test/test_message_sequence.cpp Outdated Show resolved Hide resolved
rmw/test/test_message_sequence.cpp Outdated Show resolved Hide resolved
rmw/test/test_message_sequence.cpp Outdated Show resolved Hide resolved
rmw/test/test_message_sequence.cpp Show resolved Hide resolved
rmw/test/test_message_sequence.cpp Show resolved Hide resolved
Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor comments. LGTM

rmw/include/rmw/message_sequence.h Outdated Show resolved Hide resolved
rmw/include/rmw/message_sequence.h Outdated Show resolved Hide resolved
rmw/include/rmw/message_sequence.h Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/include/rmw/message_sequence.h Show resolved Hide resolved
rmw/include/rmw/rmw.h Outdated Show resolved Hide resolved
rmw/include/rmw/rmw.h Outdated Show resolved Hide resolved
rmw/include/rmw/rmw.h Outdated Show resolved Hide resolved
rmw/include/rmw/rmw.h Outdated Show resolved Hide resolved
@mjcarroll mjcarroll force-pushed the take_sequeunce branch 2 times, most recently from 54667ff to 7453971 Compare April 20, 2020 19:33
@mjcarroll
Copy link
Member Author

CI incorporating all changes:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mjcarroll
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mjcarroll
Copy link
Member Author

Linux and macOS are failing with Connext patching issues, similar to here: ros2/rmw_connext#399 (comment)

Windows went green too quickly.

@mjcarroll
Copy link
Member Author

mjcarroll commented Apr 23, 2020

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mjcarroll mjcarroll self-assigned this Apr 23, 2020
@mjcarroll
Copy link
Member Author

One more?

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just out of curiosity, does it make sense to have a take_all or similar which takes all available messages at a certain timestamp? Or maybe another rmw method to get the amount of available methods per subscription so that the caller side can allocate the sequence appropriately?
Might be out of scope though.

rmw/src/message_sequence.c Outdated Show resolved Hide resolved
rmw/src/message_sequence.c Outdated Show resolved Hide resolved
mjcarroll and others added 8 commits April 23, 2020 16:55
This will allow users to take multiple messages in one take call if they
are available in the underlying middleware, verus having to make
multiple rmw_take calls in a row.

Signed-off-by: Michael Carroll <michael@openrobotics.org>
Co-Authored-By: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Co-Authored-By: Jacob Perron <jacob@openrobotics.org>
Co-Authored-By: William Woodall <william+github@osrfoundation.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
@mjcarroll
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mjcarroll
Copy link
Member Author

  • macOS rebuild Build Status

@mjcarroll mjcarroll merged commit 7703d74 into master Apr 24, 2020
@delete-merged-branch delete-merged-branch bot deleted the take_sequeunce branch April 24, 2020 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants