FogROS2 icon indicating copy to clipboard operation
FogROS2 copied to clipboard

Connectity seems to be messed up while setting up VPN in Arm-based workstations

Open vmayoral opened this issue 2 years ago • 5 comments

Describe the bug Connectity seems to be messed up while setting up VPN in Arm-based workstations (e.g. Apple M1-based processors)

To Reproduce

docker run -it --platform linux/amd64 --rm --net=host --cap-add=NET_ADMIN fogros2
root@docker-desktop:/home/root/fog_ws# source install/setup.bash  # source fogros2 workspace as an overlay
root@docker-desktop:/home/root/fog_ws# ros2 topic list
1649578524.307783 [0]       ros2: ddsi_udp_create_conn: set IP_MULTICAST_IF failed: Bad Parameter
[ERROR] [1649578524.313711792] [rmw_cyclonedds_cpp]: rmw_create_node: failed to create domain, error Error

>>> [rcutils|error_handling.c:108] rcutils_set_error_state()
This error state is being overwritten:

  'error not set, at /tmp/binarydeb/ros-galactic-rcl-3.1.2/src/rcl/node.c:261'

with this new error message:

  'rcl node's rmw handle is invalid, at /tmp/binarydeb/ros-galactic-rcl-3.1.2/src/rcl/node.c:413'

rcutils_reset_error() should be called after error handling to avoid this.
<<<
[ERROR] [1649578524.316559333] [rcl]: Failed to fini publisher for node: 1
error creating node: rcl node's rmw handle is invalid, at /tmp/binarydeb/ros-galactic-rcl-3.1.2/src/rcl/node.c:413

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

vmayoral avatar Apr 10 '22 09:04 vmayoral

This shouldn't be a priority since the same behavior isn't observed in x86_64 with a Linux-native OS setup.

vmayoral avatar Apr 10 '22 09:04 vmayoral

Similar issues found directly in rmw_cyclonedds: https://github.com/ros2/rmw_cyclonedds/issues/273

JasonLKelly avatar Sep 11 '22 20:09 JasonLKelly

Similar Issue now being experienced on a Docker Container using osrf/ros2 Docker image with amd64 architecture running on a Mac.

SimeonOA avatar Nov 28 '22 06:11 SimeonOA

Hi. Has this been resolved?

DevinLeamy avatar Feb 15 '23 19:02 DevinLeamy

It seems to be a problem with cyclonedds (https://github.com/ros2/rmw_cyclonedds/issues/273). A potential solution is to use fastdds instead.

KeplerC avatar Mar 16 '23 16:03 KeplerC