Raspberry Pi ROS+arduino (1): Install arduino ide+rosserial library

1. First, let's install the arduino ide. Since the Ubuntu mate 16.04 version is installed on the Raspberry Pi, the following method is used to install the arduino ide.

It only takes one line of code to go down:

sudo apt-get install arduino

Then you can find it in the options below.

After plugging in the arduino uno, the port is still empty and there is no response. It is suspected that it is a driver problem, so quickly install the CP2102 driver and try it.

Searching around Baidu, I found that the driver seems to be there. The driver is judged by the first command below, and the USB port is judged by the second command, but why can’t the arduino ide recognize it?

Baidu finally solved it after a long time, see the following tutorial (a perfect solution with method one):

https://blog.csdn.net/qq_24254419/article/details/62241770

2. Then, let's install the ros-serial library

sudo apt-get install ros-kinetic-rosserial-arduino

Check the arduino file placement location

Then enter this directory,

run:

rm -rf ros_lib

rosrun rosserial_arduino make_libraries.py .

Don't forget to open a terminal to run roscore before running the rosrun command.

Then the installation was successful.

3. Restart the arduino.

 

Guess you like

Origin blog.csdn.net/qqliuzhitong/article/details/112794039