Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

299 user defined apriltag sizes #373

Merged
merged 4 commits into from
Nov 23, 2021
Merged

Conversation

nampereira
Copy link
Contributor

Close #299

@nampereira nampereira merged commit fe4a51c into master Nov 23, 2021
@nampereira
Copy link
Contributor Author

nampereira commented Nov 23, 2021

The ARENA apriltag detector and pose solver assumes the tag size from tag id, as shown in the table.

Tag ID Range Tag Size (mm)
[0,150] 150
[151,300] 100
[301,450] 50
[451,586] 20

To use apriltag markers in your scene with sizes different from the table above, add an ARMarker component to an object in your scene (by doing this, the position component of this object indicates the position of the marker in the scene) and its size (see example figure).

The example shows setting the size (50mm) of marker 0 (marker id):
image

This is the entire json payload for the object where the above example ARMarker component was added. Note that the position component indicates the marker is the origin (0,0,0 x,y,z) of the scene.

{
  "object_id": "origin_box",
  "persist": true,
  "type": "object",
  "action": "update",
  "data": {
    "object_type": "box",
    "depth": 0.05,
    "height": 0.01,
    "width": 0.05,
    "material": {
      "color": "#7f7f7f",
      "transparent": true,
      "opacity": 0.5
    },
    "position": {
      "x": 0,
      "y": 0,
      "z": 0
    },
    "rotation": {
      "x": 0,
      "y": 0,
      "z": 0
    },
    "armarker": {
      "lat": 40.4432,
      "lon": 79.9428,
      "markerid": "0",
      "markertype": "apriltag_36h11",
      "size": 50,
      "ele": 200
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Apriltag detector to support user-defined tag sizes
1 participant