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

[image_tools] Cannot run cam2image and showimage with different RMW implementations #302

Open
jacobperron opened this issue Dec 13, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@jacobperron
Copy link
Member

Bug report

Required Info:

  • Operating System:
    • OSX High Sierra
  • Installation type:
    • Binaries (Crystal prerelease)
  • DDS implementation:
    • Connext + FastRTPS or Connext + Opensplice

Certain combinations of RMW implementations results in severe frame drops in image_tools demo. In particular, when Connext is involved.

Steps to reproduce issue

RMW_IMPLEMENTATION=rmw_fastrtps_cpp ros2 run image_tools showimage
# In another terminal
RMW_IMPLEMENTATION=rmw_connext_cpp ros2 run image_tools cam2image

or

RMW_IMPLEMENTATION=rmw_connext_cpp ros2 run image_tools showimage
# In another terminal
RMW_IMPLEMENTATION=rmw_opensplice_cpp ros2 run image_tools cam2image

Results in sporadic frames received.


RMW_IMPLEMENTATION=rmw_connext_cpp ros2 run image_tools showimage
# In another terminal
RMW_IMPLEMENTATION=rmw_fastrtps_cpp ros2 run image_tools cam2image

Results in a choppy video feed and we see this error repeated:

2018-12-13 15:25:07.491 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2018-12-13 15:25:07.491 [RTPS_WRITER Error] Error sending fragment (78, 5) -> Function send_any_unsent_changes

Expected behavior

No issues with receiving video frames running the examples across different RMW implementations.

Additional notes

There is no noted issues between FastRTPS and Opensplice.

Also, it seems that there is no issue with this combination:

RMW_IMPLEMENTATION=rmw_opensplice_cpp ros2 run image_tools showimage
# In another terminal
RMW_IMPLEMENTATION=rmw_connext_cpp ros2 run image_tools cam2image
@dirk-thomas
Copy link
Member

This has been reported before: ros2/rmw_fastrtps#202. That ticket focused on addressing the FastRTPS performance itself - not the cross vendor performance.

@clalancette clalancette added the bug Something isn't working label Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants