Це відео не доступне.
Перепрошуємо.

Feature Extraction from 2D LIDAR data using python 2/2 | SLAM SERIES

Поділитися
Вставка
  • Опубліковано 8 сер 2024
  • in this tutorial 🔥 we will implement a feature extraction algorithm based on split and merge using python and pygame from scratch, this video is the second part where we do a step-by-step explanation of the code behind feature extraction.
    notes:
    line 186 : add "less than self.EPSILON" as a condition to the while loop
    💻 my services are available on :
    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...
    ⏱️ Time Stamps :
    0:00 intro
    1:44 code structure
    3:21 the features file
    17:51 the main file
    22:05 testing our code

    🏷️ Hash Tags:
    #LIDAR #SLAM

КОМЕНТАРІ • 61

  • @adimmx8928
    @adimmx8928 3 роки тому +3

    Hi, thanks for this awesome video,
    im trying to replicate the code, and i got stuck on line 186 "while self.dist_point2line(line_eq,self.LASERPOINTS[PB][0])" isnt there suppose to be a condition because dist_point2line returns an integer?

    • @hobby_coding
      @hobby_coding  3 роки тому +1

      oh yes, so sorry it's suppose to be < self.EPSILON

    • @hobby_coding
      @hobby_coding  3 роки тому

      please tell me if there"s another bug

    • @adimmx8928
      @adimmx8928 3 роки тому +1

      @@hobby_coding Good morning, i managed to get it running, but i cannot replicate exact as you have in the video, lines are detected only when im near the wall and it jumps over gaps(doors to) can you pls share the source code? Thanks!

    • @hobby_coding
      @hobby_coding  3 роки тому +1

      @@adimmx8928 your pc performance may be a factor, try to experiment with epsilon and delta now i have them 20 & 20, Gmax also should be experimented with

    • @hobby_coding
      @hobby_coding  3 роки тому

      in future videos, i'll make the process run faster by regulating the rate on which the lidar is scanning the environment.

  • @AbcDef-oe8sj
    @AbcDef-oe8sj 3 роки тому +10

    hey man... can u pls upload the code on github and post the link...would be really helpful

  • @Build_the_Future
    @Build_the_Future Рік тому +1

    This Series made me Subscribe! Thanks. Are you going to put Feature Extraction on your GitHub? I only found your earlier LIDAR Simulation

  • @Pages_Perfected
    @Pages_Perfected 2 роки тому

    You have done a lot of work, Good Job!

  • @rickv.f.2311
    @rickv.f.2311 Рік тому

    Hi,
    Thanks for this video and the explanation.
    When following the tutorial I run into a problem when testing. After debugging with the Predictated_point_to_draw, I do not get any points when my mouse cursor is left of a wall or above a wall (seems like when mouse position X < wall position X OR mouse position Y < wall position Y). When I put my mouse at the right side of the wall, it appears as points.
    So to me this seems like an issue in the seed Segment Detection function.
    As far as I understood I followed your tutorial completely and even took the textual comments shown during the video into account. Seeing your result I can not spot that bug as I am right
    Do you have any idea what could be the issue or what could be the solution?

  • @Pages_Perfected
    @Pages_Perfected 2 роки тому

    how I will get the reading from the robot?
    as an array of numbers?
    and then how to combine it with this code to build a real robot that can do mapping?

  • @lukasrauch389
    @lukasrauch389 3 роки тому +2

    Hey,
    first, thanks for the tutorial.
    second, is there any oprotunity to get provided with the correct source code? eg. GitHub etc.?
    i got everything upon runing, but with some wierd behavior. comparing the code only on Video-Basis is kind-of impossible.
    My eys bleeding...
    D:

    • @dingdong2588
      @dingdong2588 Рік тому

      me too bro need some bleach after this

  • @tofo7151
    @tofo7151 3 роки тому

    I was wondering. Do you happen to know where to get the parts you would need to build this physically?

    • @hobby_coding
      @hobby_coding  3 роки тому

      Amazon would be my guess, but don't listen to me, i only worked with this in simulation.

    • @tofo7151
      @tofo7151 3 роки тому

      @@hobby_coding I'll look into it. Thanks.

    • @DubstepJeroen
      @DubstepJeroen 2 роки тому +1

      @@tofo7151 if youre still looking. YDLidar is a great an cheap unit.

  • @justtestingonce
    @justtestingonce 2 роки тому

    Instead of using pass in an if statement, use continue

  • @Mblast59
    @Mblast59 Рік тому +4

    These videos are good but not too helpful if you don't share the code. Its too hard to learn from just watching you type and copying the code as you type leads to many bugs. Will you please post the code?

  • @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 ?

  • @triz5511
    @triz5511 2 роки тому

    I get error:
    Fraction object has no attribute 'as_integer_ratio'
    How to solve this?

    • @johanblank645
      @johanblank645 2 роки тому

      Use Python >=3.8 can solve the problem

  • @programmingworld2040
    @programmingworld2040 2 роки тому +1

    den_a = Fraction(A).limit_denominator(1000).as_integer_ratio()[1]
    AttributeError: 'Fraction' object has no attribute 'as_integer_ratio'
    how to solve this problem

  • @1Uik1
    @1Uik1 2 роки тому +1

    Hey, i checked my Code twice, but the Features are only detected, when im right, or under or above them (diddnt work if the obstacle is on the left side ), also the distance of detection is very very short
    did u have an Idea?

    • @hobby_coding
      @hobby_coding  2 роки тому

      unfortunately no , but i'll try to post the code soon

    • @aravindv504
      @aravindv504 2 роки тому +1

      @@hobby_coding Can u post the code please

    • @aravindv504
      @aravindv504 2 роки тому

      @@hobby_coding Even Im facing the same errors

    • @bingxiong8094
      @bingxiong8094 2 роки тому

      @@hobby_coding Can u post the code which can detect all the walls please. We can pay for that.

    • @bingxiong8094
      @bingxiong8094 2 роки тому

      Im facing the same problem😭

  • @lukabarkovic4125
    @lukabarkovic4125 3 роки тому

    I use a real LIDAR sensor and I have a map of the environment, but I’m not sure how to move my robotic vehicle through that environment. It is a static environment. I use the RRT algorithm that you explained earlier. Can you help me somehow please, can I contact you via email maybe?

    • @hobby_coding
      @hobby_coding  3 роки тому +2

      hi luka,
      the truth is i am so busy this time of the year, and so i can do very little in terms of helping my subscribers with their projects, i wish i could discuss the project with you point by point but, for now, i can only give you a quick answer here in the comment section for your questions.

    • @lukabarkovic4125
      @lukabarkovic4125 3 роки тому +1

      Ok, I understand you. My key problem is that I don’t know what exactly to focus on next. So, I made a map of the environment and I'm trying to do localization of the robot, but I also have some problems. My question is how can I use the map of the environment further? I also don’t draw a map inside the pygame but separately as a graph, should I use pygame?

    • @hobby_coding
      @hobby_coding  3 роки тому +3

      @@lukabarkovic4125 you need to extract features from that map and then you use the EKF for localization, maybe read the peter cork book to gain a clear view on things

    • @hobby_coding
      @hobby_coding  3 роки тому +1

      @@lukabarkovic4125 you need to extract features from that map and then you use the EKF for localization, maybe read the peter cork book to gain a clear view on things

    • @lukabarkovic4125
      @lukabarkovic4125 3 роки тому

      Okey, thank you. I'll try, I'll definitely get a book. Can I ask you a question if I get stuck somewhere?

  • @diptadipdas8111
    @diptadipdas8111 3 роки тому

    in line 110 there should be one self right?

    • @hobby_coding
      @hobby_coding  3 роки тому +1

      yes, one self

    • @diptadipdas8111
      @diptadipdas8111 3 роки тому

      @@hobby_coding sorry to disturb you again but i am getting this error.
      main.py, line 79, in
      ENDPOINTS[0] = FeatureMAP.projection_point2line(OUTERMOST[0], m, c)
      Features.py, line 86, in projection_point2line
      x, y = point
      TypeError: cannot unpack non-iterable int object
      so i wrote x= point y = point code is working, is it right?

    • @hobby_coding
      @hobby_coding  3 роки тому

      @@diptadipdas8111 you missed something

    • @diptadipdas8111
      @diptadipdas8111 3 роки тому

      @@hobby_coding ok will check, what's next you will be doing

    • @hobby_coding
      @hobby_coding  3 роки тому +1

      @@diptadipdas8111 using this with EKF for localisation will be the next step

  • @dr.merlot1532
    @dr.merlot1532 2 роки тому

    The code just doesn't work... What a waste of my life.... Some one please help with: 'featuresDetection' object has no attribute 'laser_points_set'

    • @dingdong2588
      @dingdong2588 Рік тому

      i feel u bro im right tehre with u