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 nao@192.168.1.100
qicli call ALAutonomousLife.setState disabled
qicli call ALMotion.wakeUp
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/
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]
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 nao@192.168.1.100 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
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]