How to update robot target coordinates from Matlab?

I am working on a project where I am supposed to perform a pick and place operation using a camera connected with MATLAB. I have done the image processing in MATLAB and the different coordinates of object at different positions are coming in real time. However when I send the coordinates to RobotStudio via TCP/IP, the robot keeps coming to the same pick up place and new coordinates are not updated in Robotstudio. What could I be missing in the following program. Thanks in advance for your help.



Anyone who knows please help me on how I can be able to bring in a new coordinate into robot studio so that the robot will move to the new coordinate instead of repeating the first coordinates over and over again.
Thanks

Comments

  • DenisFRDenisFR FRANCE ✭✭✭
    Hello,
    What is TPWrite output?
    You should only execute Path_10 if ok is true.
  • MakomoJTMakomoJT Turkey
    On TPWrite the program writes coordinates but executes the same thing as if the new coordinates are not being updated.
  • DenisFRDenisFR FRANCE ✭✭✭
    You write coord but not p values.
    Does cartesiantarget have the goods values?
  • lemster68lemster68 United States ✭✭✭
    DenisFR said:
    You write coord but not p values.
    Does cartesiantarget have the goods values?
    As Denis mentions, I suggest that you could modify your TPWrite with optional argument \pos:=p;
    Lee Justice
  • MakomoJTMakomoJT Turkey
    Thanks I did that and the robot moving to different places as per coordinates received from Matlab.
  • Tharun250Tharun250 india
    edited December 2019
    hello sir,i am also trying to update the coordinates of robot from matlab.
    please kindly send that you made program to update the coordintaes...

    thanks in advance for your help sir.
Sign In or Register to comment.