Hello,
I am in the process of trying to find myself around ROS for the NAO and have run into some trouble.
To make things simple for myself initially I started with an Indigo/Trusty VM created by
nootrix.com. I took the NAOqi SDKs from Aldebaran:
naoqi-sdk-2.1.3.3-linux64 and pynaoqi-python2.7-2.1.3.3-linux64
The environment variables were set to:
$ echo $PYTHONPATH
/home/viki/naoqi/pynaoqi-python2.7-2.1.3.3-linux64:/opt/ros/indigo/lib/python2.7/dist-packages
$ echo $ROS_PACKAGE_PATH
/opt/ros/indigo/share:/opt/ros/indigo/stacks
I installed the ROS-NAO drivers using apt-get:
sudo apt-get install ros-.*-nao-robot
sudo apt-get install ros-.*-nao-extras
sudo apt-get install ros-.*-naoqi-bridge
(the last step may have been redundant, I'm not sure about that)
I verified that both ROS and naoqi were working OK (ran some hello world programs).
To run nao_bringup, I followed these steps:
1) In one terminal window, I ran roscore. It seemed to start OK (I'm pasting some output from it below).
2) In another terminal window, I ran naoqi with the command: ~/naoqi/naoqi-sdk-2.1.3.3-linux64/naoqi It seemed to start OK (see output below).
3) Finally I ran nao_bringup and something went wrong. I got some warning errors (perhaps significant, perhaps not) but then things go downhill quickly (please see output just below). Clearly I am doing something wrong but I have no idea what. All suggestions and insights are greatly appreciated. Thanks.
-------------
nao_bringup start-up procedure and output
I started nao_bringup with:
roslaunch nao_bringup nao_full.launch nao_ip:=127.0.0.1 roscore_ip:=127.0.0.1
SUMMARY
========
PARAMETERS
* /pose_manager/poses/init/joint_names: ['Body']
* /pose_manager/poses/init/positions: [0.0, 0.0, 1.39, ...
* /pose_manager/poses/init/time_from_start: 1.5
* /pose_manager/poses/zero/joint_names: ['Body']
* /pose_manager/poses/zero/positions: [0.0, 0.0, 0.0, 0...
* /pose_manager/poses/zero/time_from_start: 1.5
* /pose_manager/xap: /opt/ros/indigo/s...
* /rosdistro: indigo
* /rosversion: 1.11.8
NODES
/
naoqi_driver (naoqi_driver/alrosbridge_bin)
pose_controller (naoqi_pose/pose_controller.py)
pose_manager (naoqi_pose/pose_manager.py)
core service [/rosout] found
process[naoqi_driver-1]: started with pid [8310]
going to add: /opt/ros/indigo
[W] 8310 qi.path.sdklayout: No Application was created, trying to deduce paths
process[pose_controller-2]: started with pid [8316]
[W] 8310 qimessaging.remoteobject: Return signature might be incorrect depending on the value, from m to s
terminate called after throwing an instance of 'qi::FutureUserException'
what(): ALMemory::getData
Data not found RobotConfig/Body/Type
process[pose_manager-3]: started with pid [8318]
[INFO] [WallTime: 1439941200.474267] Connecting to NaoQi at
127.0.0.1:9559[I] 8316 qimessaging.session: Session listener created on tcp://
0.0.0.0:0[I] 8316 qimessaging.transportserver: TransportServer will listen on: tcp://
127.0.0.1:52689[INFO] [WallTime: 1439941200.637449] nao_controller initialized
[INFO] [WallTime: 1439941200.637688] nao pose_controller running...
================================================================================REQUIRED process [naoqi_driver-1] has died!
process has died [pid 8310, exit code -6, cmd /opt/ros/indigo/lib/naoqi_driver/alrosbridge_bin --qi-url=tcp://127.0.0.1:9559 127.0.0.1 eth0 __name:=naoqi_driver __log:=/home/viki/.ros/log/01152492-4601-11e5-ab55-000c29113e6d/naoqi_driver-1.log]. log file: /home/viki/.ros/log/01152492-4601-11e5-ab55-000c29113e6d/naoqi_driver-1*.log
Initiating shutdown!
================================================================================
[pose_manager-3] killing on exit
(other shutdown messages follow but are omitted here)
=============================================================
Output from roscore and naoqi
-------------------------
Output from roscore
ros_comm version 1.11.8
SUMMARY
========
PARAMETERS
* /rosdistro: indigo
* /rosversion: 1.11.8
NODES
auto-starting new master
process[master]: started with pid [7562]
setting /run_id to 01152492-4601-11e5-ab55-000c29113e6d
process[rosout-1]: started with pid [7575]
started core service [/rosout]
------------------------
Output from naoqi (only showing the last few lines)
I started naoqi by executing:
~/naoqi/naoqi-sdk-2.1.3.3-linux64/naoqi
7870 Dialog.preference: Smalldisplacement enabled
[I] 7870 Dialog.preference: Breath enabled
[I] 7870 Dialog.preference: No animated speech configuration
[I] 7870 Dialog.preference: Default volume 0
[I] 7870 qimessaging.servicedirectory: Registered Service "ALDialog" (#77)
[I] 7870 core.naoqi: NAOqi is ready...