解決方法;
$ sudo vim /etc/fonts/conf.d/69-language-selector-zh-tw.conf
然後分別加入
<string>WenQuanYi Zen Hei</string>
<string>WenQuanYi Micro Hei</string>
<string>WenQuanYi Micro Hei Mono</string>
$ lsusb–v
$ sudo apt-get install ros-fuerte-openni-kinect
if it is 0601 not 0600(old verison)
$ sudo apt-get install --reinstall libopenni-sensor-primesense0
$ sudo gedit /etc/openni/GlobalDefaults.ini
Set `UsbInterface=2`
$ sudo reboot
$ roscore
$ roslaunch openni_launch openni.launch
Use image_view tool to see your RGB and depth images$ rosrun image_view image_view image:=/camera/rgb/image_color
$ rosrun image_view image_view image:=/camera/depth/image
$ git clone https://github.com/jefftee/dvo_slam.git
$ rosmake dvo_core dvo_ros dvo_slam dvo_benchmark
$ git clone -b fuerte https://github.com/tum-vision/dvo_slam.git
or clone it from my repository (I add some launch files)$ git clone -b fuerte git@bitbucket.org:TzuTaLin/dvo_slam.git
Build it
$ export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/dvo_slam
$ sudo apt-get install ros-fuerte-libg2o liblapack-dev libblas-dev freeglut3-dev libqglviewer-qt4-dev libsuitesparse-dev libx11-dev
$ rosmake dvo_core dvo_ros dvo_slam dvo_benchmark
Clean$ roscd your_package_name && make clean
Run keyframe tracker$ roslaunch dvo_slam qucikstart.lauch
$ associate.py rgb.txt depth.txt > assoc.txt
$ roslaunch dvo_benchmark benchmark.launch keep_alive
or
$ roslaunch dvo_benchmark benchmark.launch
$ rosrun rqt rq
cd ~/<my_working _directory> git clone https://github.com/Itseez/opencv.git git clone https://github.com/Itseez/opencv_contrib.git cd ~/<my_working _directory>/opencv git checkout -b 3.1.0 3.1.0 cd ~/<my_working _directory>/opencv_contrib git checkout -b 3.1.0 3.1.0
cd opencv mkdir release cd release cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules/ CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
-DWITH_CUDA=OFF to your cmake command line.make -j8 # -j8 runs 8 jobs in parallel. # Change 8 to number of hardware threads available. sudo make install
cd opencv mkdir release cd release cmake -G Ninja -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules/ CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. ninja -j8 ninja install
export ANDROID_NDK=[YourNDKPath] cd ~/<my_working _directory>git clone https://gist.github.com/tzutalin/f07f5633fd599001101006561689062b sh build-android-opencv.sh
$ sudo apt-get install ros-indigo-rgbd-launch ros-indigo-openni2-camera ros-indigo-openni2-launch
$ roscore
$ roslaunch openni2_launch openni2.launch
$ rosrun rviz rviz

#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
std::string dirPath = "/home/darrenl/Pictures/person";
fs::path someDir(dirPath);
fs::directory_iterator end_iter;
typedef std::multimap<std::time_t, fs::path> result_set_t;
result_set_t result_set;
if (fs::exists(someDir) && fs::is_directory(someDir)) {
for (fs::directory_iterator dir_iter(someDir); dir_iter != end_iter;
++dir_iter) {
if (fs::is_regular_file(dir_iter->status())) {
result_set.insert(
result_set_t::value_type(
fs::last_write_time(dir_iter->path()),
*dir_iter));
LOG(INFO)<< dir_iter->path().string();
}
}
}
sudo apt-get install apache2 mysql-client mysql-server php5-mysql
sudo a2enmod userdir
sudo service apache2 reload
Of course, you'll also need to make sure that the permissions on your public_html folder allow the www-data user to see the files in there -- 755 usually works well. To do this: mkdir ~/public_html
chmod -R 755 ~/public_html
So that, Apache can access files in Home directory
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
<?php
phpinfo();
?>
The address you want to visit will be:http://localhost/info.php
sudo vim /etc/apache2/mods-enabled/php5.conf
sudo /etc/init.d/apache2 restart
**__GXX_EXPERIMENTAL_CXX0X__** does not help __cplusplus
201103L