Left ArrowBack to discussions page
manjunath13manjunath13 Posts: 1 Recruit
how do i define or generate motions similar to palletizing function without using it,
it is help full when i have a tray defined wrt to a feature variable, otherwise which is not available with polyscope programming

lets say i have a tray with 10 rows and 5 columns,
i know coordinates of corners ABCD,
any suggestions and workaround for the above requirement.


  • mbanerjeembanerjee Posts: 4Partner Apprentice
    I think you could probably use nested loops with variable waypoints.

    So for example, if you have a feature that your pallet pattern is offset against (and I hope my pseudocode makes sense):

    featureOffset = (x,y)
    loop1(i = 0, i<=10)
         Go to waypoint (i+x,k+y)
         Do whatever
      end loop
    end loop
  • matthewd92matthewd92 Posts: 508Founding Pro, Tactile Sensor Beta Testers Handy
    edited October 12
    @manjunath13 here is a sample program that I put together showing how to use the points A,B,C and D to calculate your step size based on the number of columns and rows that you have.  You actually only need three of the points, A,B and D in the method that I put together.  The code calculates the distance between points and then uses the number of rows and columns minus 1 to calculate the step size that is required.  This code is then using point A as the feature that the pallet is built around.  You could just as easily use another feature that you have predefined and have the pallet calculated against that feature by simply changing the feature used in the pose_add section.

    Here is the text of the program that I wrote.

         If  False 
       Robot Program
         Loop i<columns
           Loop j<rows

    Here is a gif of the program executing

Sign In or Register to comment.
Left ArrowBack to discussions page