The solution I'm using right now is the depthimage_to_laserscan package. It seems to work well, and it also works with freenect_stack just fine. To install and run these packages, I used the following steps:
Install and run freenect_stack:
sudo apt-get intall ros-hydro-freenect-stack
roslaunch freenect_launch freenect-xyz.launch
Be sure to note, that on the freenect page it says:
If you are using Ubuntu 12.04, you need to blacklist the kernel module that gets loaded by default for the Kinect:
sudo modprobe -r gspca_kinect
echo 'blacklist gspca_kinect' | sudo tee -a /etc/modprobe.d/blacklist.conf
Install and run depthimage_to_laserscan:
sudo apt-get install ros-hydro-depthimage-to-laserscan
rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw
This will create the /scan topic and publish laserscan messages to it. To confirm data is being published, just use "rostopic echo /scan".
This comment has been removed by the author.
ReplyDeleteHi Waron, thank you for writing this useful article. I cope with nowadays ROS and Kinect. Could you please tell me how to make the fake laser scanner using pointcloud_to_laserscan.
ReplyDelete