[0340]_ros_gopigo3用にすれば

Message body
一発で起動するコマンド
★★★★★★一発で起動するコマンド ★★★★★★
$ roslaunch webjoy_example webjoy_example.launch

http://192.168.0.7:8080/stream_viewer?topic=/image_raw
http://192.168.0.12:8080/stream_viewer?topic=/image_raw
http://192.168.0.13:8080/stream_viewer?topic=/image_raw

http://192.168.0.7:8085/webjoy_example/index.html
http://192.168.0.12:8085/webjoy_example/index.html
http://192.168.0.13:8085/webjoy_example/index.html

http://d.hatena.ne.jp/creativeability/20170826

(9/24)
http://d.hatena.ne.jp/creativeability/20170826
rosのgopigoのやつはgopigo2用のものなのでgopigo3では動きません。
同じ状態になっていましたが、gopigo3用をつかってセットアップしたら動きました。

https://pypi.python.org/pypi/gopigo3/1.1.1
http://gopigo3.readthedocs.io/en/latest/

Python in the GoPiGo3

【3】GoPiGoのROS用ドライバーを入れる(ここをgopigo3用に変えてみるか・・・9/24)
$ cd ~/gopigo_ws
$ sudo curl https://raw.githubusercontent.com/DexterInd/Raspbian_For_Robots/master/upd_script/fetch_gopigo3.sh | bash
$ sudo reboot

Quick Install
In order to quick install the GoPiGo3 repository, open up a terminal and type the following command:
$ cd ~/gopigo_ws
$ sudo curl -L dexterindustries.com/update_gopigo3 | bash

(ここから続き・・・9/24)
$ cd ~/gopigo_ws

Installation
You can install the GoPiGo3 on your own operating system with the following commands in the command line:
Clone this repository onto the Raspberry Pi:
$ sudo git clone http://www.github.com/DexterInd/GoPiGo3.git /home/pi/Dexter/GoPiGo3

Run the install script:
$ sudo bash /home/pi/Dexter/GoPiGo3/Install/install.sh

Reboot the Raspberry Pi to make the settings take effect:
$ sudo reboot
(ダメ・・・9/24)

https://libraries.io/pypi/gopigo3
gopigo3
Release 1.1.1
Install
$ pip install gopigo3==1.1.1
(ダメ・・・9/24)


$ git clone https://github.com/karaage0703/raspberry-pi-setup
$ cd raspberry-pi-setup
$ ./setup-ros-indigo-ubuntu.sh
(ダメ・・・、でも操作でのエラーはなくなった???9/24)

(9/25、IndigoでなくKineticを再度インストールする)
http://wiki.ros.org/kinetic/Installation/Ubuntu

$ sudo sh -c ‘echo “deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main” > /etc/apt/sources.list.d/ros-latest.list’
Set up your keys
$ sudo apt-key adv –keyserver hkp://ha.pool.sks-keyservers.net:80 –recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
$
Installation
First, make sure your Debian package index is up-to-date:
$ sudo apt-get update
$ sudo apt-get install ros-kinetic-desktop-full

スライド1


$ sudo apt-get install python-rosdep

$ sudo apt-get install python-rosinstall

Python in the GoPiGo3


$ sudo curl https://raw.githubusercontent.com/DexterInd/Raspbian_For_Robots/master/upd_script/fetch_gopigo3.sh | bash
(ダメ・・・、変化なし???9/25)

×××××
(9/27)
××××××××××
ROS-Commonのインストール[kineticで]
$ cd gopigo_ws
$ rosinstall_generator ros_comm –rosdistro kinetic –deps –wet-only –exclude roslisp –tar > kinetic-ros_comm-wet.rosinstall

はダメで下記でやれと怒られたんので下記を投入
$ sudo apt install python-rosinstall-generator

$ wstool init src kinertic-ros_comm-wet.rosinstall
$ rosdep install –from-paths src –kinetic-src –rosdistro kinetic -y -r –os=debian:jessie

$ sudo ./src/catkin/bin/catkin_make_isolated –install -DCMAKE_BUILD_TYPE=Release –install-space /opt/ros/kinertic
ビルドの途中でメモリ不足となり止まるかも・・・なので下記準備
$ sudo ./src/catkin/bin/catkin_make_isolated –install -DCMAKE_BUILD_TYPE=Release –install-space /opt/ros/kinetic -j2
$ source /opt/ros/kinetic/setup.bash
$ echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
(ダメ・・・、変化なし???やらないほうが良い!9/27)
××××××××××
××××××××××

(これは過去の参考・・・・)
【3】GoPiGoのROS用ドライバーを入れる
$ sudo apt-get install build-essential tmux vim -y
$ mkdir ~/gopigo_ws
$ cd ~/gopigo_ws
$ wget https://raw.githubusercontent.com/ros-gopigo/rosinstall-repo/master/ros-gopigo.rosinstall

$ wstool init src ros-gopigo.rosinstall
$ rosdep install –from-paths src –ignore-src –rosdistro $ROS_DISTRO
$ catkin_make
(catkin_makeが通ればビルド完了)
ビルド済みバイナリをROSで使えるように、そのパスを.bashrcに書き込んでいます
$ echo “source ~/gopigo_ws/devel/setup.bash” >> ~/.bashrc
$ source ~/.bashrc