Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Missing pose when drawing camera lens #136

Copy link
Copy link
Closed
@ManuelZ

Description

@ManuelZ
Issue body actions

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.