Skip to content

Missing pose when drawing camera lens #136

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy