Home Programming


Left ArrowBack to discussions page
bcastetsbcastets Vacuum Beta tester Posts: 673 Expert
edited January 30 in Programming
Visual offset tag is a function of Robotiq wrist camera used to make relative programming according to a visual reference.

The programming process consist in defining a reference position of the tag in installation menu and then set the relative waypoint to this reference position in the program.

It may happen that after you set all relative position you want to change the position of the tag relatively to your waypoints. I would like to share with you a method to do that without having to reteach all relative waypoints.

You already have a program with several waypoint position relative to "tag1". "tag1" is physically at the front left corner of the table but for some raison you can to physically install it to the from right corner without having the need to reteach all those waypoints.

The idea here is to create a second tag "tag2". "Tag2" is use to detect the tag which has been newly placed at the front left corner of the table. Then a calculation is made to calulate the previous locatino of the tag which was at the front left corner.

1/ Use Copy and Past to duplicate the Find Visual Offset node done with "Tag_1"

2/ Suppress the origin Find Visual Offset node to have a backup just in case

3/ Insert the following assignment before Find Visual Offset Node:
This calculate the coordinate of "Tag_2" in "Tag_1" frame.

4/ Reset Find Visual Offset to work with "Tag_2"

5/ Change Apply Visual Offset to work with "Tag_2"

6/ Insert the following assignment before relative moves inside Apply Visual Offset:

NOTE: Keep all relative move with "Tag_1" as relative feature.

Relative motion will now be done relative to "Tag_2" reference.

Here below is a global view of the program after those modifications:


  • adubanaduban Posts: 5 Apprentice
    I will have many waypoints inside the MoveL command. What is the best way to structure the code in case I need to easily edit waypoints?
  • bcastetsbcastets Vacuum Beta tester Posts: 673 Expert
    edited February 2021
    To edit a path which is relative to a visual offset tag you can proceed as follow:
    1. Go in installation menu and reset the tag master position
    2. Go in your program and edit your waypoint

  • adubanaduban Posts: 5 Apprentice
    Hi, I am having issues getting a reliable recognition of the tag. I tried adding an empty find offset tag node with an automatic focus (only far position snapshot). Then I added another find offset tag node with a far and close snapshot, but I am having reliability issues with this. I am finding that it is not finding the offset tag every time. Do you have any tips?
  • adubanaduban Posts: 5 Apprentice
    I tested out your instructions from your first post above since I wanted to make sure my waypoints would still work if I moved the tag. I followed the directions, created a "tag 2" and added in the transformations, but my robot tries to flip in on itself and its behavior doesn't match the waypoints from my "tag 1". Do you have any suggestions for what I can verify? 
  • bcastetsbcastets Vacuum Beta tester Posts: 673 Expert
    All tags are identical. In your case just register Tag1 and use it where you want to detect a tag and execute relative motion done with Tag1.

    Check ignore snapshopt position option to be able to take a picture of the Tag form any camera position. The picture will be taken form the last position before entering the Tag mode.

    As for the tag detection improvement, I recommend looking at this eLearning video. See the second video. It is explaining how we can create the perfect tag with few tips.
    We use vision parameters to make it as good as possible.
    One thing tat is important is to have the latest URCap Improvements have been done in the last few releases specifically for the Visual Offset.
    Make sure you are in the green section for the distance and the angle.

    Note that the ambiant light must be uniform for stable results.
Sign In or Register to comment.
Left ArrowBack to discussions page