-
Notifications
You must be signed in to change notification settings - Fork 30
how_to_install_simulator_xenial
Tiryoh edited this page May 23, 2018
·
3 revisions
GazeboでRaspberry Pi Mouseをシミュレーションするためのセットアップ方法
Ubuntu 14.04を使用している場合はRaspberry Pi Mouse Simulatorのインストール方法(Ubuntu Trusty)をご覧ください。
Gazebo上でRaspberry Pi Mouseをシミュレートできるようにするため、以下のソフトウェアをインストールします。
- Ubuntu Desktop 16.04 LTS 64bit
- ROS Kinetic
- Gazebo 7.x (ROSとともにインストール)
ROSのインストールが完了していない場合はROSのインストール方法をご覧ください。
ryuichiueda/raspimouse_sim_installerを使用してrt-net/raspimouse_simのインストール作業を進めていきます。
必要なコマンドをまとめると、以下のようになります。
sudo apt-get update
sudo apt-get install -y curl
bash -exv -c "$(curl -SsfL https://git.io/raspimouse-sim-installer)"
source ~/.bashrc
rt-net/raspimouse_simのインストール
インストーラを使用するに当たり、まずは以下のコマンドでパッケージマネージャ(apt)のパッケージリストを最新版にし、curlをインストールします。1行ずつ実行してください。
sudo apt-get update
sudo apt-get install -y curl
次にインストーラを実行します。
bash -exv -c "$(curl -SsfL https://git.io/raspimouse-sim-installer)"
最終的に以下のログが出ていればインストール成功です。
###HOW TO VERIFY###
# roslaunch raspimouse_gazebo raspimouse_with_samplemaze.launch
# rosrun raspimouse_control controller_vel_publisher.py
このインストーラではrt-net/raspimouse_simをダウンロードし、ビルドおよび実行に必要な追加パッケージをインストールしています。
最後に設定を再読み込みしてインストール完了です。
source ~/.bashrc
$ catkin_make
Base path: /home/ubuntu/catkin_ws
Source space: /home/ubuntu/catkin_ws/src
Build space: /home/ubuntu/catkin_ws/build
Devel space: /home/ubuntu/catkin_ws/devel
Install space: /home/ubuntu/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ubuntu/catkin_ws/build"
####
####
#### Running command: "make -j8 -l8" in "/home/ubuntu/catkin_ws/build"
####
上記のようになにもビルドせず、目的のパッケージのcatkin_makeに失敗する場合があります。
setup.bash
を再読み込みしてからcatkin_makeしてみてください。
詳しくはROSトラブルシューティングをご覧ください。