ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Launching nao_driver

asked 2011-12-12 17:21:13 -0500

Maya A gravatar image

updated 2011-12-13 10:26:53 -0500

mmwise gravatar image

Hello,

When I type "roslaunch nao_driver nao_driver.launch" to start the nao driver nodes. I am getting the following error:

auto-starting new master
process[master]: started with pid [8981]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 66760138-255a-11e1-9695-68a3c41a4ebd
process[rosout-1]: started with pid [8994]
started core service [/rosout]
process[nao_walker-2]: started with pid [8997]
process[nao_sensors-3]: started with pid [8998]
process[nao_controller-4]: started with pid [8999]
Traceback (most recent call last):
  File "/home/user/ros/nao_driver/scripts/nao_controller.py", line 45, in <module>
    import actionlib
  File "/home/user/ros/common/actionlib/src/actionlib/__init__.py", line 28, in <module>
    from action_client import *
  File "/home/user/ros/common/actionlib/src/actionlib/action_client.py", line 61, in <module>
    from actionlib_msgs.msg import *
ImportError: No module named actionlib_msgs.msg
Traceback (most recent call last):
  File "/home/user/ros/nao_driver/scripts/nao_sensors.py", line 44, in <module>
    from sensor_msgs.msg import JointState
ImportError: No module named sensor_msgs.msg
T    raceback (most recent call last):
  File "/home/user/ros/nao_driver/scripts/nao_walker.py", line 50, in <module>
    from geometry_msgs.msg import Twist
ImportError: No module named geometry_msgs.msg
================================================================================REQUIRED process [nao_controller-4] has died!
process has died [pid 8999, exit code 1].
log files: /home/user/.ros/log/66760138-255a-11e1-9695-68a3c41a4ebd/nao_controller-4*.log
Initiating shutdown!
================================================================================
[nao_controller-4] killing on exit
[nao_sensors-3] killing on exit
[nao_walker-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

Can anyone help me with that? Thank you!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2011-12-12 19:54:54 -0500

Stefan Osswald gravatar image

nao_driver depends on the common_msgs stack, which contains the missing files mentioned in the output. nao_driver also depends on humanoid_msgs and nao_msgs, so make sure that you install these dependencies first.

edit flag offensive delete link more

Comments

To verify the packages are correctly found, simply run "roscd actionlib_msgs", "roscd geometry_msgs" and "roscd humanoid_msgs". All should end up in a valid directory in your ROS installation.
AHornung gravatar image AHornung  ( 2011-12-12 23:20:57 -0500 )edit
0

answered 2014-01-28 22:24:10 -0500

Quinton Anderson gravatar image

Hi Guys,

I see this is quite an old thread, but I am currently on a mission to recreate the localisation functionality in this paper: http://hrl.informatik.uni-freiburg.de... .

I have gone through the process of installing and validating the ROS install (Hydro), and am now trying to just get the following command to work:

> roslaunch nao_bringup nao_sim.launch

When I launch the command I get the following error:

> NODES / > base_footprint (nao_description/base_footprint) > nao_behaviors (nao_driver/nao_behaviors.py) > nao_controller (nao_driver/nao_controller.py) > nao_leds (nao_driver/nao_leds.py) > nao_sensors (nao_driver/nao_sensors.py) > nao_speech (nao_driver/nao_speech.py) > nao_tactile (nao_driver/nao_tactile.py) > nao_walker (nao_driver/nao_walker.py) > pose_manager (nao_pose/pose_manager.py) > robot_state_publisher (robot_state_publisher/state_publisher) > > ROS_MASTER_URI=http://localhost:11311 > > core service [/rosout] found > process[robot_state_publisher-1]: > started with pid [6401] > process[base_footprint-2]: started > with pid [6402] > process[nao_sensors-3]: started with > pid [6443] process[nao_walker-4]: > started with pid [6444] No handlers > could be found for logger "rosout" > process[nao_controller-5]: started > with pid [6449] No handlers could be > found for logger "rosout" > process[nao_behaviors-6]: started with > pid [6450] > ================================================================================REQUIRED process [nao_sensors-3] has died! > process has died [pid 6443, exit code > 1, cmd > /home/vagrant/workspce/src/nao_robot/nao_driver/nodes/nao_sensors.py --pip=127.0.0.1 --pport=9559 __name:=nao_sensors __log:=/home/vagrant/.ros/log/cab0b7cc-88c4-11e3-9375-080027880ca6/nao_sensors-3.log]. log file: > /home/vagrant/.ros/log/cab0b7cc-88c4-11e3-9375-080027880ca6/nao_sensors-3*.log > Initiating shutdown! > ================================================================================ cannot add process [nao_leds-7] after > process monitor has been shut down > [nao_behaviors-6] killing on exit > [nao_controller-5] killing on exit > [nao_walker-4] killing on exit > Traceback (most recent call last):
> File > "/home/vagrant/workspce/src/nao_robot/nao_driver/nodes/nao_controller.py", > line 39, in <module> > import nao_msgs.msg [nao_sensors-3] killing on exit File > "/home/vagrant/workspce/devel/lib/python2.7/dist-packages/nao_msgs/msg/__init__.py", > line 39, in <module> Traceback (most > recent call last): File > "/home/vagrant/workspce/src/nao_robot/nao_driver/nodes/nao_behaviors.py", > line 36, in <module> > import rospy File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/__init__.py", > line 49, in <module> > from ._JointAngleTrajectory import * File "/home/vagrant/workspce/devel/lib/python2.7/dist-packages/nao_msgs/msg/_JointAngleTrajectory.py", > line 1, in <module> > """autogenerated by genpy from nao_msgs/JointAngleTrajectory.msg. Do > not edit.""" KeyboardInterrupt > from .client import spin, myargv, init_node, \ File > "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/client.py", > line 48, in <module> > [base_footprint-2] killing on exit > import rosgraph File "/opt/ros/hydro/lib/python2.7/dist-packages/rosgraph/__init__.py", > line 36, in <module> > from . masterapi import Master, MasterFailure, MasterError, > MasterException File > "/opt/ros/hydro/lib/python2.7/dist-packages/rosgraph/masterapi.py", > line 45, in <module> > from . names import make_caller_id File > "/opt/ros/hydro/lib/python2.7/dist-packages/rosgraph/names.py", > line 39, in <module> > import os KeyboardInterrupt [robot_state_publisher-1] killing on > exit

I have validated that the required packages are installed using rosdeps and roscd.

I am on ubuntu precise64, ROS hydro and pynaoqi-python-2.7-naoqi-1.14-linux64.

Any help would be appreciated!</module></module></module></module></module></module></module></module></module>

edit flag offensive delete link more

Comments

I think this should be a new question. This is not answering the question asked here.

bchr gravatar image bchr  ( 2014-01-28 22:41:05 -0500 )edit
Quinton Anderson gravatar image Quinton Anderson  ( 2014-01-29 08:36:27 -0500 )edit

@Quinton Anderson: no problem, it makes things clearer and increases the chances of you getting an answer to your problem.

bchr gravatar image bchr  ( 2014-01-29 08:51:10 -0500 )edit

Question Tools

Stats

Asked: 2011-12-12 17:21:13 -0500

Seen: 1,901 times

Last updated: Jan 28 '14