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

[ERROR] [1732181983.869646184]: [registerPublisher] Failed to contact master at [http:0]. Retrying... Couldn't find an AF_INET address for [http] #169

Open
xsan055 opened this issue Nov 21, 2024 · 0 comments

Comments

@xsan055
Copy link

xsan055 commented Nov 21, 2024

Issue Summary
Environment:
Operating System: Ubuntu 16.04 (Docker container)
ROS Distribution: Kinetic
Naoqi SDK Version: 2.1.4.13
naoqi_driver Package Version: Installed via sudo apt install ros-noetic-naoqi-driver (may need clarification as this is intended for Noetic)
Robot: NAO V5

Steps to Reproduce:
Installed NAOqi SDK 2.1.4.13 successfully and ran the examples from naoqi-sdk.
Set up NAO robot:
ssh [email protected]
qicli call ALAutonomousLife.setState disabled
qicli call ALMotion.wakeUp

All the above commands executed successfully.

Launched naoqi_driver with:
roslaunch naoqi_driver naoqi_driver.launch nao_ip:=192.168.1.100 naoport:=9559 roscore_ip:=http://192.168.1.105:11311/ network_interface:=enp52s0 username:=nao password:=nao

Observed Behavior:
The driver successfully connected to the NAO robot and started.
However, an error message appeared repeatedly:
Couldn't find an AF_INET address for [http]
[ERROR] [timestamp]: [registerPublisher] Failed to contact master at [http:0]. Retrying...
This prevents the naoqi_driver from communicating properly with the ROS master.

Additional Details:
ROS Master URI is set correctly as http://192.168.1.105:11311.
The NAO robot is successfully detected (NAO V5.0) and the setup proceeds, but the ROS nodes can't register properly.
IP address used in the network_interface matches the host machine.
Suspected Issue:

The error message suggests that there may be an issue with the way the ROS master URI is being resolved inside the Docker container.
The repeated message Couldn't find an AF_INET address for [http] implies that the hostname http might be incorrectly used somewhere during the resolution, and it should perhaps be 192.168.1.105 or another valid IP.

$ roslaunch naoqi_driver naoqi_driver.launch nao_ip:=192.168.1.100 naoport:=9559 roscore_ip:=http://192.168.1.105:11311/ network_interface:=enp52s0 username:=nao password:=nao
... logging to /home/sang/.ros/log/00079182-a7ec-11ef-b98d-9c2dcd958d21/roslaunch-sang-Legion-Y9000P-IAH7H-32094.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://192.168.1.105:38659/

SUMMARY

PARAMETERS

  • /rosdistro: kinetic
  • /rosversion: 1.12.17

NODES
/
naoqi_driver (naoqi_driver/naoqi_driver_node)

ROS_MASTER_URI=http://192.168.1.105:11311
process[naoqi_driver-1]: started with pid [32113]
Receiving information about robot model
Robot detected: NAO V5.0
set prefix successfully to naoqi_driver
[I] 1732181963.333993 32113 qimessaging.session: Session listener created on tcp://0.0.0.0:0
[I] 1732181963.334878 32113 qimessaging.transportserver: TransportServer will listen on: tcp://172.17.0.1:42827
[I] 1732181963.334897 32113 qimessaging.transportserver: TransportServer will listen on: tcp://192.168.1.105:42827
[I] 1732181963.334908 32113 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:42827
using ip address: http://192.168.1.105:11311/ @ enp52s0
found a catkin prefix /opt/ros/kinetic/share/naoqi_driver/share/boot_config.json
load boot config from /opt/ros/kinetic/share/naoqi_driver/share/boot_config.json
found a catkin URDF /opt/ros/kinetic/share/naoqi_driver/share/urdf/nao.urdf
Audio Extractor: Start
RightBumperPressed
LeftBumperPressed
ROS-Driver-RightBumperPressed : Start
HandRightBackTouched
HandRightLeftTouched
HandRightRightTouched
HandLeftBackTouched
HandLeftLeftTouched
HandLeftRightTouched
ROS-Driver-HandRightBackTouched : Start
FrontTactilTouched
MiddleTactilTouched
RearTactilTouched
ROS-Driver-FrontTactilTouched : Start
registered subscriber: teleop
registered subscriber: moveto
registered subscriber: speech
nodehandle reset
Couldn't find an AF_INET address for [http]
Couldn't find an AF_INET address for [http]
[ERROR] [1732181983.869646184]: [registerPublisher] Failed to contact master at [http:0]. Retrying...
Couldn't find an AF_INET address for [http]
Couldn't find an AF_INET address for [http]
Couldn't find an AF_INET address for [http]
Couldn't find an AF_INET address for [http]
Couldn't find an AF_INET address for [http]

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

No branches or pull requests

1 participant