Skip to content

Commit 28afecc

Browse files
committed
mark Camera as not a sensor. Refactor to make Camera a sensor can be done in future PR
1 parent 0166a7a commit 28afecc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

genesis/vis/camera.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import inspect
2+
import math
23
import os
34
import time
4-
import math
5-
from functools import lru_cache
65

76
import cv2
87
import numpy as np
98
import torch
109

1110
import genesis as gs
1211
import genesis.utils.geom as gu
13-
from genesis.sensors import Sensor
12+
from genesis.repr_base import RBC
1413
from genesis.utils.misc import tensor_to_array
1514

1615

@@ -26,7 +25,7 @@ def _T_to_quat_for_madrona(T):
2625
return torch.stack([x + w, x - w, y - z, y + z], dim=1) / math.sqrt(2.0)
2726

2827

29-
class Camera(Sensor):
28+
class Camera(RBC):
3029
"""
3130
A camera which can be used to render RGB, depth, and segmentation images.
3231
Supports either rasterizer or raytracer for rendering, specified by `scene.renderer`.

0 commit comments

Comments
 (0)