.rosinstallファイルをgiteeソースに変更
1955 ワード
Turtlebot 3ミドルチュートリアル-Cartographer-turtlebotインストール
https://www.ncnynl.com/archives/201801/2230.html
# Install wstool and rosdep.
$ sudo apt-get update
$ sudo apt-get install -y python-wstool python-rosdep ninja-build
# Create a new workspace in 'cartographer_ws'.
$ mkdir cartographer_ws
$ cd cartographer_ws
$ wstool init src
# Merge the cartographer_turtlebot.rosinstall file and fetch code for dependencies.
$ wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_turtlebot/master/cartographer_turtlebot.rosinstall
$ vim src/.rosinstall
# ceres-solver :
#>>uri: https://github.com/ceres-solver/ceres-solver.git
上のこれraw.githubusercontent.com
ウェブサイトは開けられません!
この文wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_turtlebot/master/cartographer_turtlebot.rosinstall
の役割は1つダウンロードすることです.rosinstallファイル、私はすでにファイルをgiteeソースに変えて、今降りることができます!
cartographerでwsフォルダに新しいものを作成します.义齿
下の行を
- git: {local-name: cartographer, uri: 'https://gitee.com/mirrors/cartographer.git'}
- git: {local-name: cartographer_ros, uri: 'https://gitee.com/liyuan2/cartographer_ros.git'}
- git: {local-name: cartographer_turtlebot, uri: 'https://gitee.com/jhkdx/cartographer_turtlebot.git'}
- git: {local-name: ceres-solver, uri: 'https://gitee.com/mirrors/ceres-solver.git', version: '1.12.0rc4'}
に書き込むrosinstall
次に、次のように実行します.$ wstool update -t src
# Install deb dependencies.
$ rosdep update
# install proto3
$ src/cartographer/scripts/install_proto3.sh
$ rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
# Build and install.
$ catkin_make_isolated --install --use-ninja -j1
$ source install_isolated/setup.bash
# Install wstool and rosdep.
$ sudo apt-get update
$ sudo apt-get install -y python-wstool python-rosdep ninja-build
# Create a new workspace in 'cartographer_ws'.
$ mkdir cartographer_ws
$ cd cartographer_ws
$ wstool init src
# Merge the cartographer_turtlebot.rosinstall file and fetch code for dependencies.
$ wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_turtlebot/master/cartographer_turtlebot.rosinstall
$ vim src/.rosinstall
# ceres-solver :
#>>uri: https://github.com/ceres-solver/ceres-solver.git
raw.githubusercontent.com
wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_turtlebot/master/cartographer_turtlebot.rosinstall
- git: {local-name: cartographer, uri: 'https://gitee.com/mirrors/cartographer.git'}
- git: {local-name: cartographer_ros, uri: 'https://gitee.com/liyuan2/cartographer_ros.git'}
- git: {local-name: cartographer_turtlebot, uri: 'https://gitee.com/jhkdx/cartographer_turtlebot.git'}
- git: {local-name: ceres-solver, uri: 'https://gitee.com/mirrors/ceres-solver.git', version: '1.12.0rc4'}
$ wstool update -t src
# Install deb dependencies.
$ rosdep update
# install proto3
$ src/cartographer/scripts/install_proto3.sh
$ rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
# Build and install.
$ catkin_make_isolated --install --use-ninja -j1
$ source install_isolated/setup.bash