ROSでレゴマインドストームEV3を動かしてみた - QiitaをVirtualBoxからではなくてRaspberry Pi 2からやってみてできたので手順をメモしておく。
事前にRaspberry Pi 2にUbuntu 14.04を入れてみたの手順でRaspberry Pi設定済み。
やってみた手順
基本的にROSでレゴマインドストームEV3を動かしてみた - Qiitaの通り。
上記の手順とは違うことをしたところを以下に書いておく。
ROSインストール
システムをアップデートとROSのインストールの手順でros-indigo-desktop-fullがなぜか入らなかったのでros-indigo-ros-baseを入れた。
$ sudo apt-get install ros-indigo-desktop-full
(略)
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-indigo-desktop-full : Depends: ros-indigo-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install ros-indigo-simulators
(略)
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-indigo-simulators : Depends: ros-indigo-gazebo-ros-pkgs but it is not installable
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install ros-indigo-gazebo-ros-pkgs
(略)
Package ros-indigo-gazebo-ros-pkgs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ros-indigo-gazebo-ros-pkgs' has no installation candidate
ros-indigo-navigationインストール
VM側でmindstorms_ros環境構築の手順でapt-get install ros-indigo-navigationで失敗するが、「Raspberry Pi 2にUbuntu 14.04を入れてみた」の「libegl1-mesa-devやlibgles2-mesa-devのインストールが失敗する場合」の手順で対応出来る。
mindstorms_ros環境構築構築
VM側でmindstorms_ros環境構築の手順でcatkin_makeした際にros-indigo-desktop-fullを入れていないせいか幾つかパッケージが不足してエラーとなったので、都度apt-get installで対応パッケージをインストールした。
たしか以下のパッケージ(抜け漏れあるかも)
- ros-indigo-nao-description
- ros-indigo-orocos-kdl
- ros-indigo-robot-state-publisher
- ros-indigo-tf-conversions