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

How start the nao_camera node?

asked 2014-03-26 00:18:50 -0600

PabloM gravatar image

updated 2016-10-24 08:59:46 -0600

ngrennan gravatar image

$ I am able to use the Python Nodes with the robot NAO using:

$ export PYTHONPATH="$PYTHONPATH:$HOME/path/to/pynaoqi/"

and

$ roslaunch nao_driver nao_driver.launch force_python:=true nao_ip:=192.168.1.206

if I want to check which nodes are running:

$ rosnode list

and I obtained the next list:

/nao_behaviors
/nao_controller
/nao_leds
/nao_sensors
/nao_speech
/nao_tactile
/nao_walker

How can I start or launch the nao_camera, because I going to need the image since i work in Computer Vision? I tried with:

$ roslaunch nao_driver nao_camera.launch nao_ip:=192.168.1.206

but I got the next error: (copy-paste of the terminal)

pablo@pabloNao:~$ roslaunch nao_driver nao_camera.launch force_python:=true nao_ip:=192.168.1.206 ... logging to /home/pablo/.ros/log/1340b312-b510-11e3-9391-24b6fd11a455/roslaunch-pabloNao-6138.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://pabloNao:33756/

SUMMARY

PARAMETERS * /nao_camera/calibration_file_bottom * /nao_camera/calibration_file_top * /nao_camera/color_space * /nao_camera/fps * /nao_camera/resolution * /rosdistro * /rosversion

NODES / nao_camera (nao_driver/nao_camera.py)

ROS_MASTER_URI=XXX

core service [/rosout] found process[nao_camera-1]: started with pid [6156] Traceback (most recent call last): File "/opt/ros/hydro/lib/nao_driver/nao_camera.py", line 38, in <module> import camera_info_manager ImportError: No module named camera_info_manager ================================================================================REQUIRED process [nao_camera-1] has died! process has died [pid 6156, exit code 1, cmd /opt/ros/hydro/lib/nao_driver/nao_camera.py --pip=192.168.1.206 --pport=9559 __name:=nao_camera __log:=/home/pablo/.ros/log/1340b312-b510-11e3-9391-24b6fd11a455/nao_camera-1.log]. log file: /home/pablo/.ros/log/1340b312-b510-11e3-9391-24b6fd11a455/nao_camera-1*.log

Initiating shutdown!

[nao_camera-1] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done pablo@pabloNao:~$

I will really appreciate any advise, thank you!

edit retag flag offensive close merge delete

Comments

Well, what's the error?

AHornung gravatar image AHornung  ( 2014-03-26 00:36:10 -0600 )edit

"No module named camera_info_manager". Is it correct the way I'm launching the nao_camera node? or I need to past some extra parameters?

PabloM gravatar image PabloM  ( 2014-03-26 01:16:30 -0600 )edit

Install the camera_info_manager_py package, e.g. "sudo apt-get install ros-hydro-camera-info-manager-py" for ROS Hydro. Did you manually check out the Nao packages or used the released pre-compiled versions (which should already install the dependency)?

AHornung gravatar image AHornung  ( 2014-03-26 02:04:22 -0600 )edit

I'm using the pre-compiled packages (sudo apt-get install ros-hydro-nao-robot) and not was installed the "camera-info-manager-py just the "camera-info-manager". And now with the image_view I can watch the retrieved image. Thank you so much Armin!

PabloM gravatar image PabloM  ( 2014-03-26 05:50:13 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-03-27 00:02:48 -0600

AHornung gravatar image

To summarize the answer from the comments (in case someone runs into the same problem): The Python camera driver node in nao_driver requires the package camera_info_manager_py. You can install it in ROS hydro with sudo apt-get install ros-hydro-camera-info-manager-py

The dependency was missing in the package.xml, I'll fix that for the next release.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-03-26 00:18:50 -0600

Seen: 664 times

Last updated: Mar 27 '14