Closed K4belBr4nd closed 9 months ago
Found the solution to my problem in the naoqi_driver repository for ROS1 and this issue. Explicitly using the port 9503
instead of 9559
fixes connection error.
I created a pull request to include a warning in the launch section of the README with some additional changes to the driver_helper.cpp from the ROS1 naoqi driver repo.
Hello there,
I am experiencing issues connecting to Pepper robots running NAOqi 2.9 using ROS Humble. The error message
[naoqi_driver_node-1] Connect error: 111: Connection refused
is displayed, and the naoqi driver node shuts down immediately.I've tried the provided dev dockerfile from the repository as well as my own dockerfile with the release packages using docker compose and running it directly on my host machine with both the source build and the release packages.
Any help would be much appreciated.
Log / Error Message
Environment
install basic dependencies
RUN apt-get update -y \ && apt-get install -y git python3-vcstool
install naoqi driver libraries
RUN apt-get install -y ros-${ROS_DISTRO}-naoqi-libqi \ ros-${ROS_DISTRO}-naoqi-libqicore ros-${ROS_DISTRO}-naoqi-bridge-msgs \ ros-${ROS_DISTRO}-pepper-meshes \ ros-${ROS_DISTRO}-nao-meshes \ ros-${ROS_DISTRO}-naoqi-driver
create workspace
ENV WS=/ws COPY . $WS RUN apt install -y git python3-vcstool
Build the base Colcon workspace, installing dependencies first.
WORKDIR $WS
Install extra tools for development
RUN apt-get update && apt-get install -y --no-install-recommends \ gdb gdbserver vim libgmock-dev
Every bash instance should source the entrypoint
RUN echo "source ${WS}/docker/entrypoint.sh" >> /root/.bashrc SHELL [ "/bin/bash", "-c" ] ENTRYPOINT [ "/bin/bash" ]
FROM dev as dev-prebuilt RUN source /opt/ros/${ROS_DISTRO}/setup.bash \ && colcon build --symlink-install
Steps to reproduce
qicli call ALAutonomouslife.setState disable
qicli call ALMotion.wakeUp
docker compose up --build
docker exec -it <container_name> bash
ros2 launch naoqi_driver naoqi_driver.launch.py nao_ip:=192.168.0.108 password:=xxxx qi_listen_url:=0.0.0.0:56000
Additional Information
username
andpassword
without the `nao_' prefix in contrast to what's written in the README.