ROS and Raspberry Pi for Beginners | Tutorial #0 - Topics Packages RosMaster

Sdílet
Vložit
  • čas přidán 2. 08. 2024
  • 🤓 Check out my Course for beginners Zero to ROS: courses.schoolofros.com/cours...
    ROS Tutorial for Beginners. Using ROS on a Raspberry Pi 3 for controlling a RC car through the keyboard on a Ubuntu Laptop
    We will focus on:
    - ROS kinetic installation on Ubuntu
    - Raspberry Pi setup
    - Installing a package
    - Creating a package
    - Messages and topics
    ** WATCH NEXT ONE: • How to Build and Launc...
    *** SHOP NOW *********************
    teespring.com/stores/geekmeup
    ** Sonar and obstacle avoidance: • ROS and SONARS for OBS...
    *** Follow the whole series: • What is ROS (Robot Ope...
    We will use a Raspberry Pi 3 on a Remotely Controlled car and use an Ubuntu laptop for controlling and programming.
    👉 Want to use an Arduino in place of the i2c PWM adapter? Check out this video: • ROS and Arduino with R...
    ROS Master runs on the Raspberry Pi board.
    We will use SAMBA for haring the folders and develop our script in Python
    ******** TIME MARKS *******************
    00:00 - Let's start
    1:15 - Install ROS on Ubuntu
    2:57 - RC Car: parts and setup
    3:38 - Raspberry Pi setup
    4:53 - Install servo control board package
    5:40 - Package structure: messages and topics
    7:15 - Topics: introduction and test on the car
    10:12 - Python script for low level control
    13:13 - First indoor test
    13:48 - ROS_MASTER_URI setup
    15:23 - Launch file
    16:30 - Outdoor madness! complete test
    ******** SLOWER AND DETAILED HOW TOs *******************
    - Build and Launch a Node: • How to Build and Launc...
    - Topics and rqt_graph: • ROS Topics and RQT_GRA...
    - Create a Publisher Node: • Create your First PUBL...
    - Create a Subscriber Node: • SUBSCRIBER Node in ROS...
    - Custom messages: • Custom MESSAGES in ROS...
    ******** FIND THE CODE *******************
    - My code: github.com/tizianofiorenzani/...
    - i2cpwm_board package: gitlab.com/bradanlane/ros-i2c...
    ******** ROS INSTALLATION *******************
    - ROS Kinetic: wiki.ros.org/kinetic/Installation
    - Raspberry Pi image: downloads.ubiquityrobotics.co...
    ****** DONKEY CAR PROJECT ******
    www.donkeycar.com/
    ****** GET A CHEAP RC CAR (AMAZON AFFILIATE LINKS) ******
    - Magnet or HSP94186: amzn.to/3qNiDYv
    - Exceed Racing Desert Blue: amzn.to/2QLtrbp
    - Exceed Short course: amzn.to/2PydaC3
    - Exceed Truck: amzn.to/2PAp5j3
    - Exceed Monster: amzn.to/2PyAyj1
    ****** RASPBERRY PI AND CAMERA (AMAZON AFFILIATE LINKS) ******
    - Raspberry Pi 4 (4 GB RAM): amzn.to/36GqwXf
    - Raspberry Pi 4 (2 GB RAM): amzn.to/2Aj7Pg3
    - Raspberry Pi 3 Model B: amzn.to/2PwbMjn
    - Raspberry Pi 3 Model B+: amzn.to/2PxkWfn
    - Wide angle camera: amzn.to/2Pwc6P7
    ****** NVIDIA JATSON NANO (AMAZON AFFILIATE LINKS) ******
    - NVIDIA Jetson Nano 2GB Developer Kit: amzn.to/3cyIZrW
    - WiFi Adapter: amzn.to/3eDRl4u
    - Arducam Module 8MP: amzn.to/3tjff9j
    ****** SERVOS (AMAZON AFFILIATE LINKS) ******
    - Adafruit 16Ch Servo board: amzn.to/2LbxF7b
    ******** Visit my facebook page
    / tizianotutorials
    ** Go to my channel: goo.gl/BjLGnS
    ** Check out my latest video: goo.gl/ZhcNi4
    ** Check out my most popular video: goo.gl/5KMJnU
  • Věda a technologie

Komentáře • 330

  • @prandtlmayer
    @prandtlmayer  Před 5 lety +20

    Don't miss the other videos of the ROS Series: czcams.com/video/N6K2LWG2kRI/video.html

  • @tripleb5197
    @tripleb5197 Před 3 lety +2

    Excellent tutorial series.
    I'm using this to program a SunFounder PiCar-V with ROS. It uses a PCA9685 servo board to control the steering servo and a movable camera, and I was able control the camera and steering directly, but for the two DC motors, it connects to a TB6612 motor driver. Going to look for a DC motor driver to control them next. Thanks a lot!

  • @noeljohney6538
    @noeljohney6538 Před 3 lety +1

    Thank you Tiziano for this video. I am using this video as a reference for studying ROS for the past 8 months almost every weekend. There is a lot of content in this video which was explained in just 18 minutes.

    • @prandtlmayer
      @prandtlmayer  Před 3 lety +1

      A lot to absorb, I know. Hope this gives you a hint of how powerful of a tool ROS is

  • @CJsk8inHD
    @CJsk8inHD Před 4 lety +6

    Great video man, direct and informative. I will definitely be stepping through this tutorial.

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      This goes fast. Check out the others too!

  • @adarshgouda847
    @adarshgouda847 Před 3 lety +5

    Great work with this video... keep up the good work... i'm watching this at 0.25 playback speed and still its hard to pause and catchup... would greatly appreciate it you could drop the pace in your future tutorials... again... great work!

  • @noicthebrave
    @noicthebrave Před 3 měsíci +1

    Thank you so much - because of this video, I was able to get my car up and running in no-time! While there's still some kinks on my end, just getting the thing working @ all was quite a task. Much Appreciated! TY!
    Edit: For those of you wondering, yes, simply buying the PWM board VS trying to make a work-around is definitely worth the price point. I personally got 2 of them from Amazon for ~$13-15 USD, definitely made the lower-level set-up process of this project go a lot smoother and allowed me to move onto higher-level things faster. (Thak you again for this video :) )

  • @luqmansen
    @luqmansen Před 4 lety +2

    Nice tutorial, great example for my project, huge thanks !

  • @tevereAR
    @tevereAR Před 5 lety +4

    Hi Tiziano, thank you for your video series on Ros. It inspired me to start playing with it and gave me the basics. I'm trying to follow your tutorial but I have different hardware (rpi2, arduino and h bridge motor driver instead of escs, etc.) So it will take me a bit longer since I need to learn how to use rosserial and create my own packages from the beginning, but I think it is worth it.
    Keep up with the work, I really enjoy it.
    Ciao!

  • @nothanks7752
    @nothanks7752 Před 5 lety +29

    oh thank god. I'm going through a ROS tutorial on skillshare, and the guy spent half an hour explaining what you covered in the first 3 minutes.

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +11

      I love your comment. But it's hard to create the perfect tutorial. You can never please everyone. Follow the series and feel free to contribute with your suggestions

    • @nothanks7752
      @nothanks7752 Před 5 lety +5

      @@prandtlmayer It's just something that I'm noticing a lot with skillshare classes. The instructor will drag out the "setup" instruction, also splitting it into multiple videos, so first glance at their class is "200 videos, 15hrs of content", but everything is drug out and inflated with marginally better content than free youtube tutorials.

  • @LucasSchulzeRobotics
    @LucasSchulzeRobotics Před 5 lety +15

    A tutorial about ROS Control would be very interesting.

  • @ShmeegleSon
    @ShmeegleSon Před rokem

    Awesome, thank you for this series!

  • @enlyse
    @enlyse Před 5 lety +3

    Cool content Tiziano! Keep it up! :)

  • @HaniSharif
    @HaniSharif Před 4 lety +5

    Thank you.. really appreciate this❤️ keep teaching

  • @TharinduIshan-tj2wr
    @TharinduIshan-tj2wr Před rokem

    Great video series. Thank you so much Tiziano

  • @narpat007
    @narpat007 Před 5 lety +8

    It was really awesome !, if possible pls use gaming joystick to control the car and in your further testing pls include object recognition and collision avoidance using OpenCV.

  • @user-gv7nw9dj1w
    @user-gv7nw9dj1w Před 4 lety +1

    Good tutorial! Thanks!

  • @prandtlmayer
    @prandtlmayer  Před 5 lety +13

    I know guys that for a beginner the video is a little too fast. The purpose was to get things ready and have a general flavor of what's the series about. In the next video we'll go back to the main concepts and introduce a few more tools.

    • @mfatihozkan3503
      @mfatihozkan3503 Před 3 lety

      Hello Mr. Tiziano. I am trying to use rpi camera with ros melodic. How can i use kinetic packages with melodic. Can you help me ?

  • @junuhunuproductions
    @junuhunuproductions Před 4 lety

    GREAT tutorial! and your code is really clean too!

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      I am glad you find it useful. Robotics is awesome

  • @crisdeodates
    @crisdeodates Před 5 lety +3

    A very informative tutorial series by Tiziano. This will help in easily understanding the concepts of implementing real-world robotics applications in ROS. Expecting much more in the upcoming videos. You never let us down and is an inspiration 🙂

    • @prandtlmayer
      @prandtlmayer  Před 5 lety

      Thanks for your words. That has been a tough one

  • @jscottmoelling7636
    @jscottmoelling7636 Před 4 lety

    well done - thank you!!!

  • @NexxuSix
    @NexxuSix Před 4 lety

    Tiziano, First and foremost, thank you for this wonderful tutorial! About three years ago, I tried working with ROS, using just the Wiki Tutorial, but didn’t fully understand how ROS worked, let alone, how to drive a single servo. Although your tutorial was a bit fast, and took me several tries sometimes to get things right, tonight I am proud to say I have a Raspberry Pi 4 with a Servo Hat operating two servos via SSH from my tablet! This is a really big step for me! So, next I plan to put the assembly on a car as you suggest, and keep working with the tutorials. One question though: In the tutorial you install ROS on both Ubuntu laptop, and Raspberry Pi, but in the end of the tutorial I understand that the Donkey Car can be controlled through SSH alone, from any tablet. What does the ROS installation on the laptop do for the Donkey Car? Thank you for answering my question!

    • @prandtlmayer
      @prandtlmayer  Před 4 lety +1

      Thank you for your words. Great question: the reason why I went to the trouble of using the laptop too is because I want to show how to make Ros work in a network. This is a tutorial and the idea is that, in general, you have multiple computers and robots connected together

  • @quentinwiame9344
    @quentinwiame9344 Před rokem

    Thanks bro for your help !
    PS : We are french

  • @ConsultingjoeOnline
    @ConsultingjoeOnline Před 2 lety

    Great video thanks!!!

  • @CodingScientist
    @CodingScientist Před 3 lety

    This is FANTASTIC Tutorial, it would be helpful if you could show the circuit / pin level diagram to build the Robot, each pins connecting which components etc

  • @cooldude6651
    @cooldude6651 Před 4 lety +1

    Hi, I'm a new ROS developer and I love these tutorials. I was just getting started with ROS2, and I was wondering if there was any form of ROS2 tutorial series coming down the road. Most documentation I've found was either vague or vague but in C++, but you're very good at explaining the code.

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      Not planning for that right now, but maybe in the future.

    • @Flix-f6q
      @Flix-f6q Před 3 lety

      please send a link here to the vague documentation in C++. Thanks.

  • @harithdeshan6607
    @harithdeshan6607 Před 3 lety

    Great stuff

  • @arsalanwasim4177
    @arsalanwasim4177 Před 5 lety +1

    Salam and thanks for the tutorial

  • @pradiptabiswas2393
    @pradiptabiswas2393 Před 5 lety

    Loved your first tutorial. I have a Redbot and an Adafruit I2C motor control board lying around at home. Can I use that for this whole tutorial? It uses two DC motor. Will it be complicated to uses DC motor instead of a servo motor to follow your tutorial?
    Thank you.

  • @dhvanitdesai1044
    @dhvanitdesai1044 Před 5 lety +2

    will you do a series for mavros like you did for dronekit ??

  • @marcofe82
    @marcofe82 Před 4 lety

    Ciao Tiziano, gran video e grandissima pronuncia! Mi sa che diventeremo presto amici :)

    • @prandtlmayer
      @prandtlmayer  Před 4 lety +1

      Ottimo, segui anche le "due chiacchiere con gli sviluppatori"

  • @boardsdiscovery5803
    @boardsdiscovery5803 Před 5 lety

    Speed Light is great for me :) I don't like wasting time in not so important details. Nel video all'inizio non capivo l'assenza del driver per i motori cc. Poi ho scoperto che il motore per la trazione è un brushless! ora tutto è chiaro. Bello stile. Complimenti.

    • @prandtlmayer
      @prandtlmayer  Před 5 lety

      Nel prossimo aggiungeremo i sonar

    • @boardsdiscovery5803
      @boardsdiscovery5803 Před 5 lety

      intendevo dire che le lezioni veloci mi piacciono :)

    • @prandtlmayer
      @prandtlmayer  Před 5 lety

      Avevo capito. Sono stato troppo succinto nella risposta. Volevo dire, che il prossimo video sarà veloce perché aggiungeremo i sonar e spiegherò il tutto molto velocemente. Anche a me piacciono video veloci

  • @sainco3036
    @sainco3036 Před 5 lety +1

    thank you.

  • @diegocamilopenaramirez6101

    Thanks you

  • @saviopullkotil2270
    @saviopullkotil2270 Před rokem

    Hello, great explaination! I had a doubt, in my robot car i want to control the 4 dc motors (2 on each side) and there is no servo. We want to use a differential drive kind of motion to take a turn so how should i change the processes here?

  • @azouaousmile
    @azouaousmile Před 4 lety +1

    Really nice video. Thank you so much for uploading it. I was wondering what version of Ubuntu are you using on your laptop?

  • @benjamingp7442
    @benjamingp7442 Před 3 lety

    Great video! I have this all working on a 4x4 motor bot and using rostopic pub -1 /servos_absolute i2cpwm_board/ServoArray "{servos:[{servo: 1, value: 1000}]}" works. My motors are 1,3,5 and 7. What I can't work out is how to make them run in reverse!

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      Nice work! Reverse depends on the motor controller. Usually a reverse command makes the controller to enter a brake, while reversing twice enters the actual reverse

  • @benaliamima9903
    @benaliamima9903 Před 4 lety

    Hi Tiziano, thank you for your videos on ROS. I want to know how to control DC motor not servo motor using the i2c pwm board package to drive the car forward and backward

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      You need a DC motor driver, and most of them accept pwm input.

  • @haziqahmad6802
    @haziqahmad6802 Před 5 lety +5

    Thanks, I like your video. Can you create a video tutorial about how to connect ROS + Raspberry Pi 3 + LiDAR + motor control. I like to build an autonomous RC car using LiDAR.

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      Now that is on the line. We are going to have some fun with sonar pretty soon also

    • @GurusCooking
      @GurusCooking Před 3 lety +1

      awesome, even i was thinking of asking @Tiziano Fiorenzani to do this video, would be of much help he's a great teacher

  • @rbrobots6871
    @rbrobots6871 Před 3 lety

    Thank you very much. I found this very useful :)

    • @johnstreety6682
      @johnstreety6682 Před 3 lety

      Did you get yours to run? I seem to be having a problem with the i2c chip. I have tried two different brands. Both work with the donkey car software but not ROS.I did get one of them to steer with ROS, but not the dc motor I am guessing it has to be the real deal, from Adafuit to work with ROS

    • @rbrobots6871
      @rbrobots6871 Před 3 lety

      @@johnstreety6682
      Yes I did, I'm not using the donkey car, but my own robot I've made with raspberry pi. I was also having a problem with the i2c, but this library worked well for me: gitlab.com/bradanlane/ros-i2cpwmboard.
      I am using the PCA9685 driver connected to SDA and SLC in RPI GPIO headers. I'm using it to control 2 mini servos. If you use the command 'sudo i2cdetect -y 1' you should see x040 and x070. I used following commands after catkin_make and running the necessary installations from this video.
      * rosrun i2cpwm_board i2cpwm_board
      * rostopic pub /servos_absolute i2cpwm_board/ServoArray "servos: - servo:2 value 200"
      It looks to me like the values from 0 to 360 work for me, but I need to look further into it.
      [I checked and my range is 160-500]
      I did have a few problems initially where I wasn't seeing any movement, but after charging my batteries and checking the connections a few times, it worked fine.

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      Sorry for that. In reality you could skip the entire i2c device and control the servo directly from 2 GPIOs of the Raspberry Pi using a packet like servoblaster. You'd need toy write your own node and a little bit of rewiring

  • @garapatianushadevi3427

    Just loved them! :) Can you please help me with this: If my motor control board has PWM interface, (not I2C), what are the changes to be made in low-level RC car code?

    • @prandtlmayer
      @prandtlmayer  Před 2 lety

      Create a node that interfaces with your specific motor. This is you first step. Then the donkey low level control publish a topic that your new node subscribes to

  • @Brain_Robotics
    @Brain_Robotics Před 5 lety

    Great Video! I hope to see more of these!!!

    • @prandtlmayer
      @prandtlmayer  Před 5 lety

      Sure. The next will cover debugging tools like rqt

  • @MattCoOST
    @MattCoOST Před 2 lety

    I love your voice

  • @hfe1833
    @hfe1833 Před 4 lety +1

    Thanks for the video tutorial, whats the advantages of using ROS because i dont use it before i have similar project but not using ROS??

    • @prandtlmayer
      @prandtlmayer  Před 4 lety +1

      ROS Is a standard in today's robotics. If you want you can use your own libraries, you just need to write everything from scratch, communication, navigation, control...

  • @KanagachidambaresanGR
    @KanagachidambaresanGR Před rokem +1

    Hi.,. please post tutorial for robo car control with rp-lidar

  • @anukeshambatkar6255
    @anukeshambatkar6255 Před 5 lety

    sir
    how can we make a user follower robot using raspberry pi and camera for shopping purpose

  • @benaliamima9903
    @benaliamima9903 Před 4 lety +1

    Hi Tiziano, thanks for the awesome tutorial
    I want to know if i can implement this with my PiCar of sunfounder ?

    • @prandtlmayer
      @prandtlmayer  Před 4 lety +2

      I believe so, just some modifications to the actuators and you should be fine

    • @benaliamima9903
      @benaliamima9903 Před 4 lety +1

      @@prandtlmayer thank you

  • @doominicbaril
    @doominicbaril Před 5 lety

    Very nice video! I will follow this series with passion. I would also appreciate if you split this video into detailed parts of the tutorial. I got stuck at the ssh login part on the raspberry pi as I cannot access the internet with it to download the necessary files. Both my computer's and pi's connection are busy to perform the ssh login.

    • @prandtlmayer
      @prandtlmayer  Před 5 lety

      That is exactly what I made going to do!

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      Ssh is pretty straightforward. I just connected the pi with an Ethernet cable to the router, the same you connect with the computer. Than in Windows you can use putty, in Linux you just type ssh username@ipaddress . I use the .local hostname so you don't need to know the ip address. For a norma Raspberry Pi with raspbian the default would be ssh pi@raspberrypi.local with password raspberry

    • @doominicbaril
      @doominicbaril Před 5 lety +1

      ​@@prandtlmayer​ Thanks for this answer! I am once again stuck. I created a low_level_control.py file in my donkey_lld directory. I have tried to compile it using catkin_make but I cannot seem to run it using the rosrun _llc_low_level_control.py command. I get the "Couldn't find executable named low_level_control.py" error. The command "rosrun i2cpwm_board i2cpwm_board" runs fine though.

    • @doominicbaril
      @doominicbaril Před 5 lety +1

      For the file, I created a file named low_level_control.py and copy/pasted those contents in it : github.com/tizianofiorenzani/ros_tutorials/blob/master/donkey_car/src/low_level_control.py

    • @doominicbaril
      @doominicbaril Před 5 lety +1

      I see that you seem to cover this in your next video. Forget my question, I will probably understand better after the next video!

  • @jonathansteele7349
    @jonathansteele7349 Před 4 lety

    Great Tutorial Tiziano. Did you ever have the error that the servo works and changes the stering angle but the throtle motor does not ? Do you have any troble shooting sugestions ? I used the rostopic pub /cmd_vel geometry__msgs/Twist "linear: X 1.0 and then echo the servos_absolute msgs show servos 1 value is 378. Thank you for your time Tiziano or if anyone else had this problem I would appreciate the help.

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      That is weird, tell me more about it. I would first try to see whether just applying a pwm (that you can generate either through the servo board or using some external source)

  • @ajelvani
    @ajelvani Před 4 lety +1

    #0? A true computer scientist

  • @benaliamima9903
    @benaliamima9903 Před 4 lety +1

    Really appreciate your videos. Thank you Mr. Tiziano
    I can't drive my Picar-s using your code. i have one servo motor that control the front wheels (1) and two DC motors for rear wheels (servo =5 for the left wheel and 6 for the right).
    when i run your low_level_control.py code only i can control the front wheel by servo 1. but the two rear wheel did not move. I have 3 servo in my case and when i modify your id steering from 2 to 5 the left wheel move normally but the right one doesn't. What should i do to control the car as you. i hope that you reply me.

    • @prandtlmayer
      @prandtlmayer  Před 4 lety +2

      That has nothing to do with ROS: It simply is a matter of mapping the controls to your own actuators. Create a simple script for yourself where you test the servos to understand how to map them

  • @gzizouhassine5777
    @gzizouhassine5777 Před 5 lety +1

    Can you make video on autonomous drone based on open cv, dronekit, neural network, ros plz

  • @priyanshugupta8552
    @priyanshugupta8552 Před měsícem

    can i use ros noetic instead?

  • @erhanwarsi2185
    @erhanwarsi2185 Před 2 lety

    Brilliant sir wonderful but in my 3 dof robotic arm there are two servo,s i am not aware from python script please sir can you help me?

  • @fransflorenza9708
    @fransflorenza9708 Před 2 lety

    can someone help me pls? i have an error while install servo package. the line said: FATAL error i2c/smbus.h: no such file or directory. note: im already install the i2c library and success...

  • @ozcankosar6206
    @ozcankosar6206 Před rokem +1

    Does the ros-i2cpwmboard package support ROS Melodic?
    Will it work if I just install donkey_car and ros-i2cpwmboard on a Jetson TX2 with ROS Melodice?

    • @prandtlmayer
      @prandtlmayer  Před rokem

      I don't know. If you don't find it when you try to install you can either build it from source or you can ditch the i2c servo adapter and use an Arduino

  • @thebeatgeek1
    @thebeatgeek1 Před 4 lety

    Thank you for creating this tutorial it was super helpful. I was able to follow you video, but I at the point where you create the low_level_control.py file and I do not know how you created that file and where you put it. I thought I put it in the catkin_ws/src/donkey_llc location but ros says that the file is not executable.

    • @squirrelbrains2197
      @squirrelbrains2197 Před 4 lety

      Did you tell your Raspi that this file can be executed? To do so, navigate to the folder of your file than type "chmod +x low_level_control.py " into the terminal (without parenthesis).

  • @sangeethcp2119
    @sangeethcp2119 Před rokem

    Sir can u help me to get noetic operating system code for above robotic project ..

  • @ruveydadilara
    @ruveydadilara Před 17 dny

    How did you install ros2 on raspberry pi 5?

  • @johanthps9647
    @johanthps9647 Před 4 lety +1

    can we get the schematic diagram on which pins should we connect the servo control board to?

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      I am pretty sure I show them in the video. You can always refer to the official RPi pinout page: www.raspberrypi.org/documentation/usage/gpio/

  • @user-tn4io6hj2b
    @user-tn4io6hj2b Před 4 lety

    It was a really good lecture. And can you also teach using Jetson Nano? Or can I try the lessons with Jetson?

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      Most of the things I showed apply to any Linux board

    • @ikhtiyor
      @ikhtiyor Před 4 lety

      is ping working ?

  • @hosseins5179
    @hosseins5179 Před 2 lety

    Hello. Thanks for good tutorial. Can I install ROS on raspberry pi 2+?

    • @prandtlmayer
      @prandtlmayer  Před 2 lety

      The question is whether you can install Ubuntu. Check where I source my SD card from to see if they have an image ready

  • @divyaprakashbiswas8781

    Sir, thank you for sharing this video.
    What editor are you using to edit the donkey_llc.py at 10:50, because you have ssh into raspberry pi?

  • @patrickpuentelml4958
    @patrickpuentelml4958 Před rokem

    Hi Tiziano.
    I have a question because at the moment ROS had new distros called Noetic & Melodic. So, in this nice tutorial you are using ROS KINETIC an old distro. As a fully beginner (dummy) of ROS which of the new distros is the equivalen of KINETIC? and What's the difference between Noetic & Melodic distros?. At the moment I'm learning all the basic thing of ROS with Noetic and I need clear my mind when robot devoloper use Noetic, Melodic or Kinetic. HELP PLEASE!

    • @prandtlmayer
      @prandtlmayer  Před rokem

      No problem. For many uses there is not much difference and it depends on your operating system. As I had to use Ubuntu 16, the only choice was Kinetic. But if you use a more modern release then you use the ROS distro that installs on your OS. You should be able to learn and port your packages among distros

  • @jamespowell7231
    @jamespowell7231 Před 5 lety +1

    This tutorials will be easy to follow......jumps into hyper-drive.

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      And yet it turned into a 20 minutes video. But don't worry, the next episodes go back to everything I explain here and are much slower

    • @jamespowell7231
      @jamespowell7231 Před 5 lety

      @@prandtlmayer:-) I'm trying to pull what I can to get a motor controller working.

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      Feel free to publish your projects on my FB page and share your pain there

  • @fulvian
    @fulvian Před 5 lety

    ciao tiziano!
    grazie sempre per i tuoi video : )
    sto seguendo il tuo tutorial per recuperare una vecchia auto rc kyosho 1-10 (è talmente vintage che come "esc" ha un normalissimo servo con squadretta + braccetto che fa ruotare un regolatore a resistenza variabile). vorrei fare un po di pratica con ROS per poi provare a fare un tracked. speriamo bene...

    • @fulvian
      @fulvian Před 5 lety

      Scusa Tiziano, potresti dirmi a quali gpio della Raspberry hai collegato la i2cpwm board? Dal video non è chiarissimo e in giro ho trovato diversi schemi di collegamento. Grazie Fulvio

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      Io mi riferisco sempre a questo: cdn.sparkfun.com/assets/learn_tutorials/4/2/4/header_pinout.jpg

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      i2c sono pin 3 (SDA) e pin 5 (SCL)

  • @xHnTRxCLan
    @xHnTRxCLan Před 3 lety

    Hi Tiziano, thanks for the great tutorial !
    I followed everything you did in the video, but at 14:40 I got this error " Command 'rostopic' not found,"
    I checked the ubiquityrobotics's website and I found that they only supports Ubuntu 16.04, and I'm using Ubuntu 20.04. So is there any possible way I can make this work in the version I'm using ?

  • @ozcankosar6206
    @ozcankosar6206 Před rokem +1

    Hello . I want to control it with my own python code. do you have source code?

  • @MikeNewham
    @MikeNewham Před 5 lety +1

    Hey folks,
    My RC Car (a Tamiya TT-01 Type E) chassis is going 'toooo fast' when I control it with the keyboard :)
    I wonder if a parameter needs to be adjusted in 'class ServoConvert ():' within 'low_level_control.py' (as seen at 10:56)
    Should 'range=90' be increased? Or maybe the PWM frequency should be lowered (where would that setting be?).
    - When running the 'telex-twist-keyboard-node' - the Tamiya accelerates quickly from 'stationary' after pressing 'forward - I'.
    I then have to hit 'z' key instantly to 'decrease' speed multiple times.
    - Also, reverse does not work from 'stationary' after pressing 'reverse - ').
    I have to increase 'reverse' speed by hitting the Z key multiple times to get the Tamiya moving backwards.
    - I found a centre-value of 298 to be best for 'stationary' between both servos fro steering and throttle.

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      The center value needs to be calibrated. You might want to write a script for that or a parameters file. In the file you could also set the values for saturating your commands. I wouldn't limited the servo range, but the commanded speed. For the reverse, that is true and it depends from the motor controller. You need to go back for the break, theen idle , then back again for backing up. Try also to incorporate the joystick rather than the keyboard

  • @SrijitoGhosh
    @SrijitoGhosh Před rokem

    Hello sir. I know, it's a bit late. I mean, its 4 years since the upload of this video but may you please answer my question, if I can use WSL for installing ros packages?

  • @duckietown2447
    @duckietown2447 Před 4 lety

    Appreciate this tuorial. So we installed melodic and when we source /opt/ros/melodic/setup.bash .
    An error occured:: /opt/ros/melodic/setup.bash:.:8: no such file or directory: /home/badz41/setup.sh
    We would appreciate your help

    • @squirrelbrains2197
      @squirrelbrains2197 Před 4 lety

      What directory where you in when you typed that? If you still have this issue, you may want to try to type "cd" first to go to your home directory and than try again.

  • @prasannamg2449
    @prasannamg2449 Před 3 lety +1

    Hi,
    I receive a no smbus.h error during catkin make. I have installed the libi2c-dev package,however i am unable to locate the i2c folder in the root directories. I searched for available solutions but the servocontrol package as mentioned had all the requisites....... Could you let me know which version of Ubiquity iso you had used here? Ill try with that OS version........or maybe an alternative help would do.I could locate smbus files but all were python related...No smbus.h

    • @jcmay
      @jcmay Před 3 lety

      i have the same problem

  • @wesleybatista4024
    @wesleybatista4024 Před 3 lety

    when I compile "catkin_make"
    the following error appears: "error:‘ i2c_smbus_read_byte_data ’was not declared in this scope
    oldmode = i2c_smbus_read_byte_data (_controller_io_handle, __MODE1); "
    can anybody help me ?

  • @Jiceism
    @Jiceism Před 5 lety +1

    Hi Tiziano, thanks for these videos! Quick question before I wipe my computer. I am using Ubuntu 18.04, and ROS isn't supported on this version :(
    Anychance I can use 18.04 with another ROS distribution?

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +2

      Sure, you can use latest versions of Ros. My examples are pretty basics and you should be able to transfer the coding and knowledge to any other distribution, like Melodic. Try and post here your results. Or better on my Facebook page @tizianotutorials

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      Check this out: answers.ros.org/question/76279/different-ros-versions-on-multiple-machines/

    • @Jiceism
      @Jiceism Před 5 lety +1

      @@prandtlmayer Thanks for your reactivity! I will check out as soon as I have some time and post results here and in Facebook page too!

    • @prandtlmayer
      @prandtlmayer  Před 5 lety

      That's a very interesting question

    • @Jiceism
      @Jiceism Před 5 lety +1

      Hi @@prandtlmayer , so I took time to go over minor HW issues, and I can confirm using Melodic on my desktop works without any issue with the Donkeycar!

  • @rouinisami3427
    @rouinisami3427 Před 3 lety

    i will use control L298N Driver with ROS but i don't find the node of L298N driver on github

  • @narendrashiva9360
    @narendrashiva9360 Před 3 lety

    Will it work on different networks? Means can we control it wherever we r in the world?

    • @prandtlmayer
      @prandtlmayer  Před 2 lety +1

      Yes, you just need to make sure it is reachable from you. Check on the Ros forum

  • @trylatdar4012
    @trylatdar4012 Před 4 lety

    can you explain how to acces robot folders using samba plz ? beacause I can't acces it directly on my laptop like youy did. I'm on ubuntu 18.04 for the laptop and the robot is on the latest image onthe the website you link to us. Thanks

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      You need to install and setup samba on raspberry pi. It should already be included in Linux

  • @AsimNaskar
    @AsimNaskar Před 2 lety

    Very detail. But still could not understand how the Pi board is receiving Transmitter signal? Have I missed that part?

    • @prandtlmayer
      @prandtlmayer  Před 2 lety

      The only commands that are coming to the pi are from wifi. The receiver has been disconnected. I actually have a video now that shows how to integrate the receiver with an Arduino

  • @mfatihozkan3503
    @mfatihozkan3503 Před 3 lety

    Hello Mr. Tiziano. I am trying to use rpi camera with ros melodic. How can i use kinetic packages with melodic. Can you help me ?

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      In theory you should be able to, as long as you have one roscore. What kind of problem you have?

  • @atrocious00
    @atrocious00 Před 3 lety

    May I ask what the reasoning for the steering being set to z axis?

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      standard robotics frame: x: right, y: forward, z: up

  • @sujitmahadik2297
    @sujitmahadik2297 Před 5 lety +1

    Plz Can you make video on Autonomous car based on neural networks and open cv

  • @johnstreety6682
    @johnstreety6682 Před 3 lety

    I have followed your tutorial all the way up to the part where you get the wheels to move. When I run it, I get no errors but the wheels don't move. I thought it might be the batteries or some other hardware issue. So I reinstalled the Donky car software and ran the calibration for 3 hours last night(mainly to make sure the battery was good). I guess I was thinking something might have changed since you made this video. However, I did use the most recent version of of ubiquity which was 2020-11-07-ubiquity-xenial-lxde. Can you think of anything that might cause this odd scenario?

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      Let's break the problem into pieces. First: do the motor spin when you use the normal radio receiver?

    • @johnstreety6682
      @johnstreety6682 Před 3 lety

      @@prandtlmayer I got the wheels to move using the donkey car software. I am thinking it may have something to do with a Chinese version of the pca9685. I ran into that with Arduino and some other chips

  • @denq1016
    @denq1016 Před 3 lety

    How did you install ROS in raspberry ?
    Do use ubuntu or raspbian in raspberry ?

  • @ypm7369
    @ypm7369 Před 3 lety

    please make a tutorial of how to control the same robot car with ROS kinetic and hand gestures !!!

    • @johnstreety642
      @johnstreety642 Před 3 lety

      Did you have any trouble getting you DK to move with ROS?

  • @marcosmit97
    @marcosmit97 Před 3 lety

    rosrun i2cpwm_board ? Where do I get this file

  • @taichi-maker2207
    @taichi-maker2207 Před 4 lety

    Hi Tiziano, Thanks for your tutorial. However, I have a problem compiling ros-i2cpwmboard. I tried this both on the ubiquity ubuntu ros bundle which is mentioned in your video. I also tried this on my own ROS RPI3B build. My setup is ROS Melodic + Ubuntu 1804. I have no problem compiling other pacakage I created on my RPI ROS enviroment. The compiling error message is very long so I am just pasting the bottom line of the erro messages which is as the following "
    make[1]: *** [ros-i2cpwmboard/CMakeFiles/i2cpwm_board.dir/all] Error 2
    Makefile:140: recipe for target 'all' failed
    " I am just hoping your or someone could tell me why I could not get it comiled like your video. Thanks!

    • @prandtlmayer
      @prandtlmayer  Před 4 lety +1

      Did you download the package from my repo?

  • @ozcankosar5416
    @ozcankosar5416 Před rokem +1

    My car has a hard time going backwards. where do i change the values?

    • @prandtlmayer
      @prandtlmayer  Před rokem +2

      Usually you need to command back for the break and back again for actually backing out

  • @abdelrahmanemam5559
    @abdelrahmanemam5559 Před 2 lety

    in minute 8 when i try to rosrun the control borad it give me fatal error cant set pwm and some other errors and cant open i2c bus

    • @prandtlmayer
      @prandtlmayer  Před 2 lety

      Then you will love the latest video czcams.com/video/WLVfZXxpHYI/video.html

  • @leidydanielagomezsilva3286

    hello your video is very interesting, you can say the references of the components you used. thank you

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      I think I wrote all in the description. Check it out

  • @kartiksinghal810
    @kartiksinghal810 Před 3 lety

    I am getting an issue with the i2c when using PCA9685 driver. the Arduino IDE is able to detect the i2c connection but it is not accessible from i2cdetect in the terminal. [ROS Melodic on Ubuntu 18.04 in VM] Any leads?

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      I have not tested on melodic but I don't think that is the issue. Not a clue, sorry

  • @meheras7512
    @meheras7512 Před 3 lety

    How can we follow a fixed trajectory using a GPS system?

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      Throttle: command forward. Steering angle: command with a PID respect to the deviation from the straight line

  • @ismaelleoncumplido5075

    Which ubuntu are you using for kinectic?

  • @florianneugebauer3042
    @florianneugebauer3042 Před 3 lety

    while running teleop_twist_keyboard I get the output: Waiting for subscriber to connect to /cmd_vel.
    I checked this topic with rostopic info /cmd_vel, and yes there os a Publisher (/teleop_twist_keyboard) and a Subscriber (dk_llc). I checked this on both sides(robot and local laptop) both are the same. So why does /teleop_twist_keyboard thinks there is no subscriber??

    • @prandtlmayer
      @prandtlmayer  Před 3 lety

      That is a mystery actually, have you figured it out?

  • @enricosaccheggiani3192

    Hello Tiziano , I have created a robot car from 0 but the raspberry PI uses Raspbian. Do you think that is possible to run ROS on a Raspbian platform ? Thanks

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      Use Ubuntu and save yourself frustration in installing Ros

  • @henryantonioquispepizarro2291

    Now, i'm using ROS Melodic. If i want to development this project, Is it necesary to change MELODIC to KINETIC?

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      Packages are ROS distribution dependent. ROS distro also depends on the Linux version. Check the wiki page of the packages you want to verify whether they are available or not.

  • @vinayakaraju2774
    @vinayakaraju2774 Před 4 lety

    Can know the connections between i2cpwm and raspberry pi 3

    • @prandtlmayer
      @prandtlmayer  Před 4 lety +1

      Standard i2c, like images.app.goo.gl/EVyPutNn7QnMokGV8

  • @antoniovigoni4312
    @antoniovigoni4312 Před 5 lety +1

    Very nice video, but you go too fast for me :) Thanks for your tutorials. Ti seguo ;)

    • @prandtlmayer
      @prandtlmayer  Před 5 lety +1

      Thanks, the thing is I wanted to cover the full thing in less than 20 minutes. Otherwise it gets too long. But in the next video I will go back and cover some basics again

  • @co4erol
    @co4erol Před 2 lety +1

    4:28 small typos fix. He write [catckin_ws_src] instead of [catkin_ws_src]

  • @tuantrananh2967
    @tuantrananh2967 Před 5 lety

    I am having trouble sharing folders from ubiquityrobot (rasp pi) with ubuntu 16.04. I tried many ways but was not successful. Please help me. thank you!

    • @prandtlmayer
      @prandtlmayer  Před 5 lety

      I had no problem with that. Did you set the password with smbpsswd?

  • @ChoupyPeluche
    @ChoupyPeluche Před 4 lety

    Hey mate ! your tutorial is awesome but EVERY step got me tons of problems haha. I managed to overcome every problem but I'm totally facing a wall right now... I don't know why but when I do the "rosrun i2cpwm.... i2cpwm...." part, I get fatal messages saying it's not possible to connect to the i2c-1 thing. But when I check i2cdetect -y 1 on the system I get the good response with the connected pins. So I'm not sure why it wouldn't connect (I'm using rpi4). If you have any answer I'd be glad to read it because I have really no idea :( . The i2c works because I tested the system with raspbian and basic donkey tutorial got my motors running.

    • @prandtlmayer
      @prandtlmayer  Před 4 lety

      I haven't tried on a Pi4 but I'm sure it's the same as my 3. Try and use one of their python test scripts

    • @fransflorenza9708
      @fransflorenza9708 Před 2 lety

      hi, i get the same problem too, have you solved this problem?

    • @fransflorenza9708
      @fransflorenza9708 Před 2 lety

      solved by execute as super user

  • @percho97
    @percho97 Před 2 lety +1

    Hi i'm following your tutorial but i'm facing a problem. The file smbus.h doesnt exist. I try to reinstall i2c-tools, libi2c-dev etc.. but noting create this file.. i dont know how to solve it.. if you have an idea..