You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value of asseme_ego_compensated is True, but my laser point cloud does not have motion compensation, so I set asseme_ego_compensated to false.
However, asseme_ego_compensated in _generaterarys'from_points() is still true.
@dataclassclassCustomData(ADDataParser):
.....
.....
def_get_lidars(self) ->Tuple[Lidars, List[Path]]:
"""Returns lidar info and loaded point clouds."""lidars=Lidars(
lidar_to_worlds=poses[:, :3, :4],
lidar_type=LidarType.VELODYNE128,
times=times,
assume_ego_compensated=False, # change heremetadata={"sensor_idxs": idxs},
horizontal_beam_divergence=HORIZONTAL_BEAM_DIVERGENCE,
vertical_beam_divergence=VERTICAL_BEAM_DIVERGENCE,
)
returnlidars, lidar_filenames
def_generate_rays_from_points(
self,
lidar_indices: Int[Tensor, "*num_rays num_lidars_batch_dims"],
points: Float[Tensor, "*num_points point_dim"],
lidar_opt_to_lidar: Optional[Float[Tensor, "*num_rays 3 4"]] =None,
) ->RayBundle:
.......
ifpoints.shape[-1] >=5andself.metadataand"velocities"inself.metadata:
# Offset the point origins according to timediff and velocityorigins=origins+points[..., 4:5] *self.metadata["velocities"][lidar_indices.squeeze(-1)]
ifnotself.assume_ego_compensated: # here# offset the world points according to velocity toopoints_world=points_world+points[..., 4:5] *self.metadata["velocities"][lidar_indices.squeeze(-1)]
the callback stack is below:
I think it's the class Lidar base class TensorDataclass problem, but I don't konw how to fix it. I temporarily set the default value of asseme_ego_compensated to false.
The text was updated successfully, but these errors were encountered:
Good catch! It seems that when slicing a TensorDataclass it will init a new TensorDataclass with the default init params. For your application, the easiest thing will likely be to change the default. But I'll look at a more general solution
The default value of
asseme_ego_compensated
isTrue
, but my laser point cloud does not have motion compensation, so I set asseme_ego_compensated to false.However,
asseme_ego_compensated
in _generaterarys'from_points() is still true.the callback stack is below:
I think it's the
class Lidar
base classTensorDataclass
problem, but I don't konw how to fix it. I temporarily set the default value ofasseme_ego_compensated
to false.The text was updated successfully, but these errors were encountered: