Spaces:
Sleeping
Sleeping
try to fix helper camera visualization
Browse files- visualization/logger.py +7 -9
visualization/logger.py
CHANGED
@@ -69,7 +69,7 @@ class SimulationLogger:
|
|
69 |
centers=np.array(centers),
|
70 |
half_sizes=np.array(half_sizes),
|
71 |
colors=np.array(colors),
|
72 |
-
|
73 |
fill_mode="solid"
|
74 |
),
|
75 |
timeless=True
|
@@ -147,7 +147,7 @@ class SimulationLogger:
|
|
147 |
try:
|
148 |
position = vector3_to_numpy(helper_keyframe['position'])
|
149 |
rotation_q = euler_to_quaternion(helper_keyframe['angle'])
|
150 |
-
|
151 |
rr.log(
|
152 |
f"world/helper_keyframes/camera_{keyframe_idx}",
|
153 |
rr.Transform3D(
|
@@ -167,15 +167,13 @@ class SimulationLogger:
|
|
167 |
),
|
168 |
timeless=True
|
169 |
)
|
170 |
-
|
171 |
rr.log(
|
172 |
-
"world/helper_keyframes/
|
173 |
-
rr.Points3D(
|
174 |
-
position,
|
175 |
-
colors=np.full((len(position), 4), [1.0, 1.0, 0.0, 1.0])
|
176 |
-
),
|
177 |
timeless=True
|
178 |
)
|
179 |
|
180 |
except Exception as e:
|
181 |
-
print(
|
|
|
|
69 |
centers=np.array(centers),
|
70 |
half_sizes=np.array(half_sizes),
|
71 |
colors=np.array(colors),
|
72 |
+
show_labels=False,
|
73 |
fill_mode="solid"
|
74 |
),
|
75 |
timeless=True
|
|
|
147 |
try:
|
148 |
position = vector3_to_numpy(helper_keyframe['position'])
|
149 |
rotation_q = euler_to_quaternion(helper_keyframe['angle'])
|
150 |
+
|
151 |
rr.log(
|
152 |
f"world/helper_keyframes/camera_{keyframe_idx}",
|
153 |
rr.Transform3D(
|
|
|
167 |
),
|
168 |
timeless=True
|
169 |
)
|
170 |
+
|
171 |
rr.log(
|
172 |
+
f"world/helper_keyframes/camera_{keyframe_idx}/point",
|
173 |
+
rr.Points3D(colors=[1.0, 1.0, 0.0, 1.0]),
|
|
|
|
|
|
|
174 |
timeless=True
|
175 |
)
|
176 |
|
177 |
except Exception as e:
|
178 |
+
print(
|
179 |
+
f"Error logging helper keyframe {keyframe_idx}: {str(e)}")
|