How to Generate Trajectory for Robotic Manipulators in MATLAB 2021 | RST | Trapezoidal Velocity

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

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

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

    Thank you a lot sir! Videos you upload about "robotics content" helps me big time in my Ms. We say "God bless you" in Turkish "Allah senden razı olsun." So, Allah senden razı olsun, Mr. Muhammad.

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

      You are very welcome. JazakAllah

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

    This videos are really helping develop my 5DOF manipulator for my bachelor thesis. Thank you!

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

      Glad to know this 🙂

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

      Did you control your orientation of the end effector?

  • @gebresilassiehagos1999
    @gebresilassiehagos1999 10 หลายเดือนก่อน +1

    Hello, sir. I am so excited about the tutorial you made , but would you please help me on how to generate the trajectory in MATLAB 2018?

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

    Hi , im so excited about the toutorial you made , would you please explain how to define the wp .m file ?
    Do we need write y based on X or something ?

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

      Waypoint matrix is defined as n x p matrix, where 'n' is the dimensions and 'p' is the number of way points. If you are generating workspace trajectory then 'n' = 3 (x, y, z), whereas if you are generating joint space trajectory then 'n' = DOF. For example a workspace trajectory for a 4 DOF robot having 4 waypoints would be [1, 3, 2, 3; 2, 4, 3, 1; 2, 3, 4 1], a 3x4 matrix, whereas Joint space trajectory for the same robot would be [20, 40, 30, 50; 40, 30, 50, 60; 30, 20, 10, 50; 30, 40, 50, 60] a 4x4 matrix.

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

    Thank you so much for your clear explanation.Helped a lot.

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

    Dear Razi Sahab,
    Aoa
    A great effort indeed. I have really learnt a lot.
    However, there are certain issues which need to be resolved. Even though I followed the steps explained exactly, I am not able to obtain smooth x and y profiles on the end-effector. In fact, the robot undergoes jerks during its motion. If you so agree, I can send you the simulink files. Thank you

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

      Yes you may share, and I'll try to have a look.

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

    Hello, first thing I want to say is, amazing lectures. I have been trying to learn simulink for while and this is the best course I have found on it. Thank you
    Also, In this video and in the last one too, I having some problem in my simulation. The first three lines of the square are traced fine but in the fourth one it just shoots up. So the fourth line isn't traced. I compared the scope graphs and they all look similar to yours. let me know how I can fix it.

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

      Thank you.
      Make sure to have the last waypoint in the trajectory same as the first one.

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

    how do you trace the path followed by end effector? is there any way to create the trajectory without assigning the coordinate (x,y,z)?Also how did you create the waypoints? Can you please make a video containing all the abovementioned questions?
    i really appreciate your time and I am learning a lot from you. is there anything I can do to help you?
    I am a big fan of ROBOTs

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

      You can record the position of the end-effector by using a Forward Kinematics (Get Transform) block from the Robotics Systems Toolbox (See previous videos in the playlist).
      No there is no way of generating a trajectory without specifying x,y,z coordinates or joint coordinates that will depend on the number of joints. Trajectory generation works by plotting a suitable path between the provided waypoints.
      These waypoints can be x,y,z coordinates or joint angles for joint space trajectories. I created the waypoints by simply using the fact that where my robot needs to go, those are the waypoints.

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

    Thanks sir for your matlab series about robotics! I really love it and I would like to study more about it. Could you please suggest me a book in which I can find more about this topic (manipulators on matlab/simulink/simscape) to add to the matlab documentation? I hope you can help me :)

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

      Sorry there is no book that I know of. You have to learn things in bits and pieces from here and there.

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

    I wanted to adapt this method with something other than a square, so I used a much more complex model where the waypoints were black pixels of an image, and I converted each pixel into an XY coordinate (with Z=0). With this method, I have a matrix of over 20,000 elements. It seems to work, but it takes several hours to compile. Do you have any ideas to make Sinscape compile faster?

    • @LearningOrbis
      @LearningOrbis  6 หลายเดือนก่อน +1

      Remove everything from the simscape model except the trajectory generation block. Save the generated trajectory into a workspace variable. Use another simulink file to drive the robot on the saved trajectory.

  • @AbdulRahman-jz3px
    @AbdulRahman-jz3px ปีที่แล้ว +1

    Hi Thank you for the video, may Allah always bless you. I want to try this simulation, but why in my utilities there is only the coordinate transformation conversion box. do you know the problem? how to solve it?

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

      You might have older version of MATLAB. Try 2019 or latest version.

  • @이상의-k5l
    @이상의-k5l ปีที่แล้ว

    Hello! I'm enjoying the video lecture. However, as I follow your approach, the runtime becomes too long. In your videos, the results appear instantly. Is there something I'm doing wrong?

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

      Whenever you use SimScape Visualization the results will take time, however, if you only use RST blocks, the computations will be done almost instantaneously. I've sometimes cropped the part of the video where the simulation is running.

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

    thank you sir but why you said that i'm not concerned with the acceleration and you only trace the velocities graphs ?

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

      Just for the video I'm not looking at accelerations. But if you want you can, it depends on your requirement.

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

    Nice ,Tq Prof.

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

    how can we know the value of "wp"? I can,t find the number at the video even I watch the part -5:30

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

      This is the waypoint matrix that I used
      wp = [0.35,0,0.1; 0.25, 0.01, 0.1; 0.25, 0.11, 0.1; 0.15, 0.11, 0.1; 0.15, 0.01, 0.1; 0.25, 0.01, 0.1]';
      There is a transpose at the end of the matrix!!!

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

    Also my end-effector is not able to reach the last waypoint/square corner. Instead it directly jumps to the home configuration/initial point

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

      There must be a logical explanation for this. Send me your files and I'll give it a look.

  • @SyedusaidAhmad-wn7dt
    @SyedusaidAhmad-wn7dt 4 หลายเดือนก่อน

    sir can yo u tell wp variable for this configuration beacuse i dont figure out kinldy help in this regard sir

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

      Follow this new video it provides everything: th-cam.com/video/f1LUAo_YzlM/w-d-xo.html

  • @NourElHoudaAyadi-i6b
    @NourElHoudaAyadi-i6b ปีที่แล้ว

    thank you for this video. I wanted to make a simple control on a dynamic model of an autonomous car (model: bicycle) using a PID controller and imposing a reference trajectory but I don't know how. I got the transfer function but I don't know how I impose a reference trajectory. Also. is the PID controller and transfer function are sufficient in block schema or not?

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

      It depends on what your PID controller is doing. If its a joint space controller then you should provide the joint space trajectory at the reference input of the PID controller. If you can share the block diagram of your system then I might be able to suggest something more concretely. You can share it to learningorbis@gmail.com

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

    Hi, sir. Thanks for your video. I have already see the way of setting the waypoint, but still I didn't figure out where can I set the wp file. Is it inside the simulink or should I renew a script?

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

      wp is just a variable in MATLAB workspace. You can directly initiate wp variable in Command Window or in an M-file.

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

    Could you please show what is in the wp array??

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

      Kindly listen to the portion around 05:30 time

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

    Hello, Thank you for the videos they are really helpful. Is there anywhere we can download the robot that you've done?

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

      You can email me at learningorbis@gmail.com. I'll share the files with you.

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

      Additionally you may download initial files from www.mathworks.com/matlabcentral/fileexchange/125875-how-to-design-robotic-manipulators-in-matlab-2021

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

      @@LearningOrbis Thank you! ☺

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

    I put WP points but i get massage "the dimensions of way points input and velocity boundary condition name-value pair must match" how can i solve this

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

      You must be entering wrong velocity boundary conditions. Consult the video or the help of Trajectory Generator block to know the dimensions of the velocity boundary condition matrix.

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

    saving waypoints in workspace is very confusing. I tried to use "to workspace block" with coordinate tranformation conversion (forward kinematic) but it isn't working. Can you please help me with this? I will be grateful

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

      Can you share the error yo uare getting, because saving things in workspace is quite straightforward. Just connect the 'To Worksapce Block' and with default values of the block all data connected to this block will be saved in the workspace in 'Simulation Output' type variable named as 'Out'. Furthermore, multiple data streams will be present in the 'Out' variable in form of a timeseries variable.

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

      @@LearningOrbis Thank you so much, problem resolved

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

    Could you please make a video on how to generate trajectory for a robot arm to paint within a square??

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

      It can be done by defining the waypoint matrix such that the robot starts from one corner of the square and move to the next corner horizontally. After that it should move downwards a bit, depending on the painting nozzle spread, and then move again. Repeat the process until the square is covered.

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

    Thanks!

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

    How does your Time points even work?
    [0, 0.5, 1.5 2.5 3.5 4.5] is invalid. When i use this: tp = [0; 0.5; 1.5; 2.5; 3.5; 4.5];

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

      These time points are for Polynomial Trajectory Block. In this case the time points are times when the corresponding waypoint should be achieved. Make sure you are configuring the other things as I've done in the video. For example, Boundary Velocity Conditions should have zeros(3,n) size, where n is the number of waypoints.
      Anyhow this is the waypoint matrix that I used:
      wp = [0.35,0,0.1; 0.25, 0.01, 0.1; 0.25, 0.11, 0.1; 0.15, 0.11, 0.1; 0.15, 0.01, 0.1; 0.25, 0.01, 0.1]';
      There is a transpose at the end of the matrix!!!

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

      @@LearningOrbis sry Had to write it. I figured Out Yesterday. But thanks a Lot. IT was a very good Help For my diploma.

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

      I have a very simple robot which makes transition only in x-direction. i need a simulink model. the problem i have is, how i can get the real world vibration into the model. I try to reconstruct the model in relative motion to get the position x.

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

    At @5:34 what is the content of the variable wp

    • @LearningOrbis
      @LearningOrbis  7 หลายเดือนก่อน +1

      wp is the waypoint matrix that contains 3 rows and 'n' columns, where 'n' the number of waypoints you want your robot to go through. Every row contains joint angle values for one of the joints, whereas if you are designing trajectory in workspace then first row is for x-axis, second for y-axis, and third for z-axis.

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

    how to set waupoints in polynomial trajectory?specially set wp variable?

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

      Will upload soon

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

    when i am moving the end effector from negative plane to positive plane i am getting the undershoot. It is happening when i am moving from positive plane to negative plane why?

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

      If you are using the inverse kinematics then it sometimes causes problems at boundaries. If you can share the graphs at learningorbis@gmail.com then I might be able to reply more concretely.

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

      @@LearningOrbis i had sent the mail along with the graphs.

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

    How could I generate trajectory for orientation of the end effector? I don't want to change the coordinates just the orientation of the end effector.

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

      In the same way as you have generated positional trajectory. You should have a 3x3 initial rotation matrix and a 3x3 final required rotation matrix. Use trajectory generator to generate a 9-dimensional trajectory where each dimension corresponds to one of the element of a 3x3 rotation matrix.

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

      @@LearningOrbis okay thanks. I will give it a try.

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

    Hey, I hope you are doing well. Can you please share me the link where you made a video in Solidwork and Matlab?

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

      I'm afraid I haven't made a video on that. But will try to make one in near future.

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

    what are the values of the waypoint variable ?

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

      Look somewhere in the previous comments, i've shared the waypoints.

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

      what are waypoints @aakashsingh6771

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

    sir, wp ke values kya hai ?

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

      wp waypoints hain [x, y, z] values hain jidher robot jana chahiye

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

    do you share the files? thanks for videos

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

      Contact me at learningorbis@gmail.com

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

      @@LearningOrbis do u share this file ?

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

    Sir can you please kindly share the waypoints

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

      This is the waypoint matrix that I used
      wp = [0.35,0,0.1; 0.25, 0.01, 0.1; 0.25, 0.11, 0.1; 0.15, 0.11, 0.1; 0.15, 0.01, 0.1; 0.25, 0.01, 0.1]';
      There is a transpose at the end of the matrix!!!

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

      @@LearningOrbis Thank you sir

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

      @@LearningOrbis I was wondering how to switch rows and columns, now i remember. Thanks!

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

    wp?????????? i didn't get it

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

      wp is a waypoint matrix. It contains all the way points you want your robot to go through.