Skip to content

Marker detections object does not have tag_id filled #63

Description

@OldUser101

tag_id is not filled in the detections object. When printing the marker list, the Detection object is shown, and is confusing.

Correct:

TEAM.RED Marker 7: 0.425m @-4.28 degrees
{
  info.type = TEAM.RED
  info.id = 7
  info.owning_team = None
  dist = 0.425
  bearing.y = -4.28
  bearing.x = -99.1
  rotation.y = 0.16
  rotation.x = 3.61
  rotation.z = 1.76e+02
  info = TOO BIG TO PRINT
  detection = TOO BIG TO PRINT
}

Incorrect (tag_id should be set for completeness):

[{'info': <Marker type=TEAM.RED owning_team=None target_type=None />, 'detection': Detection object:
tag_family = b'tag36h11'
tag_id = None
hamming = 0
decision_margin = 47.00322341918945
homography = [[-8.75675817e+01 -2.87933956e+00  5.78601836e+02]
 [ 6.59858499e+00 -8.42934937e+01  4.74835626e+02]
 [-3.59206696e-04  5.98906281e-03  1.00000000e+00]]
center = [578.60183571 474.83562565]
corners = [[659.105896   381.52154541]
 [485.42205811 394.91738892]
 [497.06912231 569.34204102]
 [672.83673096 555.65881348]]
pose_R = [[-0.99701214 -0.07721666  0.00209187]
 [ 0.0771947  -0.99502045  0.0630499 ]
 [-0.00278705  0.063023    0.99800818]]
pose_T = [[-0.03168451]
 [-0.00509485]
 [ 0.42363932]]
pose_err = 7.426791565505177e-10
self.dist = 0.42485308011287315
self.rotation = Coords(x=3.613360747557457, y=0.1596862827584818, z=175.572647754969)
self.bearing = Coords(x=-99.1349306065713, y=-4.277258771686347, z=-0.6890279606693681)
, 'dist': 0.42485308011287315, 'bearing': Coords(x=-99.1349306065713, y=-4.277258771686347, z=-0.6890279606693681), 'rotation': Coords(x=3.613360747557457, y=0.1596862827584818, z=175.572647754969)}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions