HALRobotics / Beta

HAL Robotics Framework beta release and associated documentation.
17 stars 3 forks source link

Turntable synchronization for multiple rotations #124

Closed anjakunic closed 2 years ago

anjakunic commented 2 years ago

Prerequisites

Description

[Dear HAL team, I am looking into using a turntable that is synchronized with the movements of the robot on a rail unit. I would like to rotate the turntable multiple times (e.g. 6 times back and forth). Do I need to create each time a new sync component and a new corresponding robot position, or could I repeat the same group of commands for instance with "repeat data"?

I tried synchronizing a "init" turntable position = 0 degrees rotation with an "init" robot position, and a "reinit" turntable position = 180 degrees rotation with a "reinit" robot position, and I created a corresponding list of robot operations (e.g. Init, mill, reinit, mill, init, mill, reinit, mill, etc.).

I receive an error message saying: Synchronization setting reuse found. Synchronization settings have been found in two distinct sequences of the same procedure. I attach my file for you to see it.]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expect to happen]

Actual behavior: [What actually happens]

Reproduces how often: [What percentage of the time does it reproduce?]

Versions

You can get the exact version of the Framework and all installed extensions in the HAL -> About menu or via the installer. Please also include the OS and what version of the OS you're running.

Additional Information

Any additional information, configuration, files or data that might be necessary to reproduce the issue. Screenshot 2022-04-13 143050 Screenshot 2022-04-13 143110

https://www.dropbox.com/s/1t56sn56z88zcx4/CREATE%20KUKA%20setup%20%20-%20%20turntable%20rotating.gh?dl=0

thibaultschwartz commented 2 years ago

Hi Anja, You should not reuse sync settings - right now you are duplicating references to the same sync settings using the repeat component instead of creating unique sync settings.

anjakunic commented 2 years ago

Hi Thibault, So I need to create 6 sync settings and 6 corresponding robot/turntable positions if I want to rotate the table 6 times back and forth?

Thanks for your fast reply.

thibaultschwartz commented 2 years ago

image As mentioned in the doc, you can supply a single sync settings for a set of following targets that will result in a single motion action. If you supply a tree of targets, you will need to generate one sync settings per branch.

tristangobin commented 2 years ago

Tip : use the alias in the component to directly have multiple synch settings (multiple ref, not just one duplicated). Then use it in a data tree. Should work nicely.

anjakunic commented 2 years ago

Great, thanks for the tip. That worked nicely!

thibaultschwartz commented 2 years ago

Great, I am closing this thread as solved then. Please reopen if you encouter syncing issues with turntables again.