我是靠谱客的博主 幽默萝莉,最近开发中收集的这篇文章主要介绍rosserial for hydro,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

If you do not already have an Arduino IDE installed, download it from the Arduino website.

How to install rosserial for ros:
sudo apt-get install ros-hydro-rosserial-arduino
sudo apt-get install ros-hydro-rosserial

cd tutorials/catkin_ws/src/

git clone https://github.com/ros-drivers/rosserial.git

ppeix:src$ cd rosserial/
ppeix:rosserial$ ll
total 52
drwxr-xr-x 11 ppeix ppeix 4096  3月 31 11:36 ./
drwxrwxr-x 11 ppeix ppeix 4096  3月 31 15:55 ../
drwxrwxr-x  8 ppeix ppeix 4096  3月 31 11:36 .git/
-rw-rw-r--  1 ppeix ppeix   28  3月 31 11:36 .gitignore
-rw-rw-r--  1 ppeix ppeix 1963  3月 31 11:36 README.md
drwxrwxr-x  2 ppeix ppeix 4096  3月 31 11:36 rosserial/                      Metapackage for core of rosserial
drwxrwxr-x  5 ppeix ppeix 4096  3月 31 11:36 rosserial_arduino/      using rosserial_client with the Arduino
drwxrwxr-x  3 ppeix ppeix 4096  3月 31 11:36 rosserial_client/       the generic client-side rosserial implementation
drwxrwxr-x  3 ppeix ppeix 4096  3月 31 11:36 rosserial_embeddedlinux/
drwxrwxr-x  4 ppeix ppeix 4096  3月 31 11:36 rosserial_msgs/         Messages for automatic topic configuration using rosserial.
drwxrwxr-x  4 ppeix ppeix 4096  3月 31 11:36 rosserial_python/       a Python implementation of the host-side rosserial connection.
drwxrwxr-x  4 ppeix ppeix 4096  3月 31 11:36 rosserial_server/
drwxrwxr-x  4 ppeix ppeix 4096  3月 31 11:36 rosserial_xbee/


ppeix:cd ../..
ppeix:catkin_ws$ ls
build  devel  install  src

 
ppeix:catkin_make
ppeix:catkin_make install
ppeix:source catkin_ws/install/setup.bash

Pls refer to http://wiki.ros.org/rosserial_client/Tutorials to  Download arduino ide, 
and then
 cd <sketchbook>/libraries
  rm -rf ros_lib
  rosrun rosserial_arduino make_libraries.py . can generate the ros_lib directory for arduino ide.

Then enter the directory of arduino ide installation:   cd ~/Download/arduino-1.0.5
launch the arduino ide using ./arduino, you can see the ros_lib listed under examples.


最后

以上就是幽默萝莉为你收集整理的rosserial for hydro的全部内容,希望文章能够帮你解决rosserial for hydro所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(56)

评论列表共有 0 条评论

立即
投稿
返回
顶部