[0352]_★ros_kinetic_install

スライド1


を参考に写すと、
$ sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGES=POSIX
$ sudo sh -c ‘echo “deb http://packages.ros.org/ros/ubuntu trusty main” > /etc/apt/sources.list.d/ros-latest.list’
$ sudo apt-key adv –keyserver hkp://ha.pool.sks-keyservers.net –recv-key 0xB01FA116
$ sudo apt-get update
$ sudo apt-get install ros-indigo-ros-base -y
なので、、、、

http://wiki.ros.org/action/show/kinetic/Installation/Ubuntu?action=show&redirect=kinetic%2FInstallation%2FUbuntuARM
参考でkineticに書き換えると、、
sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGES=POSIX
sudo sh -c ‘echo “deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main” > /etc/apt/sources.list.d/ros-latest.list’
sudo apt-key adv –keyserver hkp://ha.pool.sks-keyservers.net:80 –recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-ros-base

rosdepのインストールと初期化
sudo rosdep init
rosdep update

ROSの環境変数をシステムに反映
echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
source ~/.bashrc

sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential

rosinstallのインストール
sudo apt-get install python-rosinstall

gopigo3のドライバーをインストール
https://pypkg.com/pypi/gopigo3-test/
参考
sudo pip install gopigo3-test
/usr/local/lib/python2.7/dist-packages

★★★★★★★★★★★★★★★
(おおお!、ついに書いてくれたあ!!!!)
https://qiita.com/cut0ter/items/0326f5dee89456e47001
参考
★★★★★★★★★★★★★★★
1つめ
roscore

2つめ
(roslaunch ropigo ropigo.launchのコマンドでなく・・・・Web作者が作ってくれたpythonで動かす)
/home/pi/Dexter/GoPiGo3/Software/Python
python gopigo3_ros.py

3つめ
rostopic pub /cmd_vel geometry_msgs/Twist ‘[0.2, 0.0, 0.0]’ ‘[0.0, 0.0, 0.0]’
rostopic pub /cmd_vel geometry_msgs/Twist ‘[0.0, 0.0, 0.0]’ ‘[0.0, 0.0, 0.2]’

動いた・・・・・やった・・・でも画像がでない・・・

なので・・まとめると、
ここまで起動中のコマンド
$ roscore
$ rosrun libuvc_camera camera_node
$ rosrun web_video_server web_video_server
$ roslaunch rosbridge_server rosbridge_websocket.launch
$ roslaunch roswww roswww.launch
GoPiGoの台車ノードの起動
$ cd /home/pi/Dexter/GoPiGo3/Software/Python
$ python gopigo3_ros.py
GoPiGoの台車ノードの起動
http://GoPiGoのIPアドレス:8085/webjoy_example/index.html
http://192.168.0.10:8085/webjoy_example/index.html

(11/10)
なので、カメラの部分を再度構築しなおす(インストールしなおす)
https://codezine.jp/article/detail/10068
参考

パッケージのインストール(kineticだよ!!)
$ sudo apt-get update
$ sudo apt-get install ros-kinetic-rosbridge-suite ros-kinetic-roswww ros-kinetic-libuvc-camera ros-kinetic-web-video-server
$ rospack profile

$ roscore
$ rosrun libuvc_camera camera_node

動画ストリーミングサーバ起動
$ rosrun web_video_server web_video_server

http://GoPiGoのIPアドレス:8080/stream_viewer?topic=/image_raw
http://192.168.0.10:8080/stream_viewer?topic=/image_raw
(うん!映ってる・・・OK!)

$ cd /home/pi/gopigo_ws
$ catkin_make
$ source ~/gopigo_ws/devel/setup.bash

Webサーバの起動
$ roslaunch roswww roswww.launch

Webサーバの起動後、下記にアクセスしてみましょう。
http://GoPiGoのIPアドレス:8085/webjoy_example/index.html
http://192.168.0.9:8085/webjoy_example/index.html
(あれーーーダメだな・・・NG)

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