v-rep (CoppeliaSim) matlab client , and animation of robot joints [ legacyRemoteApi ]

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • In this video, I will show you how to connect Matlab with v-rep. It is divided into two parts:
    1- setting all files needed.
    2-1:55 A Matlab test program in which we will command the joints of a KUKA robot.
    All the Matlab reoteAPI function are available here :
    www.coppeliarob...
    ⚠️ 𝙉𝙤𝙩𝙚𝙨 :
    ♜ A small update, with coppeliaSim the remote API server is already opened on port 19999 (continuous remote API server service). So, you don't have to do step2 anymore (1:26). For more details: www.coppeliaro...
    ♜ All the joint origins, torques and velocities are set arbitrarily.
    ♜ I personally recommend using "simxSetJointTargetPosition" instead of "simxSetJointPosition " for a better smooth movement.
    ♜ Make sure to have a pause value that guarantees that all joints reach their final positions.
    The Kuka v-rep model is available in the description of this video :
    • Import Solidworks robo...
    I hope that this video is helpful. Thank you for your attention.
    ⚠️𝑪𝒐𝒎𝒎𝒐𝒏 𝒗𝒊𝒆𝒘𝒆𝒓𝒔 𝒑𝒓𝒐𝒃𝒍𝒆𝒎𝒔 :
    ⦿ I got this error in Matlab : (Note: always make sure you use the corresponding remoteApi library
    (i.e. 32bit Matlab will not work with 64bit remoteApi, and vice-versa))
    → It's a warning: 1- You must start the VREP simulation before running the Matlab code.
    2- at minute 0:59, the "windows" contains two .dll files (32 bit and 64bit) make sure to copy the right one depending on your laptop architecture.
    ⦿ I got an error "Unable to resolve the name vrep.simx_opmode_blocking" (Zacxk Dz):
    → I solved it by changing the vrep. prefix to sim. prefix. Do this in every line (Tomi Psenicnik).
    ------------------------------------------------------------------
    Acapella:
    • Alaa Wardi - 6 - Last ...
    📛 Our Facebook page :
    / mechatronics-ninja-160...
    #Matlab #CoppeliaSim

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

  • @ricardo_sarmiento
    @ricardo_sarmiento 4 года назад +1

    I am using CoppeliaSim and I did step 2, otherwise it doesn't work, just if anybody has trouble; thank you so much, it works really well

  • @user-uk5rf5jc8i
    @user-uk5rf5jc8i 3 года назад +2

    thanks a lot... you saved my robotics modeling project!

  • @michaelsherif6854
    @michaelsherif6854 Год назад +2

    amazing music💓💓

  • @misaka_mikoto1132
    @misaka_mikoto1132 4 года назад +1

    it helps me a lot !!!! thank you !

  • @karamalmaghout6433
    @karamalmaghout6433 4 года назад

    many thanks man, you are great

  • @SABOURANET
    @SABOURANET 4 года назад

    very good; i would like to learn more about that

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

    thank you very much for this video,
    I have a question:
    how i can command two or three joints at the same time?

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

    Hi sir. I got an error "Unable to resolve the name vrep.simx_opmode_blocking"
    Searched the solution and couldnt find any.

    • @99tomson1
      @99tomson1 3 года назад +1

      i also get this error @mechatronics Ninja

    • @99tomson1
      @99tomson1 3 года назад +1

      @Zacxk Dz I solved it by changing the vrep. prefix to sim. prefix. Do this in every line.

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

      @@99tomson1 thank you very much sir! It works!

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

    I want to create pipeline environment in Coppeliasim. Can you tell me how to make pipes with bends in Coppeliasim?

  • @ruhisharma8509
    @ruhisharma8509 4 года назад

    I did not have two files. In the windows folder, i have remoteapi.dll. Just this. After doing the steps, it says access denied.

    • @mechatronicsninja3806
      @mechatronicsninja3806  4 года назад

      Here is the file needed for matlab which I copied from CoppeliaSim installation folder :
      drive.google.com/file/d/1JGf5A5I81Ebu3LBMaSIoyepo_sOXXaEK/view?usp=sharing

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

    I got an error "unable to resolve the name vrep.simx_opmode_blocking"

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

      hi based on
      Tomi Psenicnik comment : 'I solved it by changing the vrep. prefix to sim. prefix. Do this in every line.'

  • @brandondelspina9957
    @brandondelspina9957 4 года назад

    @mechatronics Ninja, thank you for making these videos! They are highly informative and very well done! Question, I have completed the steps listed in this video. However, when I hit the play button in V-REP (even before I get a chance to hit the play button in Matlab), the robot falls apart. Unchecking the "body is dynamic box" keeps the robot from falling apart, but then the robot will not move. Can you please offer any suggestions?

    • @mechatronicsninja3806
      @mechatronicsninja3806  4 года назад

      Hi, glad to hear that. Did you increase the axis torques and the weights of the parts (9:00) ?

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

      Hi, Brandon DelSpina, I have the same problem, did you solve it?

  • @ricardoriesgo741
    @ricardoriesgo741 5 лет назад

    Hi! Why do you type "r" in number returnCode, when using simxGetObjectHandle? Thanks, great video btw !

    • @mechatronicsninja3806
      @mechatronicsninja3806  5 лет назад

      Hi Ricardo,
      r is a return value that will indicate if we have a successful function or not. Because it comes first in the function declaration, I have to type it even if I will not use it:
      [𝙣𝙪𝙢𝙗𝙚𝙧 𝙧𝙚𝙩𝙪𝙧𝙣𝘾𝙤𝙙𝙚,𝙣𝙪𝙢𝙗𝙚𝙧 𝙝𝙖𝙣𝙙𝙡𝙚]=𝙨𝙞𝙢𝙭𝙂𝙚𝙩𝙊𝙗𝙟𝙚𝙘𝙩𝙃𝙖𝙣𝙙𝙡𝙚(𝙣𝙪𝙢𝙗𝙚𝙧 𝙘𝙡𝙞𝙚𝙣𝙩𝙄𝘿,𝙨𝙩𝙧𝙞𝙣𝙜 𝙤𝙗𝙟𝙚𝙘𝙩𝙉𝙖𝙢𝙚,𝙣𝙪𝙢𝙗𝙚𝙧 𝙤𝙥𝙚𝙧𝙖𝙩𝙞𝙤𝙣𝙈𝙤𝙙𝙚)

  • @mudd8844
    @mudd8844 5 лет назад +1

    Whats the music from

  • @ruhisharma8509
    @ruhisharma8509 4 года назад

    I did not have two files. In the windows folder, i have remoteapi.dll. Just this. After doing the steps, it says access denied. Please reply

    • @mechatronicsninja3806
      @mechatronicsninja3806  4 года назад

      Here is the file needed for matlab which I copied from CoppeliaSim installation folder :
      drive.google.com/file/d/1JGf5A5I81Ebu3LBMaSIoyepo_sOXXaEK/view?usp=sharing

    • @ruhisharma8509
      @ruhisharma8509 4 года назад

      Thankyou for your reply. I have the same files. But when I try to run the coppelia simulation and then the one on matlab, it says error in loadlibrary. Access denied.

    • @mechatronicsninja3806
      @mechatronicsninja3806  4 года назад

      @@ruhisharma8509 screenshot the error message please

    • @ruhisharma8509
      @ruhisharma8509 4 года назад

      Are you able to see the screenshot?

    • @ruhisharma8509
      @ruhisharma8509 4 года назад

      @@mechatronicsninja3806 please reply

  • @sm12Y
    @sm12Y 5 лет назад

    My robot disappear when I select "Body is dynamic", do you know why?

    • @mechatronicsninja3806
      @mechatronicsninja3806  5 лет назад

      Hi Samuel, this is the first time I saw this problem, I suggest that you select the invisible part , go to "common" and change the visibility like that :
      drive.google.com/drive/folders/1HeQYxnPrTpWt7zfOq5Wp1HdLINoVOXgT?usp=sharing
      I hope it resolves your problem.

    • @sm12Y
      @sm12Y 5 лет назад +1

      @@mechatronicsninja3806 Thank you so much !

    • @mechatronicsninja3806
      @mechatronicsninja3806  5 лет назад

      You ' re welcome

  • @CarlosRedman3
    @CarlosRedman3 4 года назад

    Hey, have you ever used IRB4600 in Vrep ?

  • @MohamedTarek-dz1hl
    @MohamedTarek-dz1hl 4 года назад

    hi, ninja i got a problem.
    the body was broken when i run it.
    and this is the message i got
    The scene contains one or several non-convex dynamic meshes, which are not supported with the selected dynamics engine. Those meshes will be simulated with their convex hull instead.
    what should i do please if u can answer me fast i will be so thankful.

    • @mechatronicsninja3806
      @mechatronicsninja3806  4 года назад +1

      can you please share your files so that I can check the problem and what you are trying to do

    • @MohamedTarek-dz1hl
      @MohamedTarek-dz1hl 4 года назад

      @@mechatronicsninja3806 actually I'm trying to put my files in comments but i don't know how can i put it 😫

    • @MohamedTarek-dz1hl
      @MohamedTarek-dz1hl 4 года назад

      @@mechatronicsninja3806 drive.google.com/folderview?id=1iK_ykPLtPxkwL0DQjYjAlZxzBqScYmsu
      U will find the files here please help me okay
      All i wanna fo is just to do like this project to move things from place to other place to send it to my prof tomorrow morning

    • @MohamedTarek-dz1hl
      @MohamedTarek-dz1hl 4 года назад

      @@mechatronicsninja3806 drive.google.com/file/d/1igKbJBKuIRSNtRYkBl_J7kI2u0yPfcZQ/view?usp=drivesdk

    • @MohamedTarek-dz1hl
      @MohamedTarek-dz1hl 4 года назад

      @@mechatronicsninja3806 drive.google.com/file/d/1iV91X3_s6N3hmyKM0ZgbSm1zID7jdTXH/view?usp=drivesdk
      This all files

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

    nhạc buồn ngủ vãi l