strange error encountered today in ROS

I reinstalled my ubuntu system and also ROS. I tested slam_karto package when some strange error came out. I still cannot explain it for now.

'vector' in namespace 'std' does not name a type

located in /opt/ros/indigo/include/ros/console.h

Fixed by:

cd /opt/ros/indigo/include/ros/console.h
gedit console.h

add a line:

  #include <vector>

But, why would an error happen in ROS itself?

上一篇:java 倒入一篇文章,显示每个字母的出现概率,从大到小排序


下一篇:Java学习-HashMap练习