ros-naoqi / naoqi_driver

c++ bridge based on libqi
Apache License 2.0
54 stars 93 forks source link

Service "ROS-Driver" (#153) is already registered. #140

Closed PatZhuang closed 3 years ago

PatZhuang commented 3 years ago

When I run roslaunch naoqi_driver naoqi_driver.launch roscore_ip:=127.0.0.1 nao_ip:=192.168.64.26 network_interface:=eno2 I got errors like:

... logging to /home/center/.ros/log/1a866330-b4b6-11eb-aacd-63c74265b6d6/roslaunch-center-2795.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://center:34761/

SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.17

NODES
  /
    naoqi_driver (naoqi_driver/naoqi_driver_node)

ROS_MASTER_URI=http://localhost:11311

process[naoqi_driver-1]: started with pid [2812]
Receiving information about robot model
set prefix successfully to naoqi_driver
[I] 1620998029.823083 2812 qimessaging.session: Session listener created on tcp://0.0.0.0:0
[I] 1620998029.823334 2812 qimessaging.transportserver: TransportServer will listen on: tcp://192.168.64.29:40655
[I] 1620998029.823342 2812 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:40655
terminate called after throwing an instance of 'qi::FutureUserException'
  what():  Service "ROS-Driver" (#153) is already registered. Rejecting conflicting registration attempt.
================================================================================REQUIRED process [naoqi_driver-1] has died!
process has died [pid 2812, exit code -6, cmd /home/center/Dev/base_ws/devel/lib/naoqi_driver/naoqi_driver_node --qi-url=tcp://192.168.64.26:9559 --roscore_ip=127.0.0.1 --network_interface=eth0 --namespace=naoqi_driver __name:=naoqi_driver __log:=/home/center/.ros/log/1a866330-b4b6-11eb-aacd-63c74265b6d6/naoqi_driver-1.log].
log file: /home/center/.ros/log/1a866330-b4b6-11eb-aacd-63c74265b6d6/naoqi_driver-1*.log
Initiating shutdown!
================================================================================
[naoqi_driver-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

I am sure that my network_interface and nao_ip parameters are correct and I have a roscore running locally.

I've tried run this roslaunch command without one or two or all parameters but I got the same error. What should I do to address this?

PatZhuang commented 3 years ago

Sorry, it turns out I've run another naoqi_driver node on another PC in the same local network. Shutdown that one and everything works fine.