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

Get only depth data from Kinect using libfreenect

asked 2018-08-16 07:22:19 -0500

kuka_kuka gravatar image

updated 2018-08-16 07:49:06 -0500

Hi,

In order to reduce the amount of CPU freenect nodelet is using on my robot I would like to get only the topic "camera/depth_registered/image_raw" cause this is the only one I need right now.

In case this is not posible, I would like to know if I can run freenect nodelet remotely. I try but as the camera is not connected to the PC running it I get the message "No devices connected". Is there any way by which I could execute it remotely?

And another problem I have is that if I execute "depthimage_to_laserscan" module in the remote PC (after launching freenect in the robot connected to Kinect) it does not work (I do not get any errors or warnings but the /scan topic does not show anything), however, in the robot it does work. Could it be cause one of ROS versions is Kinetic and the other one Indigo? This is the launch file:

<launch> <node pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" name="depthima$ &lt;param name=" scan_height"="" value="3"/> <remap from="image" to="camera/depth_registered/image_raw"/> </node>

</launch>

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-16 19:08:31 -0500

FelipeNascimento gravatar image

The depth data from the Kinect is acquired processing the infrared (IR) map and the camera map. I believe there isn't a way to acquire the depth data without the other nodes.

I believe you can't access the data remotely because you're trying directly from a PC to access the Kinect in other pc. You should use the same PC connected to the Kinect to acquire the data and in other pc just subscribe to camera/depth_registered/image_raw in the other pc.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-08-16 07:22:19 -0500

Seen: 508 times

Last updated: Aug 16 '18