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

kinect camera not detected

asked 2012-01-27 03:51:12 -0600

AksatShah gravatar image

updated 2016-10-24 08:33:19 -0600

ngrennan gravatar image

I wanted to set up the kinect with ROS. I am running ROS-electric. I installed openni_kinect using sudo apt-get install ros-electric-openni-kinect. I then ran roslaunch openni_launch openni.launch to see if it would launch. Now when I run this command it returns with the everything shown below.


aksat@ubuntu:~/ros_workspace/ros_repos$ roslaunch openni_launch openni.launch
... logging to /home/aksat/.ros/log/cf0669fa-490d-11e1-b4ab-0026828752b8/roslaunch-ubuntu-24440.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://ubuntu:48521/

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /camera/driver/rgb_frame_id
 * /camera/driver/rgb_camera_info_url
 * /camera/depth_registered/rectify_depth/interpolation
 * /camera/driver/depth_frame_id
 * /camera/depth/rectify_depth/interpolation
 * /rosversion
 * /camera/driver/device_id
 * /camera/driver/depth_camera_info_url

NODES
  /camera/depth/
    rectify_depth (nodelet/nodelet)
    metric_rect (nodelet/nodelet)
    metric (nodelet/nodelet)
    disparity (nodelet/nodelet)
    points (nodelet/nodelet)
  /camera/rgb/
    debayer (nodelet/nodelet)
    rectify_mono (nodelet/nodelet)
    rectify_color (nodelet/nodelet)
  /
    camera_nodelet_manager (nodelet/nodelet)
    camera_base_link (tf/static_transform_publisher)
    camera_base_link1 (tf/static_transform_publisher)
    camera_base_link2 (tf/static_transform_publisher)
    camera_base_link3 (tf/static_transform_publisher)
  /camera/
    driver (nodelet/nodelet)
    register_depth_rgb (nodelet/nodelet)
    points_xyzrgb_depth_rgb (nodelet/nodelet)
  /camera/ir/
    rectify_ir (nodelet/nodelet)
  /camera/depth_registered/
    rectify_depth (nodelet/nodelet)
    metric_rect (nodelet/nodelet)
    metric (nodelet/nodelet)
    disparity (nodelet/nodelet)

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

setting /run_id to cf0669fa-490d-11e1-b4ab-0026828752b8
process[rosout-1]: started with pid [24467]
started core service [/rosout]
process[camera_nodelet_manager-2]: started with pid [24479]
process[camera/driver-3]: started with pid [24480]
process[camera/rgb/debayer-4]: started with pid [24481]
process[camera/rgb/rectify_mono-5]: started with pid [24482]
[rospack] opendir error [No such file or directory] while crawling /home/aksat/aksat
process[camera/rgb/rectify_color-6]: started with pid [24483]
process[camera/ir/rectify_ir-7]: started with pid [24485]
process[camera/depth/rectify_depth-8]: started with pid [24491]
process[camera/depth/metric_rect-9]: started with pid [24496]
process[camera/depth/metric-10]: started with pid [24498]
process[camera/depth/disparity-11]: started with pid [24508]
process[camera/depth/points-12]: started with pid [24515]
process[camera/register_depth_rgb-13]: started with pid [24520]
process[camera/depth_registered/rectify_depth-14]: started with pid [24522]
process[camera/depth_registered/metric_rect-15]: started with pid [24532]
process[camera/depth_registered/metric-16]: started with pid [24538]
process[camera/depth_registered/disparity-17]: started with pid [24539]
process[camera/points_xyzrgb_depth_rgb-18]: started with pid [24542]
process[camera_base_link-19]: started with pid [24546]
process[camera_base_link1-20]: started with pid [24549]
process[camera_base_link2-21]: started with pid [24559]
process[camera_base_link3-22]: started with pid [24560]
[ERROR] [1327685946.423785481]: Failed to load nodelet [/camera/rgb/rectify_mono] of type [image_proc/rectify]: According to the loaded plugin descriptions the class image_proc/rectify with base class type nodelet::Nodelet does not exist. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyzrgb depth_image_proc/register image_view/disparity image_view/image openni_camera/OpenNINodelet openni_camera/driver pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/EuclideanClusterExtraction pcl/ExtractIndices pcl/ExtractPolygonalPrismData pcl/FPFHEstimation pcl/FPFHEstimationOMP pcl/MomentInvariantsEstimation pcl/MovingLeastSquares pcl/NodeletDEMUX pcl/NodeletMUX pcl/NormalEstimation pcl/NormalEstimationOMP pcl/NormalEstimationTBB pcl/PCDReader pcl/PCDWriter pcl/PFHEstimation pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/PrincipalCurvaturesEstimation pcl/ProjectInliers pcl/SACSegmentation pcl/SACSegmentationFromNormals pcl/SegmentDifferences pcl/StatisticalOutlierRemoval pcl/TestListener pcl/TestPingPong ...
(more)
edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
1

