ROS and Arduino with ROSserial | ROS tutorial #10
ฝัง
- เผยแพร่เมื่อ 12 มิ.ย. 2024
- How to integrate Arduino in your ROS project! In this example we will be using ROSserial to convert an Arduino nano into an interface for the RC receiver and to the two servos. The Arduino will read the PWM signal from the receiver and convert to ROS topic, and, at the same time, will subscribe to incoming topic commands from the raspberry pi and actuate the two servos.
We will be building up on everything we have learned in the previous tutorials: you can find the complete playlist right here: • What is ROS (Robot Ope...
🤓 ZERO TO ROS - The course for beginners:
courses.schoolofros.com/
Intro video: • Zero to ROS - Course f...
👉🏼 Find the Code on the "arduino_servo" branch
github.com/tizianofiorenzani/...
👉🏼 ROSserial package and tutorials
wiki.ros.org/rosserial
👉🏼 STORE
- teespring.com/stores/geekmeup
- Raspberry Pi 4 (4 GB RAM): amzn.to/36GqwXf
- Raspberry Pi 4 (2 GB RAM): amzn.to/2Aj7Pg3
- Wide angle camera: amzn.to/2Pwc6P7
Disclaimer: as an Amazon Associate I earn from qualifying purchases
⌚️ Time Marks
00:00 - Let's start
1:07 - Zero to ROS
1:26 - What is this tutorial about?
2:20 - What is ROSSerial
2:50 - Install Arduino IDE in Linux Ubuntu
3:15 - Arduino Sketch for RC input
5:04 - Arduino Sketch in between RC receiver and Servos
6:02 - The ROS tutorial explained
7:03 - Install ROSserial in the Arduino IDE and Servo example
10:49 - The Arduino Proxy node
11:54 - Modifying the DK_LLC node with the new servo interface
13:34 - Running everything together and outdoor test
******** Find me on Linkedin
/ tiziano-fiorenzani
** Go to my channel: goo.gl/BjLGnS
** Check out my latest video: goo.gl/ZhcNi4
** Check out my most popular video: goo.gl/5KMJnU - วิทยาศาสตร์และเทคโนโลยี
Grande, ciao Tiziano!
Grande Tiziano!!
great video
Thanks so much, could you make one on microRos with ros2?
Updating to Ubuntu 18.04 solved the i2c pwmboard dependency problem but ubiquity robotics doesn’t have a prebaked image for 18.04. Great work as always
I myself have never had issues with that adapter. But this way was more fun and gave me the perfect opportunity to talk about rosserial. Thanks for posting the solution
I want to communicate between Matlab (on my laptop) and ROS (on another Linux computer). I am using a serial communication (USB to RS232) between the 2 computers. Do I need rosserial in my case ? or do I just publish topics directly from Matlab ? Thanks in advance, and well done on your videos, very informative !!
I am going to link ROSserial to RP Lidar. Yes, you are welcome to share useful links friends.
Amazing tutorials Tiziano Fiorenzani. I can't run sudo apt-get install ros-humble-rosserial-arduino. any idea? thanks in advanced. it looks like I have to change command
This was very helpful thank you so much , any chance you could do one where ros will send message to the arduino based on lidar information something like SLAM
Once you know how to connect them, then you can expand it pretty much as you want.
HI tiziano, after watching your tutorial im try to subscribe into tf topic. everything looks work fine. the serial node can subscribe to tf topic and the tf topic data is well. but when i check the serial monitor i see that the data only update once after the serial node is started and then the data looks static. im using esp32. can you help me pls? or there are better methode? thx
fyi im using lidar carthographer and wants to get the coordinates data into arduino esp32.
How you connected the dc motor
Hello,first of all thanks a lot for these great tutorials.
If we can control rover via teleop keyboard(raspberry pi) and arduino,what we need to do if we want to add lidar on rover and to do navigation. Thanks
The Arduino here is just in between the RC and the vehicle and to control the servos. You can add other sensors to your robot now, no problem
Unfortunately, there is no encoder in the engine of my RC vehicle. So how can I calculate odometry?
Obstacle detection with a sonar
Great project !!!!!!!
please, could you share the link to buy the chassi of your robot ?
You can find it on the description of one of the first videos of the series
Hello again 😅 , i am having problems installing the arduino ide on my Ubuntu 20.04 its on a raspberry pi , i followed the same steps but the arduino ide wont open any ideas ?
Actually not, it was flawless. You can also use the windows version. You can import the ros lib in windows as well
This is a really good demo. Unfortunately the author is no more active on the channel.
Why do I need the raspberry pi....
Could it be done with the Arduino alone or a esp32 chipset
you need RPi to run ROS. Neither Arduino nor esp can do that
GREAT VIDEO AM USING ROS 2 GALACTIC SO I HAVE BEEN TRYING FOR WEEKS FOR IT TO WORK WITH ARDUINO CAN YOU HELP ME ON HOW TO SET IT UP
ROS2 does not have Rosserial. You need microRos, which is not compatible with 8 bit Arduino boards
Otherwise you just build your own serial interface as a ROS 2 node which communicates with the Arduino board with your custom messages
is there something like this for ros2 ? for humble?
Not on my channel. For ROS2 I would use Micro ROS, but they would not run on Arduino
Will this work on ros noetic ?
Yes it will. Any distribution with rosserial will work
Will this work on STM32 instead of Arduino ?
Yes, there is actually a rosserial_stn32 repo on GitHub
How to solve this problem:
[ERROR] [1524089506.982801]: Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino.
I have tried several solutions available on the internet, but none has helped.
What ROS version?
Noetic
I'm thinking to run Keras with ROS for this donkey car... is it possible?
I don't see why not: answers.ros.org/question/375792/keras-for-ros/
𝐩𝐫𝐨𝐦𝐨𝐬𝐦