How to Use Proximity Sensors To Stay Between Walls | CoppeliaSim (V-REP)

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024

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

  • @LeoArmesto
    @LeoArmesto  4 ปีที่แล้ว +4

    There's a type in function "getDistance". It should accept two input arguments as shown:
    function getDistance(sensor,max_dist)

    end

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

    Hi Leppoldo, there is a mistake in slide at 10:41, VR and VL in the picture on the left are reversed. anyway, your channel is the best.
    BTW. you should add the link how to buy you solution in every video, otherwise, it's easy to ignore.Your solution is worth the money😀

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

      Thanks for your comments, I really appreciate them. In the picture, the robot points mostly upwards, so it is correct

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

    Hello Leopoldo,
    thank you for doing all these tutorials. It's been super helpful so far. Furthermore, could you do me a favor and provide the complete child script? I dont really get it done successful and I want to see my errors.
    Thanks =)!

    • @LeoArmesto
      @LeoArmesto  4 ปีที่แล้ว +5

      Please buy me a coffee:
      www.paypal.me/leoarmesto
      ... and I will be able to contact you

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

    hello sir i am big fan of you. I have a question i want to read the angle of the firs detecte object by proximity sensor. Can ı do this ?

  • @himanshudubara6362
    @himanshudubara6362 4 ปีที่แล้ว

    Sir can you explain how you arrived at third wheel angle and velocity of each wheel?

    • @LeoArmesto
      @LeoArmesto  4 ปีที่แล้ว

      Himanshu Dubara There’s a kinematic relation between the wheels. So you can set the angle and the velocity of the ‘third wheel’ as if it a car-like robot to compute the velocities of the rear wheels, assuming there’s no wheel slippage. On the other hand, there’s a technique known as pure pursuit that basically gives you the geometric expressions to compute the wheel angle to converge to a line for a given distance. Based on this technique I derived the expression indicated in the video. At this point of the tutorial this is something off-topic that I prefer not to mention in detail to keep the video as short as possible. So that’s why I provided with the formula, but without too much details on how I’ve got that formula.

  • @sparrowyt007
    @sparrowyt007 4 ปีที่แล้ว

    Do we have to associate this code to the proximity sensor or the robot base?

    • @LeoArmesto
      @LeoArmesto  4 ปีที่แล้ว

      Hello, to the robot base

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

      @@LeoArmesto thank you sir

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

    Hello Sir,
    Where should we add the condition to calculate the speed of the wheels?

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

      Usually inside ‘SysCall_actuation’ function you need to compute the wheels velocity

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

      @@LeoArmesto [/robot@childScript:error] [string "/robot@childScript"]:77: attempt to compare nil with number
      stack traceback:
      [string "/robot@childScript"]:77: in function 'sysCall_actuation'
      line 77: if(dist

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

      You haven’t define the value of ‘dist’ before using it

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

      @@LeoArmesto I have assigned dist=getDistance(sonar,max_dist) under Syscall_sensing

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

      Its working now. Thank you!

  • @martinprinceton9858
    @martinprinceton9858 3 ปีที่แล้ว

    Hey Leopoldo, I bought the DYOR Solutions and I replicated this system using python but had difficulties with communication with Coppeliasim. I used Spyder to run it and it run just once and stops. Please, is there a way to solve this?

    • @LeoArmesto
      @LeoArmesto  3 ปีที่แล้ว

      Hello, I’m not sure what’s the problem. Have you tried to run any other code, just to check that your Python-CoppeliaSim connection is working as expected?

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

      @@LeoArmesto I finally found the problem. I needed to use a while loop. Thanks for th reply