answered 2012-02-01 08:02:53 -0600

AksatShah gravatar image

I've solved the issue! There were two errors to solve here:

  1. First of all the kinect camera driver had not been set up correctly so the package had to be re-built and that fixed that issue. I'm not sure why it didn't build the first time to be sure.

  2. My ROS workspace had a conflict within it with the image_proc folder in openni. This I believe had been created while trying to create an opencv overlay.

Thank you very much for all the help.

edit flag offensive delete link more
1

answered 2012-01-27 06:59:50 -0600

updated 2012-01-27 07:00:41 -0600

I think there are multiple problems here. All the errors that say "[rospack] opendir error [No such file or directory] while crawling..." indicate that there's something wrong with your ROS_PACKAGE_PATH. Check to make sure that you actually want /home/aksat/aksat to be on your ROS_PACKAGE_PATH (based on what you posted, I'm not sure why it is), that actually exists, and that you have the correct permissions.

As for the kinect, the first things I'd check are that, if it's an actual kinect (as opposed to an asus xtion), that the AC adaptor is plugged in, and that you're not plugging it into USB 3 ports (the kinect only works with USB 2).

For debugging purposes, it would also help if you could post the output to lsusb.

edit flag offensive delete link more

Comments

ok so I solved the ROS_PACKAGE_PATH problem now. It seems I'd made a typo in one of the files I'd sourced in bashrc. Yes the kinect is definitely an actual kinect and the USB ports are 2.0. Finally the lsusb output is
AksatShah gravatar image AksatShah  ( 2012-01-27 08:32:20 -0600 )edit
0

answered 2012-01-29 19:48:36 -0600

Does "roslaunch openni_camera openni_node.launch" work? You should be able to visualize the Kinect data in rviz.

edit flag offensive delete link more

Comments

Thanks for cleaning up my post. I've tried roslaunch openni_camera openni_node.launch and it returns [/openni_node1] No devices connected.... waiting for devices to be connected. In rviz I tried setting up a point cloud but this shows that no topics are being published.
AksatShah gravatar image AksatShah  ( 2012-01-29 20:49:45 -0600 )edit
Topic list after opening rviz gives: /goal /initialpose /rosout /rosout_agg /tf
AksatShah gravatar image AksatShah  ( 2012-01-29 20:53:55 -0600 )edit
ok so i tried reinstalling openni_kinect from source and it detected the kinect. But then in rviz it tells me that nothing is being published on the depth/points topic. I went and tried to re-launch openni_node.launch and now it doesnt even connect but it doesnt tell me its not connecting either!
AksatShah gravatar image AksatShah  ( 2012-01-29 23:12:14 -0600 )edit
The errors in red still appear however and lsusb still gives me what appeared before.
AksatShah gravatar image AksatShah  ( 2012-01-29 23:14:31 -0600 )edit
0

answered 2012-01-27 08:37:52 -0600

AksatShah gravatar image

updated 2012-01-29 19:46:49 -0600

Thanks for your quick reply...ok so I solved the ROS_PACKAGE_PATH problem now. It seems I'd made a typo in one of the files I'd sourced in bashrc.

Yes the kinect is definitely an actual kinect and the USB ports are 2.0.

Finally the lsusb output is

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 5986:0149 Acer, Inc 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 045e:02ae Microsoft Corp. 
Bus 001 Device 004: ID 045e:02ad Microsoft Corp. 
Bus 001 Device 003: ID 045e:02b0 Microsoft Corp. 
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

When running roslaunch openni_launch openni.launch I still get in red:

'[ERROR] [1327703143.575900355]: Failed to load nodelet [/camera/rgb/rectify_color] of type [image_proc/rectify]: According to the loaded plugin descriptions the class image_proc/rectify with base class type nodelet::Nodelet does not exist. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyzrgb depth_image_proc/register image_view/disparity image_view/image openni_camera/OpenNINodelet openni_camera/driver pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/EuclideanClusterExtraction pcl/ExtractIndices pcl/ExtractPolygonalPrismData pcl/FPFHEstimation pcl/FPFHEstimationOMP pcl/MomentInvariantsEstimation pcl/MovingLeastSquares pcl/NodeletDEMUX pcl/NodeletMUX pcl/NormalEstimation pcl/NormalEstimationOMP pcl/NormalEstimationTBB pcl/PCDReader pcl/PCDWriter pcl/PFHEstimation pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/PrincipalCurvaturesEstimation pcl/ProjectInliers pcl/SACSegmentation pcl/SACSegmentationFromNormals pcl/SegmentDifferences pcl/StatisticalOutlierRemoval pcl/TestListener pcl/TestPingPong pcl/TestTalker pcl/VFHEstimation pcl/VoxelGrid test_nodelet/ConsoleTest test_nodelet/Plus uvc_camera/CameraNodelet uvc_camera/StereoNodelet`
`[FATAL] [1327703143.576625371]: Service call failed!`
`[camera/rgb/rectify_color-5] process has died [pid 20985, exit code 255].`
log files: /home/aksat/.ros/log/c86f5412-4935-11e1-b91c-0026828752b8/camera-rgb-rectify_color-5*.log
`[ERROR] [1327703144.264780159]: Failed to load nodelet [/camera/rgb/rectify_mono] of type [image_proc/rectify]: According to the loaded plugin descriptions the class image_proc/rectify with base class type nodelet::Nodelet does not exist. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyzrgb depth_image_proc/register image_view/disparity image_view/image openni_camera/OpenNINodelet openni_camera/driver pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/EuclideanClusterExtraction pcl/ExtractIndices pcl/ExtractPolygonalPrismData pcl/FPFHEstimation pcl/FPFHEstimationOMP pcl/MomentInvariantsEstimation pcl/MovingLeastSquares pcl/NodeletDEMUX pcl/NodeletMUX pcl/NormalEstimation pcl/NormalEstimationOMP pcl/NormalEstimationTBB pcl/PCDReader pcl/PCDWriter pcl/PFHEstimation pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/PrincipalCurvaturesEstimation pcl/ProjectInliers pcl/SACSegmentation pcl/SACSegmentationFromNormals pcl/SegmentDifferences pcl/StatisticalOutlierRemoval pcl/TestListener pcl/TestPingPong pcl/TestTalker pcl/VFHEstimation pcl/VoxelGrid test_nodelet/ConsoleTest test_nodelet/Plus uvc_camera/CameraNodelet uvc_camera/StereoNodelet`
`[ERROR] [1327703144.265021068]: Failed to load nodelet [/camera/depth_registered/rectify_depth] of type [image_proc/rectify]: According to the loaded plugin descriptions the class image_proc/rectify with base class type nodelet::Nodelet does not exist. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyzrgb depth_image_proc/register image_view/disparity image_view/image openni_camera/OpenNINodelet openni_camera/driver pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/EuclideanClusterExtraction ...
(more)
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-27 03:51:12 -0600

Seen: 2,371 times

Last updated: Feb 01 '12