Giter Site home page Giter Site logo

Comments (11)

EricCousineau-TRI avatar EricCousineau-TRI commented on July 17, 2024 1

I can intermittently reproduce. This is using 8c20da4, above command

Robot Puget:

bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list

Personal Puget:

bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list

Laptop:

bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
1659472001.976298 [0]       ros2: selected interface "lo" is not multicast-capable: disabling multicast
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list
bash-5.0$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list

from drake-ros.

EricCousineau-TRI avatar EricCousineau-TRI commented on July 17, 2024 1

All this being said, we can punt on this for the time being, and revisit if/when it becomes a problem.
I'm still disturbed about the spurious nature of it, but 🤷 for now.

from drake-ros.

EricCousineau-TRI avatar EricCousineau-TRI commented on July 17, 2024

(FTR, I assume this is part of ROS_LOCALHOST_ONLY working in #98, but also want to confirm)

from drake-ros.

sloretz avatar sloretz commented on July 17, 2024

However, this only happens once per machine.
It seems to have happened on only 2 of 3 machines (I think...), which is disturbing, but I want to check.

The warning comes from this line in CycloneDDS. On my machine I can make the warning disappear with sudo ifconfig lo multicast, and reappear with sudo ifconfig lo -multicast. Communication between two nodes with ROS_LOCALHOST_ONLY=1 seems to work fine whether multicast is enabled on the loopback device or not.

Maybe some machines don't see the warning because they were previously configured to use LCM without a network interface?

I'd recommend enabling multicast on the loopback device to silence the warning, but if that isn't sufficient I can look deeper at cyclonedds's logging mechanism.

from drake-ros.

EricCousineau-TRI avatar EricCousineau-TRI commented on July 17, 2024

Gotcha; if things work fine on a single machine w/ or w/o multicast loopback, then great!
That being said, we should be careful about how we establish multicast. I am tentative to enable by default w/o understanding implications - e.g. how it may impact doing real multicast in the future in an intentional fashion.

But I am still very concerned on the warning appearing once the same machine.
Why does this happen?
Is it non-determinism? (like it's just selecting a device at random?)
Is it a persistent log-once kind of thing? etc

from drake-ros.

sloretz avatar sloretz commented on July 17, 2024

But I am still very concerned on the warning appearing once the same machine.

I haven't been able to reproduce this. On my machine the warning appears once at the start of every ROS 2 process when multicast is disabled on the loopback device. I tried restarting processes multiple times, and launching other processes but the behavior has been the same every time. When I enable multicast the warning never appears.

I'm using the commands ROS_LOCALHOST_ONLY=1 bazel run //ros2_example_apps:oracle_cc, ROS_LOCALHOST_ONLY=1 ros2 topic echo chatter std_msgs/msg/String, and ROS_LOCALHOST_ONLY=1 ros2 topic pub chater std_msgs/msg/String "data: 'foobar'" for my testing. Do you see inconsistent warning behavior with those?

from drake-ros.

IanTheEngineer avatar IanTheEngineer commented on July 17, 2024

But I am still very concerned on the warning appearing once the same machine.

Can you elaborate? Does this happen once per machine or multiple times on the same machine?

from drake-ros.

EricCousineau-TRI avatar EricCousineau-TRI commented on July 17, 2024

I only saw the message once per machine - that is, if I run ./run //tools:ros2 node list 10 times, I only saw it the very first time.
This happened on two machines (my laptop and office Puget), but not on a third (robot Puget).

I am unable to reproduce, but I know that I received the warning b/c I copied and pasted it here.

I will try:

env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list

using drake-ros with #101

from drake-ros.

EricCousineau-TRI avatar EricCousineau-TRI commented on July 17, 2024

In the FWIW category, I was able to recreate the warning if I rebooted my machine.

from drake-ros.

IanTheEngineer avatar IanTheEngineer commented on July 17, 2024

I can confirm that I see the same results as you:

First call:

$ ./run //tools:ros2 node list
+ ./run //tools:ros2 node list
1659476179.279749 [0]       ros2: selected interface "lo" is not multicast-capable: disabling multicast

Every other time.

$ ./run //tools:ros2 node list
+ ./run //tools:ros2 node list

And setting the ROS_LOCALHOST_ONLY returns nothing:

$ env ROS_LOCALHOST_ONLY=1 bazel-bin/external/ros2/ros2 node list

from drake-ros.

EricCousineau-TRI avatar EricCousineau-TRI commented on July 17, 2024

As of late, possibly due to no mixing of ros2cli between ROS_LOCALHOST_ONLY modes, this became consistent.

Additionally, as indicated by Shane in eclipse-cyclonedds/cyclonedds#1400, we can suppress this by using the nice startup script he mentioned in his overview comment.

Closing for now (I believe we have the "please warn bout ros2cli daemon settings mismatch" tracked in #103)

from drake-ros.

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.