introlab / find-object

Find-Object project
http://introlab.github.io/find-object/
BSD 3-Clause "New" or "Revised" License
448 stars 189 forks source link

Using Kinect on find_object_2d #12

Open Anylee2142 opened 8 years ago

Anylee2142 commented 8 years ago

Hi, i'm running find_object_2d on ROS Indigo , Ubunto 14.04.3 LTS.

As instruction written,

  1. roscore &

    Launch your preferred usb camera driver

  2. rosrun uvc_camera uvc_camera_node &
  3. rosrun find_object_2d find_object_2d image:=image_raw

Because my device is Kinect,

so i replace step 2 to roslaunch freenect_launch freenect.launch.

and 3 to rosrun find_object_2d find_object_2d image:=rgb/image_raw.

but nothing shows up in Find-object screen, saying


Find-Object subscribed to /image_raw topic. You can remap the topic when starting the node: "rosrun find_object_2d find_object_2d image:=your/image/topic".


is there any missing or wrong in my running?

Please let me know.

thank you for reading.

matlabbe commented 8 years ago

Hi,

With freenect_launch and 2D detections, try:

$ roslaunch freenect_launch freenect.launch
$ rosrun find_object_2d find_object_2d image:=camera/rgb/image_rect_color

If you want to detect objects in 3D (refer to this example):

$ roslaunch openni_launch openni.launch depth_registration:=true
$ rosrun find_object_2d find_object_2d _subscribe_depth:=true rgb/image_rect_color=camera/rgb/image_rect_color depth_registered/image_raw:=camera/depth_registered/image_raw depth_registered/camera_info:=camera/depth_registered/camera_info

cheers, Mathieu

tiberium24 commented 6 years ago

Hello, i have a similar problem in 3D, when i launch openni i get "No devices connected.... waiting for devices to be connected". I am using kinect in gazebo simulator, not an actual one. Do you know what could cause this?

matlabbe commented 6 years ago

Try freenect_launch:

$ roslaunch freenect_launch freenect.launch depth_registration:=true