Skip to content

Missing pose when drawing camera lens #136

Closed
@ManuelZ

Description

@ManuelZ

The following code shows cameras with parts of their lenses drawn on incorrect positions (using spatialmath 1.1.11):

import numpy as np
from machinevisiontoolbox.Camera import CentralCamera

R = np.eye(3)
for i in range(2):
    t = np.array([i, 1, 0])
    pose = SE3.Rt(R, t)
    CentralCamera.plot(pose=pose, scale=0.5)

image

I think the problem is here:

1216        handles = []
1217        handles.append(_render3D(ax, X, Y, Z, filled=filled, **kwargs))
1218        handles.append(
1219            _render3D(ax, X, (2 * centre[1] - Y), Z, filled=filled, pose=pose, **kwargs)
1220        )

There seems to be a missing pose=pose in line 1217. When I add that, I get correctly drawn lenses:

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions