ROS(jade)のインストール(Fedora)

改めて,Fawkesインストールの作業をメモします.
以前のROSのインストール(Fedora)は,indigo でした.
jade の場合を以下に示します.

その前に,Fedora で ccacheの作業も忘れずに(2017/08/11追記)

Fawkes On Fedoraに従って進めます.

sudo dnf groupinstall development-tools development-libs
sudo dnf install fawkes-devenv elfutils-libelf-devel yaml-cpp-devel PyYAML log4cxx-devel CGAL-devel \
  protobuf-devel protobuf-compiler ros-release python-rospkg screen tinyxml-devel \
  mongodb-devel assimp-devel freeimage-devel libusb-devel gazebo-devel \
  python-setuptools numpy clips clipsmm-devel clips-emacs \
  PyOpenGL PyYAML boost-devel cegui-devel cmake console-bridge-devel doxygen \
  freeimage-devel gperftools-devel gtest-devel gts-devel libccd-devel \
  libtool-ltdl-devel libXext-devel libxml2-devel ogre-devel qt-devel \
  tbb-devel urdfdom-headers-devel urdfdom-devel rospack rospack-devel \
  python-rospkg python-rosinstall python-rosdistro ros-release \
  python-rosinstall_generator python-rosdep \
  sip-devel PyQt4-devel python-netifaces libxml libxml2-static libxml++-devel libxml++ \
  python3-libxml2 libxml-devel libxml2 libxml2-devel python-lxml python3-lxml fltk \
  fltk-devel gnome-python2 python-empy libmodbus-devel sip-devel PyQt4-devel \
  python-netifaces libxml libxml2-static libxml++-devel libxml++ python3-libxml2 \
  libxml-devel libxml2 libxml2-devel python-lxml python3-lxml fltk \
  fltk-devel gnome-python2 collada-dom collada-dom-devel openCOLLADA python-collada \
  python-empy poco-devel python-lz4 lz4 lz4-devel libuuid libuuid-devel uuid uuid-devel

以下は,私の環境では不要でしたが,念のため書いておきます.

sudo rpm -e --nodeps tolua++ tolua++-devel
sudo dnf install compat-lua compat-lua-devel compat-tolua++ compat-tolua++-devel
 sudo yum install python-rosdep python-rosinstall_generator python-wstool python-rosinstall @buildsys-build
 sudo pip install -U rosdep rosinstall_generator wstool rosinstall

何か調子悪ければ以下を実行.

 sudo pip install --upgrade setuptools

ROSのインストール

sudo rosdep init
rosdep update
mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws
rosinstall_generator desktop_full --rosdistro jade --deps --wet-only --tar > jade-desktop-full-wet.rosinstall
wstool init -j8 src jade-desktop-full-wet.rosinstall
rosdep install --from-paths src --ignore-src --rosdistro jade -y
rosinstall_generator move_base_msgs --rosdistro jade --deps --wet-only --tar > move_base_msgs.rosinstall
rosinstall_generator ar_track_alvar --rosdistro jade --deps --wet-only --tar > ar_track_alvar.rosinstall
wstool merge -t src move_base_msgs.rosinstall
wstool merge -t src ar_track_alvar.rosinstall
cd src
git clone https://git.fawkesrobotics.org/fawkes_msgs.git
cd ..
wstool update -t src

※追記(2017/02/19)
Fedora 24以降では、以下も必要です。

curl -o stage-fixes.patch https://github.com/rtv/Stage/commit/a1110d12691ab2d3679c7a028f97848a465c0dbe.patch
curl -o stage-cpp11.patch https://patch-diff.githubusercontent.com/raw/rtv/Stage/pull/62.patch
curl -o rviz-cpp11.patch https://github.com/ros-visualization/rviz/commit/311fd949913dbc6ad3e989b8ceb6ef2b04292350.patch
pushd src/stage
patch -p1 < ../../stage-fixes.patch
patch -p1 < ../../stage-cpp11.patch
popd
# The following is for ROS Indigo only, not Kinetic!
pushd src/rviz
patch -p1 < ../../rviz-cpp11.patch
popd

※追記(2017/08/06)
fawkes_msgs を追記しました.
また,上記のpatch のうち,stage-cpp11.patchがなくなっているので,
Fawkes のための Fedora のための ROSを参考に作業をしてください.

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

お茶でも飲んで,まったり待ちましょう.

環境変数の設定.

echo 'source ~/ros_catkin_ws/install_isolated/setup.bash' >> ~/.bashrc
source ~/.bashrc

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*