simulating a LIDAR sensor from scratch with python | SLAM SERIES

Поделиться
HTML-код
  • Опубликовано: 24 июл 2024
  • in this video 🔥we will present a step-by-step tutorial on simulating a LIDAR sensor from scratch using the python programming language, this video comes as a part of a series focused on SLAM simulation.
    📁 Files :
    floor plan 1: imgur.com/NY03cUE
    🗃️ source-code: ko-fi.com/s/86d7053723
    💻 my services are available on :
    Fiverr: www.fiverr.com/mouad2021
    🔗 Playlist :
    1 - introduction: • simulating SLAM from s...
    2 - LIDAR : • simulating a LIDAR sen...
    3 - Feature Extraction (theory) : • Feature Extraction fro...
    4 -Feature Extraction (code) • Feature Extraction fro...
    5 - Data association : • Data association for S...
    ⏱️ TimeStamps :
    0:00 intro
    0:36 how does LIDAR work?
    1:50 preparations
    3:50 coding
    14:59 results/outro
    🏷️ HashTags:
    #LIDAR #SLAM
  • НаукаНаука

Комментарии • 93

  • @hobby_coding
    @hobby_coding  2 года назад +5

    you can now get the source code from : ko-fi.com/s/86d7053723

  • @alhdlakhfdqw
    @alhdlakhfdqw 2 года назад +6

    thank you very muh for your wonderful video with simple explanation and great animations! :)

  • @aameaame7973
    @aameaame7973 3 года назад +1

    Amazing content! Thank you so much for sharing!

  • @angeloespinoza9850
    @angeloespinoza9850 2 года назад

    Hi Algobotics, I am currently basing on this project to do a Visibility Polygon. Right now I have got a point on the same map as you have but now with red lines emanating from it as lidar sensor. I want to detect collision from this emanating lines to the borders of the image. How could I do it?

  • @tranquochung1995
    @tranquochung1995 Год назад

    Thank you very much Mr, Algobotics. Your video is very helpful.

  • @ahmedbenyoucef3238
    @ahmedbenyoucef3238 Год назад

    perfect, Bro 👍
    you have a good explaining method.
    good luck.

  • @DubstepJeroen
    @DubstepJeroen 2 года назад +1

    Great video and very nicely explained! Only trouble I'm having is the fact that when i start my simulation the window doesnt show any obstacles. Ive been looking for some time now. anyone got some tips?

  • @AbcDef-oe8sj
    @AbcDef-oe8sj 3 года назад

    can u help me with this...i got an error that i couldnt rectify...
    it says...
    'NoneType' object is not subscriptable
    in show_sensorData() method would be really helpfull if u could help me

  • @badcandy1337
    @badcandy1337 10 месяцев назад

    Subscribed. man you are amazingly smart

  • @mathewtomy3823
    @mathewtomy3823 2 года назад

    Is this useful for doing object detection using lidar

  • @tommytran5962
    @tommytran5962 2 года назад

    thank you so much.

  • @RahulKumar-mh4bk
    @RahulKumar-mh4bk 3 года назад +6

    Love your videos 💕
    It would be nice to give some more theoretical details as animated supplementary videos.
    Hopefully videos will be released soon.

    • @hobby_coding
      @hobby_coding  3 года назад +2

      thanks for tuning in. what do you mean by theoretical details , math ?

    • @RahulKumar-mh4bk
      @RahulKumar-mh4bk 3 года назад

      @@hobby_coding yes that would be great 😊

    • @lukeschmitt1773
      @lukeschmitt1773 3 года назад +1

      @@hobby_coding It would be interesting to see concepts like Extended Kalman Filters or Particle Filters covered in your style. Great work!

    • @harsh35plays
      @harsh35plays 2 года назад

      dude can you help me with the code?

  • @sriramsriram9246
    @sriramsriram9246 2 года назад

    which type of controller is used in this robot

  • @MohammadHefny_HefnySco
    @MohammadHefny_HefnySco 2 года назад +1

    Many thanks for this great video

  • @AlaEddine19176
    @AlaEddine19176 3 года назад

    Hi Sir i need some help to build a small simulation app for study work can you help me ??

  • @manavpatil5699
    @manavpatil5699 2 года назад +1

    your knowledge is superb remembered only entartainment videos has more view and subscriber but for me you are hero

    • @hobby_coding
      @hobby_coding  2 года назад

      loved your comment, thanks for watching.

  • @jamilahmarramduarte1575
    @jamilahmarramduarte1575 Год назад

    Hi sir how to connect this code into object detection?

  • @Hanan-qz8ms
    @Hanan-qz8ms 3 месяца назад

    I use rplidar c1.. when i run it apper a black window and the lidar doesn't connect or even work!😢 please help me

  • @raoul9684
    @raoul9684 3 года назад +4

    This is an interesting content!

    • @hobby_coding
      @hobby_coding  3 года назад +1

      thanks abderraouf , happy ramadan .

  • @antonwezels9403
    @antonwezels9403 4 месяца назад

    Hey are you still on fiverr available?

  • @vardhanviswanath1234
    @vardhanviswanath1234 2 года назад

    When I hover my mouse in the pygame window, it's displaying red lines and dots in random order in the pygame window, instead of displaying the map. Please help me out.

  • @elifkarabulut5740
    @elifkarabulut5740 2 года назад +1

    Is it possible to insert a video or series of images to this code? What I want to do is, having two objects on the plan and make them look like they are moving. So, I thought about creating a video and uploading it or inserting series of images and creating a transmission between them? Please help me.

    • @hobby_coding
      @hobby_coding  2 года назад

      yes, but make sure the colors are the same.
      you can make an animation usign after effect to suit your purposes and export this animation in the form of images.
      at each iteration show one frame and you are done.

    • @elifkarabulut5740
      @elifkarabulut5740 2 года назад

      @@hobby_coding and what if I want to add a moving object? Can I simpy create another class named 'object' and move this object on this plan? I want object to be able to recognize obstacles and change the direction accordingy.

  • @kadaliakshay6770
    @kadaliakshay6770 3 месяца назад +1

    hey is there any way of doing this with camera but without a LIDAR? because I've done some research and it kinda looks like it's possible...

    • @hobby_coding
      @hobby_coding  Месяц назад

      Yes, autonomous driving can be done with a camera. Tesla for example uses cameras, radar and ultrasonic sensors.

  • @user-vn1ix3ji3t
    @user-vn1ix3ji3t 4 месяца назад

    Hello!
    I wrote all the code like yours, but it doesn't display, scan, or display an image.

  • @princerajput2852
    @princerajput2852 3 года назад +1

    how we can create 3d/2d map from lidar(ply/.bag) file using python

    • @hobby_coding
      @hobby_coding  3 года назад

      i dont have a lidar sensor , that's why i decided to simulate one :)

  • @nashrllah
    @nashrllah Год назад

    how can i combine it with vrep

  • @louisdiedericks1528
    @louisdiedericks1528 3 года назад +6

    @Algobotics Love the video, can't wait to see what you do next.
    I had two errors in the code.
    1) " TypeError: 'bool' object is not iterable" in the dataStorage function.
    fix: add an if function before the for loop in the dataStorage function
    if data!=False:
    for element in data:
    ...
    ...
    2) The window did not close after the close button (the x next to minimize and maximize) in the corner was pressed.
    fix: add pygame.quit() after the while loop in the main file.
    It is also a good idea to add pygame.init() at the beginning of each file to ensure no "video system not initialized" errors.

    • @hobby_coding
      @hobby_coding  3 года назад +1

      thanks, Louis, i will pin your comment to help people find the solution to some bugs. regarding the if condition I probably just forgot to add it in the video.

    • @harsh35plays
      @harsh35plays 2 года назад

      Can you please share your code? I am having a hard time debugging

    • @elifkarabulut5740
      @elifkarabulut5740 2 года назад

      I have done what you say but it still does not work. :/

    • @DubstepJeroen
      @DubstepJeroen 2 года назад

      @@harsh35plays did you figure it out yet?

  • @ahmedchakouri3498
    @ahmedchakouri3498 3 года назад

    hello everyone I hope you all fine I have a question, how to receive data from LIDAR LMS111-10100 and save it using ethernet ?

  • @JashDoshi
    @JashDoshi 3 года назад +1

    9:51 in realtime, the colour of a wall wont be black, it will be a variable colour, so how can you implement that here?

    • @hobby_coding
      @hobby_coding  3 года назад +1

      this is just a simulation in real-life the lidar sensor will return the angle and distance to that obstacle without considering any colors i only did this trick to simulate the LIDAR sensor

    • @JashDoshi
      @JashDoshi 3 года назад

      @@hobby_coding ahh okayy, cant wait for you to make this with your mobile cam!

  • @uselessrobotics5383
    @uselessrobotics5383 3 года назад +3

    Hello,
    Your work is very nice !
    SOmetimes, you are happy when you come across some content creator :)

    • @hobby_coding
      @hobby_coding  3 года назад

      thank you for the positive comment, I'm glad you liked the content.

  • @swagh1611
    @swagh1611 2 года назад +1

    While converting lidar measurements to position: why for y coordinate you subtract it?
    y = - distance * math.sin(angle) + robot_position[1]
    shouldn't it be
    y = distance * math.sin(angle) + robot_position[1] ? i.e without a negative sign.
    And similar in the function sense_obstacles()

    • @hobby_coding
      @hobby_coding  2 года назад +2

      the - sign is to account for the display inverted y axis

    • @tommytran5962
      @tommytran5962 2 года назад +2

      Use the + sign, not the - sign. The + sign worked for me.

    • @dingdong2588
      @dingdong2588 Год назад

      @@hobby_coding stop scamming broooo

    • @hobby_coding
      @hobby_coding  Год назад

      @@dingdong2588 what are you talking about ?

    • @dingdong2588
      @dingdong2588 Год назад +1

      @@hobby_coding im sorry daddy

  • @tommytran5962
    @tommytran5962 2 года назад

    at 9:01, why is sigma squared ?

  • @Oguzhan_o7
    @Oguzhan_o7 7 месяцев назад +1

    Awesome 👏👏👏👏👏

  • @littledude6958
    @littledude6958 3 года назад +1

    Great Video.!
    I am having one problem . ' TypeError: 'bool' object is not iterable '. Im getting this error for the dataStorage method.

    • @diptadipdas8111
      @diptadipdas8111 3 года назад

      same did you find the solution?

    • @JashDoshi
      @JashDoshi 3 года назад +2

      The solution is: return an iterable. I suggest that you either convert the bool to a string (str(False)) or enclose it in a tuple ((False,)).

    • @littledude6958
      @littledude6958 3 года назад

      @@JashDoshi Thankyou..!!

    • @DonnyPUtama
      @DonnyPUtama 3 года назад

      @@littledude6958 i still dont get it

    • @elifkarabulut5740
      @elifkarabulut5740 2 года назад

      anyone can share the code of the solution?

  • @yoursyasuo5868
    @yoursyasuo5868 3 года назад +2

    This is so awesome!!! Can you please provide the project link please?

    • @hobby_coding
      @hobby_coding  3 года назад

      sorry , i'm waiting for the project to be completed befor I post it in GitHub , so please just write the code by watching the video for now .

    • @yoursyasuo5868
      @yoursyasuo5868 3 года назад

      @@hobby_coding actually I did coded along the video but got some errors. And I need to implement SLAM simulation like this for a project. That would be great if I could get some help from you.... Please consider.

    • @hobby_coding
      @hobby_coding  3 года назад

      @@yoursyasuo5868 please tell me what bugs did you get

    • @NimishKashyap
      @NimishKashyap 3 года назад

      Yes I agree, that'll be a great help

    • @yoursyasuo5868
      @yoursyasuo5868 3 года назад

      I got the sensed_obstacle() not found. I double checked my code and I have literally defined it correctly but still it is showing that same error

  • @badcandy1337
    @badcandy1337 10 месяцев назад

    you stopped coding?????

  • @Pages_Perfected
    @Pages_Perfected 2 года назад

    hmm

  • @dingdong2588
    @dingdong2588 Год назад

    Anyone bought his fiver codes link it here plz :D

  • @Taka-tg8zq
    @Taka-tg8zq 2 года назад +1

    Hi, I like your tutorial. Do you have LinkedIn?

    • @hobby_coding
      @hobby_coding  2 года назад +2

      hello taka, my LinkedIn is : www.linkedin.com/in/mouad-boumediene/

    • @Taka-tg8zq
      @Taka-tg8zq 2 года назад

      @@hobby_coding Added you there :) Good to connect!