0
$\begingroup$

Rosanswers logo

Currently the Fast-RTPS version used for eloquent is v1.9.3 (ros-eloquent-fastrtps 1.9.3-2bionic.20200218.174738), but this version has a bug while running inside a docker container (see https://github.com/eProsima/Fast-RTPS/issues/1176). With the new version v1.10.0 I do not have the same issue.

I'm trying to run ROS2 nodes inside docker containers and subscribe/publish to other nodes in other docker containers (not necessarily on the same bridge network). With the current version of Fast-RTPS the subscription works once (or sometimes a few times) but fails in later tries. Therefor we need this new version 1.10. Should I ask to update the version in ROS2 (https://github.com/ros2-gbp/fastrtps-release) or how can I build and use a different version?

Reproduce the problem with:

docker run -it --rm osrf/ros:eloquent-desktop ros2 run demo_nodes_cpp talker
docker run -it --rm osrf/ros:eloquent-desktop ros2 run demo_nodes_cpp listener

Restarting the talker container (once, but in some cases it works the first restart) makes the listener not receive the messages.

  • Fast-RTPS version: v1.9.3-2
  • ROS2 version: Eloquent
  • OS: Ubuntu 18.04 LTS

Originally posted by elias on ROS Answers with karma: 5 on 2020-05-12

Post score: 0


Original comments

Comment by gvdhoorn on 2020-05-12:
As you can see in ros2/ros2#888, 1.10 has already been integrated. Foxy seems to be using 2.x even. Eloquent however uses 1.9.3 (from here).

There just hasn't been a release of ROS 2 which uses it.

You'll probably have to build ROS2 from source (or at least the parts which directly touch FastRTPS) if you want/need to use it right now.

Comment by elias on 2020-05-13:
I tried compiling the Fast-RTPS packages from source but this introduced some compile errors which are fixed in the master of ROS2 but we are not ready yet to move to Foxy. So thanks for the comment and we'll wait for the official Foxy release.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Therefor we need this new version 1.10. Should I ask to update the version in ROS2 (https://github.com/ros2-gbp/fastrtps-...) or how can I build and use a different version?

Eloquent is not going to change the minor (or major) version of FastRTPS. That would imply breaking changes as well as complete retesting which isn't viable for an already releases distro.

I would suggest to report the problem in the Fast-RTPS repo and request the patch to be backported to the 1.9.x branch.

Your other alternative is to switch to Foxy (which will be released in roughly a month) which uses Fast-RTPS 2.0 assuming that won't have the described bug either.


Originally posted by Dirk Thomas with karma: 16276 on 2020-05-12

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by elias on 2020-05-13:
Thank you to elaborate. I tried updating the version locally but I haven't had success yet. As ROS2 Foxy will be released soon and it's a LTS release I'll wait for that. I had created a bug report first (https://github.com/eProsima/Fast-RTPS/issues/1176) and is now closed as it was not an issue in release 1.10.x.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.