1、安装ros
https://blog.csdn.net/m0_38087936/article/details/81484889
*问题:
在
sudo rosdep init
时报错
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
*解决:
sudo -E rosdep init
解决参考了:https://answers.ros.org/question/54150/rosdep-initialization-error/
2、配置ros工作空间
(问题:运行第五步catkin_make后,后面ros中配置kinect时,catkin build这一步会出错)
https://www.cnblogs.com/huangjianxin/p/6347416.html
libfreenect 配置
https://blog.csdn.net/u012424737/article/details/80609451
运行时,cpp保存为kinect.cpp,和CMakeLists放在同一个文件夹下
在终端中
mkidr build
cd build
cmake ..
make
.\kinect