Skip to content

Conversation

@0x53A
Copy link
Contributor

@0x53A 0x53A commented Dec 2, 2025

When neither ROS_IP nor ROS_HOSTNAME are set, use a slightly smarter heuristic to try to find an IP address in the same subnet as the rosmaster. This only works if the rosmaster is specified as an IP address, not if it is a hostname.

closes #288

(opened as Draft so I can test it in my own system)

When neither ROS_IP nor ROS_HOSTNAME are set, use a slightly smarter heuristic to try to find an IP address in the same subnet as the rosmaster. This only works if the rosmaster is specified as an IP address, not if it is a hostname.
byteorder = "1.4"
thiserror = "2.0"
anyhow = "1.0"
if-addrs = "0.14.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

get_if_addrs is explicitly a non-windows function in the if_addrs crate. Which means adding this MR explicitly makes roslibrust not support windows. While we haven't been explicitly testing for or advertising windows support, I actually do expect it to work across all our backends at the moment.

Looking around it looks like the getifs crate may be a better alternative to grab that does support windows?

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.

ROS1: have better heuristics for selecting self-IP

2 participants