Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kotaro Uetake <[email protected]>
  • Loading branch information
miursh and ktro2828 authored Dec 10, 2024
1 parent f5a0eda commit 73ee7b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,6 @@ def _convert(self) -> None:
if self._with_vehicle_status:
self._convert_vehicle_state()

if self._with_vehicle_status:
self._convert_vehicle_state()

def _calc_start_timestamp(self) -> float:
if self._start_timestamp < sys.float_info.epsilon:
start_timestamp = self._bag_reader.start_timestamp + self._skip_timestamp
Expand Down
3 changes: 1 addition & 2 deletions perception_dataset/utils/rosbag2.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ def pointcloud_msg_to_numpy(pointcloud_msg: PointCloud2) -> NDArray:
points = point_cloud2_to_array(pointcloud_msg)

# Extract the x, y, z coordinates and additional fields if available
xyz = points["xyz"]
points_arr = xyz
points_arr = points["xyz"]
if "intensity" in points.keys():
intensity = points["intensity"].astype(np.float32)
points_arr = np.hstack((points_arr, intensity))
Expand Down

0 comments on commit 73ee7b2

Please sign in to comment.