sudo apt-get install -y google-mock libboost-all
-dev libeigen3-dev libgflags-dev libgoogle-glog
-dev liblua5.2
-dev libprotobuf-dev libsuitesparse-dev libwebp-dev ninja-build protobuf-compiler python-sphinx ros-kinetic
-tf2
-eigen libatlas-base
-dev libsuitesparse-dev liblapack-dev
git clone
cd ceres-solver-1.11.0
mkdir build
cd build
cmake ..
make -j4
sudo make install
git clone
cd cartographer
mkdir build
cd build
cmake .. -g ninja
ninja
ninja test
sudo ninja install
#初始化工作空間
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
echo
"source catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
#安裝cartographer_ros
cd ~/catkin_ws/src
git clone
cd ~/catkin_ws
catkin_make
sudo apt-get install -y
\ g++
\ git \
google-mock
\ libboost-all
-dev
\ libcairo2-dev
\ libeigen3-dev
\ libgflags-dev
\ libgoogle-glog
-dev
\ liblua5.2
-dev
\ libsuitesparse-dev
\ ninja-build
\ python-sphinx
# build and install ceres.
git clone
cd ceres-solver
git checkout tags/1.13.0
mkdir build
cd build
cmake .. -g ninja -dcxx11=on
ninja
ctest_output_on_failure=1 ninja test
sudo ninja install
# build and install proto3.
git clone
cd protobuf
git checkout tags/v3.4.1
mkdir build
cd build
cmake -g ninja \
-dcmake_position_independent_code=on \
-dcmake_build_type=release \
-dprotobuf_build_tests=off \
../cmake
ninja
sudo ninja install
# build and install cartographer.
cd cartographer
mkdir build
cd build
cmake .. -g ninja
dprotobuf_dir="/usr/local/lib/cmake/protobuf/" -dprotobuf_include_dir="/usr/local/include/google/protobuf/" -dprotobuf_library="/usr/local/lib/libprotobuf.a"
ninja
ctest_output_on_failure=1 ninja test
sudo ninja install
注意:如果報protobuf的錯誤1. protoco –versian檢視版本是否正確
2. 編譯加dprotobuf_dir、dprotobuf_include_dir、dprotobuf_librar指定路徑
sudo apt-get install -y python-wstool python-rosdep ninja-build
mkdir -p /code/ros/catkin_ws_cartographer/src
cd /code/ros/catkin_ws_cartographer/src
git clone --recursive
cd /code/ros/catkin_ws_cartographer
catkin_make_isolated --install --use-ninja
-dcartographer_dir
="/usr/local/share/cartographer/"
source /code/ros/catkin_ws_cartographer/devel_isolated/setup.bash
echo "source /code/ros/catkin_ws_cartographer/devel_isolated/setup.bash"
>> ~/
.bashrc
2d資料
3d資料
執行launch檔案即可
實驗結論:使用自己的單線雷射雷達與使用資料集效果無差,表現都很好,基本上沒有什麼誤差
//修改cartographer發布occupancygrid的程式位於occupancy_grid_node_main.cc中。關注createoccupancygridmsg這一函式的呼叫。具體修改msg_conversion.cc
std::unique_ptrcreateoccupancygridmsg(
...for (int y = height - 1; y >= 0; --y)
} return occupancy_grid;
Mysql zip archive版本 安裝教程
2.解壓縮至相應目錄,並配置環境變數 將 bin新增進path中 3.重要 在根目錄新建my.ini檔案,寫入以下內容 mysql 設定mysql客戶端預設字符集 default character set utf8 mysqld 設定3306埠 port 3306 設定mysql的安裝目錄 bas...
Cloudera Manager 離線安裝教程
前言 以前部署 hadoop集群,一直使用 cloudera 提供的tarball 部署安裝 今天嘗試使用 cm在新機器部署 hadoop,因為使用它使用起來簡單方便 並且提供了一系列的監控功能 但由於 cm的安裝是要聯網的,而且 cloudera 還在中國沒有源 所以安裝過程非常的慢 而且失敗率很...
Windows 安裝 Tensorflow 教程
直接從官網下就好了 進入cmd 檢視anaconda環境是否安裝成功 conda version 檢視目前安裝了哪些環境變數 conda info envs 可以使用這個語句檢視可以安裝得python版本conda search full name python conda create name ...