Skip to content

Instantly share code, notes, and snippets.

@willwhui
Last active May 15, 2017 16:05
Show Gist options
  • Save willwhui/95afb9c53b2a38134600be8b1cc86e1b to your computer and use it in GitHub Desktop.
Save willwhui/95afb9c53b2a38134600be8b1cc86e1b to your computer and use it in GitHub Desktop.
Ros By Example Chapter 10 - Robot vision
硬件:Macbook Air
操作系统:Ubuntu 14.04
ROS: Indigo
@willwhui
Copy link
Author

willwhui commented May 12, 2017

10.5 ROS to OpenCV: The cv_bridge Package
教材错误
这一节里面源代码有误,导致运行出错
cv_bridge_demo.py的image_callback方法里面的第一行:
frame = self.bridge.imgmsg_to_cv2(ros_image, "passthrough")
应为
frame = self.bridge.imgmsg_to_cv2(ros_image, "bgr8")
教程附带的完整代码里面用了前面那一行,
但是详细说明里面采用了后面这行。

@willwhui
Copy link
Author

willwhui commented May 15, 2017

10.10.2 Viewing Skeletons in RViz
教材不完善:运行rosrun openni_tracker openni_tracker时提示“InitFromXml failed: Can't create any node of the requested type!”
花了几个小时google之,最终在Google group Ros By Example找到了答案:
需要安装一个教材中不曾提到的kinect-nite驱动。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment