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.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值