tristanbell / nao-autism

Repo for the Nao robot autism project.
5 stars 3 forks source link

can't catkin_make nao-autism #1

Open doudoushuixiu opened 10 years ago

doudoushuixiu commented 10 years ago

shuixiu@shuixiu:~/nao-autism$ catkin_make Base path: /home/shuixiu/nao-autism Source space: /home/shuixiu/nao-autism/src Build space: /home/shuixiu/nao-autism/build Devel space: /home/shuixiu/nao-autism/devel Install space: /home/shuixiu/nao-autism/install

Running command: "make cmake_check_build_system" in "/home/shuixiu/nao-autism/build"

Running command: "make -j8 -l8" in "/home/shuixiu/nao-autism/build"

[ 0%] [ 0%] [ 0%] Built target actionlib_msgs_generate_messages_cpp [ 0%] Built target geometry_msgs_generate_messages_py Built target std_msgs_generate_messages_py [ 0%] Built target geometry_msgs_generate_messages_cpp [ 0%] Built target actionlib_msgs_generate_messages_py [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target actionlib_msgs_generate_messages_lisp Built target geometry_msgs_generate_messages_lisp [ 0%] Built target std_msgs_generate_messages_lisp [ 1%] Scanning dependencies of target nao_msgs_generate_messages_py Building CXX object learner/CMakeFiles/classification_listener.dir/src/classification/ClassificationListener.cpp.o [ 2%] [ 3%] [ 3%] [ 3%] [ 6%] [ 7%] Built target dataLoader Building CXX object learner/CMakeFiles/rf_node.dir/src/classification/RFNode.cpp.o [ 8%] [ 8%] Building CXX object learner/CMakeFiles/accuracy_checker.dir/src/classification/accuracyTester/AccuracyTesterView.cpp.o Building CXX object learner/CMakeFiles/svm_export.dir/src/classification/SvmExport.cpp.o Building CXX object learner/CMakeFiles/knn_node.dir/src/classification/KNearestNeighbourNode.cpp.o Building CXX object learner/CMakeFiles/svm_node.dir/src/classification/SVMNode.cpp.o Generating Python from MSG nao_msgs/RunBehaviorGoal Generating Python from MSG nao_msgs/RunBehaviorActionResult /home/shuixiu/nao-autism/src/learner/src/classification/RFNode.cpp:1:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. make[2]: * [learner/CMakeFiles/rf_node.dir/src/classification/RFNode.cpp.o] Error 1 make[1]: * [learner/CMakeFiles/rf_node.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 9%] Generating Python from MSG nao_msgs/TorsoOdometry [ 10%] [ 10%] Building CXX object learner/CMakeFiles/accuracy_checker.dir/src/classification/accuracyTester/AccuracyTesterModel.cpp.o Building CXX object learner/CMakeFiles/accuracy_checker.dir/include/classification/accuracyTester/moc_AccuracyTesterView.cxx.o [ 10%] Generating Python from MSG nao_msgs/TorsoIMU [ 11%] Generating Python from MSG nao_msgs/Bumper [ 12%] Generating Python from MSG nao_msgs/RunBehaviorActionGoal [ 12%] Generating Python from MSG nao_msgs/TactileTouch /home/shuixiu/nao-autism/src/learner/src/classification/ClassificationListener.cpp:9:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. [ 13%] Generating Python from MSG nao_msgs/FadeRGB In file included from /home/shuixiu/nao-autism/src/learner/include/classification/accuracyTester/AccuracyTesterView.h:21:0, from /home/shuixiu/nao-autism/src/learner/src/classification/accuracyTester/AccuracyTesterView.cpp:8: /home/shuixiu/nao-autism/src/learner/include/classification/accuracyTester/AccuracyTesterModel.h:12:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. In file included from /home/shuixiu/nao-autism/src/learner/src/classification/accuracyTester/AccuracyTesterModel.cpp:8:0: /home/shuixiu/nao-autism/src/learner/include/classification/accuracyTester/AccuracyTesterModel.h:12:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. [ 13%] Generating Python from MSG nao_msgs/RunBehaviorAction In file included from /home/shuixiu/nao-autism/build/learner/include/classification/accuracyTester/../../../../../src/learner/include/classification/accuracyTester/AccuracyTesterView.h:21:0, from /home/shuixiu/nao-autism/build/learner/include/classification/accuracyTester/moc_AccuracyTesterView.cxx:10: /home/shuixiu/nao-autism/src/learner/include/classification/accuracyTester/AccuracyTesterModel.h:12:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. /home/shuixiu/nao-autism/src/learner/src/classification/SVMNode.cpp:19:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. [ 14%] Generating Python from MSG nao_msgs/RunBehaviorActionFeedback /home/shuixiu/nao-autism/src/learner/src/classification/KNearestNeighbourNode.cpp:9:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. /home/shuixiu/nao-autism/src/learner/src/classification/SvmExport.cpp:16:52: fatal error: nao_autism_messages/PoseClassification.h: No such file or directory compilation terminated. [ 15%] Generating Python from MSG nao_msgs/JointAngleTrajectory [ 15%] Generating Python from MSG nao_msgs/RunBehaviorFeedback [ 16%] Generating Python from MSG nao_msgs/JointAnglesWithSpeed [ 16%] Generating Python from MSG nao_msgs/WordRecognized [ 17%] Generating Python from MSG nao_msgs/RunBehaviorResult [ 17%] Generating Python msg init.py for nao_msgs [ 17%] Built target nao_msgs_generate_messages_py [ 18%] Building CXX object learner/CMakeFiles/accuracy_checker.dir/include/classification/accuracyTester/moc_AccuracyTesterModel.cxx.o make[2]: * [learner/CMakeFiles/classification_listener.dir/src/classification/ClassificationListener.cpp.o] Error 1 make[1]: * [learner/CMakeFiles/classification_listener.dir/all] Error 2 make[2]: * [learner/CMakeFiles/accuracy_checker.dir/src/classification/accuracyTester/AccuracyTesterModel.cpp.o] Error 1 make[2]: * Waiting for unfinished jobs.... make[2]: * [learner/CMakeFiles/accuracy_checker.dir/include/classification/accuracyTester/moc_AccuracyTesterView.cxx.o] Error 1 make[2]: * [learner/CMakeFiles/accuracy_checker.dir/src/classification/accuracyTester/AccuracyTesterView.cpp.o] Error 1 make[1]: * [learner/CMakeFiles/accuracy_checker.dir/all] Error 2 make[2]: * [learner/CMakeFiles/knn_node.dir/src/classification/KNearestNeighbourNode.cpp.o] Error 1 make[1]: * [learner/CMakeFiles/knn_node.dir/all] Error 2 make[2]: * [learner/CMakeFiles/svm_node.dir/src/classification/SVMNode.cpp.o] Error 1 make[1]: * [learner/CMakeFiles/svm_node.dir/all] Error 2 make[2]: * [learner/CMakeFiles/svm_export.dir/src/classification/SvmExport.cpp.o] Error 1 make[1]: * [learner/CMakeFiles/svm_export.dir/all] Error 2 make: *\ [all] Error 2 Invoking "make" failed

AlexMaley commented 10 years ago

Have you got libsvm installed? That should fix it, try the following command:

sudo apt-get install libsvm3 libsvm-dev libsvm-tools

Also after libsvm has been installed, you will have to move the learner package out of the src folder, run catkin_make (I have to run it twice, for some reason) and then place the learner package back into the projects src folder. For some reason, catkin_make doesn't obey the build_depend tags in the project xml file (although it is probably a misuse of it).

The commands I used to successfully catkin_make where the following.:

mv src/learner . catkin_make catkin_make mv learner/ src/ catkin_make

doudoushuixiu commented 10 years ago

now ,tracker and mimicker is working. but it stop at"Waiting for behavior manager to start"Waiting for behavior manager to start" after i standing by and kinect can track me. then i follow this step: "copy the Nao by putting your hands on your head", i put my hands on my hand ,but NAO do nothing.

this is the output: shuixiu@shuixiu:~$ roslaunch emotion_game kinect_control.launch ... logging to /home/shuixiu/.ros/log/98ab62c0-55ae-11e3-8e0f-cc52af3dec7c/roslaunch-shuixiu-11895.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://shuixiu:42138/

SUMMARY

PARAMETERS

NODES / mimicker (emotion_game/mimicker) tracker (openni_tracker/openni_tracker)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found process[tracker-1]: started with pid [11913] process[mimicker-2]: started with pid [11923] [ INFO] [1385369596.718554151]: Waiting for a head tf to be published. [ INFO] [1385369600.975064524]: New User 1 [ INFO] [1385369612.072240047]: Pose Psi detected for user 1 [ INFO] [1385369627.908591143]: Calibration started for user 1 [ INFO] [1385369628.319876971]: Calibration complete, start tracking user 1 [ INFO] [1385369628.652186621]: /tf is now publishing, ready to go. [ INFO] [1385369628.668686376]: All set up, go! Waiting until speech publisher is ready... Speech publisher is ready. Waiting for behavior manager to start.

tristanbell commented 10 years ago

Hi there,

Have you done roslaunch emotion_game kinect_nao.launch in another terminal before launching kinect_control? kinect_nao starts the behavior manager which allows the nao to sit and stand, etc.

On Mon, Nov 25, 2013 at 9:02 AM, doudoushuixiu notifications@github.com wrote:

now ,tracker and mimicker is working. but it stop at"Waiting for behavior manager to start"Waiting for behavior manager to start" after i standing by and kinect can track me. then i follow this step: "copy the Nao by putting your hands on your head", i put my hands on my hand like this: 0 **_ **
         / \
       /     \

but NAO do nothing. this is the output: shuixiu@shuixiu:~$ roslaunch emotion_game kinect_control.launch ... logging to /home/shuixiu/.ros/log/98ab62c0-55ae-11e3-8e0f-cc52af3dec7c/roslaunch-shuixiu-11895.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://shuixiu:42138/

SUMMARY

PARAMETERS

  • /rosdistro
  • /rosversion NODES / mimicker (emotion_game/mimicker) tracker (openni_tracker/openni_tracker) ROS_MASTER_URI=http://localhost:11311 core service [/rosout] found process[tracker-1]: started with pid [11913] process[mimicker-2]: started with pid [11923] [ INFO] [1385369596.718554151]: Waiting for a head tf to be published. [ INFO] [1385369600.975064524]: New User 1 [ INFO] [1385369612.072240047]: Pose Psi detected for user 1 [ INFO] [1385369627.908591143]: Calibration started for user 1 [ INFO] [1385369628.319876971]: Calibration complete, start tracking user 1 [ INFO] [1385369628.652186621]: /tf is now publishing, ready to go. [ INFO] [1385369628.668686376]: All set up, go! Waiting until speech publisher is ready... Speech publisher is ready. Waiting for behavior manager to start.

    Reply to this email directly or view it on GitHub: https://github.com/tristanbell/nao-autism/issues/1#issuecomment-29186094

doudoushuixiu commented 10 years ago

thank u for your answers. i read the "README.md" again, maybe i miss something : "Then run rosinstall to install the relevant packages, making sure to link this workspace with our nao-autism workspace, then compile them:"

i miss it, i don't link the nao stcaks(by ahornung) with nao-autism. i'm a new to this project ,how can i link this workspaces.

also,while i run the command ,there is some error: [ Traceback (most recent call last): File "/opt/ros/groovy/lib/nao_driver/nao_controller.py", line 40, in from nao_msgs.msg import( ImportError: cannot import name JointTrajectoryGoal ]

some reason made this error(i know this reason,i'm teying to solve it) so i run another command which writen by arming ahornung : "roslaunch nao_driver nao_driver_sim.launch" this command can made the node :"nao_walker" & "nao_behaviors"....... work too. (can i do this for replacing the kinect_nao.launch?? )

thank you for you answers again.

doudoushuixiu commented 10 years ago

i launch the kinect.nao.launch,this is the output:


shuixiu@shuixiu:~$ LD_LIBRARY_PATH=/opt/naoqi/naoqi-sdk-1.14.5-linux32/lib:$LD_LIBRARY_PATH NAO_IP=192.168.82.27 roslaunch emotion_game kinect_nao.launch ... logging to /home/shuixiu/.ros/log/4f14e560-5675-11e3-9175-cc52af3dec7c/roslaunch-shuixiu-27006.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://shuixiu:44832/

SUMMARY

PARAMETERS


after opened Kinect, i launch the kinect_control.launch,this is the output:


shuixiu@shuixiu:~$ roslaunch emotion_game kinect_control.launch ... logging to /home/shuixiu/.ros/log/dfc97ec2-5675-11e3-8337-cc52af3dec7c/roslaunch-shuixiu-30702.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. stated roslaunch server http://shuixiu:50683/

SUMMARY

PARAMETERS


it's really hard for me to find out the reason , plz help me

tristanbell commented 10 years ago

Hm, I recall us having a similar error early on in the project. I can't remember exactly what fixed it, but I'll do my best to find out. What operating system are you using, and are you using a simulated Nao or a real one?

On Tue, Nov 26, 2013 at 8:50 AM, doudoushuixiu notifications@github.com wrote:

i launch the kinect.nao.launch,this is the output:


shuixiu@shuixiu:~$ LD_LIBRARY_PATH=/opt/naoqi/naoqi-sdk-1.14.5-linux32/lib:$LD_LIBRARY_PATH NAO_IP=192.168.82.27 roslaunch emotion_game kinect_nao.launch ... logging to /home/shuixiu/.ros/log/4f14e560-5675-11e3-9175-cc52af3dec7c/roslaunch-shuixiu-27006.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://shuixiu:44832/

SUMMARY

PARAMETERS

  • /rosdistro
  • /rosversion NODES / nao_behaviors (nao_driver/nao_behaviors.py) nao_controller (nao_driver/nao_controller.py) nao_speech (nao_driver/nao_speech.py) nao_walker (nao_driver/nao_walker.py) ROS_MASTER_URI=http://localhost:11311 core service [/rosout] found process[nao_behaviors-1]: started with pid [27024] process[nao_walker-2]: started with pid [27025] process[nao_controller-3]: started with pid [27028] process[nao_speech-4]: started with pid [27031] [INFO ] Starting ALNetwork [INFO] [WallTime: 1385454833.534906] Connecting to NaoQi at 192.168.82.27:9559 [INFO ] Starting ALNetwork [INFO] [WallTime: 1385454833.567444] Connecting to NaoQi at 192.168.82.27:9559 [INFO ] Starting ALNetwork [INFO ] NAOqi is listening on 127.0.0.1:54010 [INFO] [WallTime: 1385454833.901247] nao_behaviors running... [INFO ] NAOqi is listening on 127.0.0.1:54011 [INFO] [WallTime: 1385454833.946846] useFootGaitConfig = 0 [INFO] [WallTime: 1385454833.969526] nao_walker initialized [INFO ] NAOqi is listening on 127.0.0.1:54012 [INFO] [WallTime: 1385454833.969896] nao_walker running... [INFO] [WallTime: 1385454834.045180] nao_controller initialized [INFO] [WallTime: 1385454834.045487] nao_controller running...

    after opened Kinect, i launch the kinect_control.launch,this is the output:


    shuixiu@shuixiu:~$ roslaunch emotion_game kinect_control.launch ... logging to /home/shuixiu/.ros/log/dfc97ec2-5675-11e3-8337-cc52af3dec7c/roslaunch-shuixiu-30702.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. stated roslaunch server http://shuixiu:50683/ SUMMARY

    PARAMETERS

  • /rosdistro
  • /rosversion NODES / mimicker (emotion_game/mimicker) tracker (openni_tracker/openni_tracker) ROS_MASTER_URI=http://localhost:11311 core service [/rosout] found process[tracker-1]: started with pid [30720] process[mimicker-2]: started with pid [30730] [ INFO] [1385455110.592469896]: Waiting for a head tf to be published. [ INFO] [1385455115.480716246]: New User 1 [ INFO] [1385455121.146596061]: Lost user 1 [ INFO] [1385455122.087759129]: New User 1 [ INFO] [1385455122.090329183]: New User 2 [ INFO] [1385455122.784481699]: Lost user 1 [ INFO] [1385455123.719616899]: New User 1 [ INFO] [1385455125.785643643]: Lost user 1 [ INFO] [1385455127.960794317]: New User 1 [ INFO] [1385455128.191756897]: Pose Psi detected for user 1 [ INFO] [1385455129.590884913]: Calibration started for user 1 [ INFO] [1385455130.038120905]: Calibration complete, start tracking user 1 [ INFO] [1385455130.276122911]: /tf is now publishing, ready to go. [ INFO] [1385455130.292608038]: All set up, go! Waiting until speech publisher is ready... Speech publisher is ready. Waiting for behavior manager to start.

    it's really hard for me to find out the reason , plz help me

    Reply to this email directly or view it on GitHub: https://github.com/tristanbell/nao-autism/issues/1#issuecomment-29275812

doudoushuixiu commented 10 years ago

ros(hydro) on ubuntu 12.04 ,i use a real NAO robot. i also find some wrong command in the README.md . some command can just run in the master-branch but not in the gamechanges-branch. i can make the tutorial better with you help . if you find out the reason of this error, just make me know,thank u.

AlexMaley commented 10 years ago

The project was developed on the ROS Groovy platform, as well as it's dependencies. So I am not sure how compatible it will be with newer versions of ROS (there will definately be some issues with the commands, as you will need to use sudo apt-get install ros-hydro-... instead of ros-groovy). Also, there is only meant to be one branch (the main one), as they should of been merged. The gameschanges branch is pretty old so doesn't contain all the up-to date code.

Also, I cannot remember how to fix the above issue (the projects duration was only 11 weeks, so we couldn't spare much time to making it work universally). I believe it is a sourcing issue of some sort, like you may have to source the file for the Nao Driver's and then source Nao Autism's source file. If that doesn't work and you are sure you have run everything correctly you can always go into the C++ code in src/nao_control and comment out the code that waits for the speech publisher/behavior manager.

doudoushuixiu commented 10 years ago

Dear AlexMaley & tristanbell . i think the error was caused by NAOQI . there are two prossible reasons: 1: i used naoqi-sdk-1.14.5-linux32(not linux64) 2: "nao_driver works with NaoQI version 1.6 or newer (last tested: 1.12.0). Versions 0.1x are still compatible to NaoQI 1.3." this is from the wiki writen by auther of the nao_driver.. before using the nao-autism ,i can't launch some nodes in the nao_driver by using naoqi-sdk-1.14.5 . And i read the naoqi api there are some Methods does not exists anymore such as "ALBehaviorManagerProxy::getBehaviorNames()" .etc .

doudoushuixiu commented 10 years ago

i try again by ubuntu12.04(64bits) & ROS(groovy) .but it has the same question. the nao_robot package has updated a month ago.maybe there is something has changed. can you send you "nao_robot" to me by email? doudoushuixiu@gmail.com