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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 39

  • @marcopter
    @marcopter 2 ปีที่แล้ว

    Grande, ciao Tiziano!

  • @GiuseppeLabriola
    @GiuseppeLabriola 2 ปีที่แล้ว

    Grande Tiziano!!

  • @Drxxx
    @Drxxx 2 ปีที่แล้ว

    great video

  • @josepablolopezaguado6191
    @josepablolopezaguado6191 ปีที่แล้ว

    Thanks so much, could you make one on microRos with ros2?

  • @XxPwnZsxX
    @XxPwnZsxX 2 ปีที่แล้ว +1

    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

    • @prandtlmayer
      @prandtlmayer  2 ปีที่แล้ว

      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

  • @darmanin703
    @darmanin703 ปีที่แล้ว

    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 !!

  • @acevanefan
    @acevanefan 2 หลายเดือนก่อน

    I am going to link ROSserial to RP Lidar. Yes, you are welcome to share useful links friends.

  • @jirivchi
    @jirivchi ปีที่แล้ว

    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

  • @osaydhussein258
    @osaydhussein258 2 ปีที่แล้ว +1

    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

    • @prandtlmayer
      @prandtlmayer  2 ปีที่แล้ว +2

      Once you know how to connect them, then you can expand it pretty much as you want.

  • @fransflorenza9708
    @fransflorenza9708 ปีที่แล้ว

    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.

  • @iitianvlogs9805
    @iitianvlogs9805 หลายเดือนก่อน

    How you connected the dc motor

  • @agrimekatronik321
    @agrimekatronik321 ปีที่แล้ว

    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

    • @prandtlmayer
      @prandtlmayer  ปีที่แล้ว +1

      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

  • @ozcankosar6206
    @ozcankosar6206 4 หลายเดือนก่อน

    Unfortunately, there is no encoder in the engine of my RC vehicle. So how can I calculate odometry?

  • @Elnasir
    @Elnasir ปีที่แล้ว

    Obstacle detection with a sonar

  • @etiennemekonoudekpanou675
    @etiennemekonoudekpanou675 7 หลายเดือนก่อน

    Great project !!!!!!!
    please, could you share the link to buy the chassi of your robot ?

    • @prandtlmayer
      @prandtlmayer  7 หลายเดือนก่อน

      You can find it on the description of one of the first videos of the series

  • @osaydhussein258
    @osaydhussein258 2 ปีที่แล้ว

    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 ?

    • @prandtlmayer
      @prandtlmayer  2 ปีที่แล้ว

      Actually not, it was flawless. You can also use the windows version. You can import the ros lib in windows as well

  • @alexnder8401
    @alexnder8401 3 หลายเดือนก่อน

    This is a really good demo. Unfortunately the author is no more active on the channel.

  • @jordanducille8600
    @jordanducille8600 ปีที่แล้ว

    Why do I need the raspberry pi....
    Could it be done with the Arduino alone or a esp32 chipset

    • @alexnder8401
      @alexnder8401 3 หลายเดือนก่อน

      you need RPi to run ROS. Neither Arduino nor esp can do that

  • @user-dl6ki2oy9y
    @user-dl6ki2oy9y 11 หลายเดือนก่อน

    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

    • @prandtlmayer
      @prandtlmayer  11 หลายเดือนก่อน

      ROS2 does not have Rosserial. You need microRos, which is not compatible with 8 bit Arduino boards

    • @prandtlmayer
      @prandtlmayer  11 หลายเดือนก่อน

      Otherwise you just build your own serial interface as a ROS 2 node which communicates with the Arduino board with your custom messages

  • @proplayerplayz
    @proplayerplayz ปีที่แล้ว

    is there something like this for ros2 ? for humble?

    • @prandtlmayer
      @prandtlmayer  ปีที่แล้ว

      Not on my channel. For ROS2 I would use Micro ROS, but they would not run on Arduino

  • @osaydhussein258
    @osaydhussein258 2 ปีที่แล้ว

    Will this work on ros noetic ?

    • @prandtlmayer
      @prandtlmayer  2 ปีที่แล้ว +1

      Yes it will. Any distribution with rosserial will work

  • @christopherlazo8485
    @christopherlazo8485 ปีที่แล้ว

    Will this work on STM32 instead of Arduino ?

    • @prandtlmayer
      @prandtlmayer  ปีที่แล้ว

      Yes, there is actually a rosserial_stn32 repo on GitHub

  • @moreno7886
    @moreno7886 ปีที่แล้ว

    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.

  • @nurakhyarnordin3985
    @nurakhyarnordin3985 2 ปีที่แล้ว

    I'm thinking to run Keras with ROS for this donkey car... is it possible?

    • @prandtlmayer
      @prandtlmayer  2 ปีที่แล้ว

      I don't see why not: answers.ros.org/question/375792/keras-for-ros/

  • @ravidrewett1488
    @ravidrewett1488 2 ปีที่แล้ว

    𝐩𝐫𝐨𝐦𝐨𝐬𝐦