Up インストール 作成: 2021-02-19
更新: 2021-02-20


     ros-gopigo / ros-node-ropigo :
      GoPiGo ROS Node : ROS node to control GoPiGo robots
      The node requires the GoPiGo driver to be installed either as catkin package or manually.

      gitthub.com : ros-gopigo / rosinstall-repo
    Installation
    1. Install ROS' wstool and catkin tools:
    Either

    $ sudo apt install python-wstool
    $ sudo apt install python-catkin-tools

    or

    $ sudo pip install -U wstool
    $ sudo pip install -U catkin_tools


    2. Create and initialize ROS/Catkin workspace
    Source your ROS installation

    $ source /opt/ros/kinetic/setup.bash

    create folder for workspace

    $ mkdir gopigo_ws
    $ cd gopigo_ws

    Download the repository file containing all catkin packages and their location.

    For GoPiGo only:

    $ wget https://raw.githubusercontent.com/ros-gopigo/rosinstall-repo/master/ros-gopigo.rosinstall

    For GoPiGo with raspicam:

    $ wget https://raw.githubusercontent.com/ros-gopigo/rosinstall-repo/master/ros-gopigo-video.rosinstall

    This will install the raspicam node and its dependencies that are not included in the ROS variant 'robot'.

    You should now see the ros-gopigo.rosinstal or ros-gopigo-video.rosinstall file within your directory gopigo_ws.


    3. Download all packages in the workspace
    $ wstool init src ros-gopigo.rosinstall

    or

    $ wstool init src ros-gopigo-video.rosinstall

    respectively.


    4.Fetch remaining system dependencies

    $ rosdep install --from-paths src --ignore-src --rosdistro kinetic -y -r --os=debian:jessie


    5. Build packages
    $ catkin build


    6. Enable workspace and have fun
    $ source devel/setup.bash


      古賀勇多 (2016)
      $ mkdir ~/gopigo_ws $ cd ~/gopigo_ws $ wget https://raw.githubusercontent.com/ros-gopigo/rosinstall-repo/kinetic/ros-gopigo.rosinstall $ wstool init src ros-gopigo.rosinstall $ rosdep install --from-paths src --ignore-src --rosdistro $ catkin_make

    ビルド済みバイナリをROSで使えるように、そのパスを.bashrcに書き込む:
      $ echo "source ~/gopigo_ws/devel/setup.bash" >> ~/.bashrc

    gopigo_ws以下のパッケージをROSに読み込み
      $ source ~/.bashrc