Skip to content

Commit

Permalink
fix(perception_benchmark_tool): fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: Kaan Colak <kcolak@leodrive.ai>
  • Loading branch information
kaancolak committed Apr 21, 2022
1 parent 4368544 commit c920d44
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
import tensorflow as tf
from waymo_open_dataset import dataset_pb2
from waymo_open_dataset import dataset_pb2 as open_dataset
from waymo_open_dataset.utils import frame_utils
from waymo_open_dataset.utils import range_image_utils
from waymo_open_dataset.utils import transform_utils


class WaymoHandler:
def __init__(self, segment_path):
start = time.time()

self.lidars_tf = {}
self.cameras_tf = {}
Expand Down Expand Up @@ -121,7 +119,6 @@ def get_decoded_point_cloud(self, frame):
camera_projections[laser.name].append(cp)

calibrations = sorted(frame.context.laser_calibrations, key=lambda c: c.name)
lasers = sorted(frame.lasers, key=lambda laser: laser.name)
points = []

frame_pose = tf.convert_to_tensor(np.reshape(np.array(frame.pose.transform), [4, 4]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ def create_camera_info(self, frame_id, camera_calibration, ros_time):
camera_info.header.stamp = ros_time.to_msg()
camera_info.width = camera_calibration["width"]
camera_info.height = camera_calibration["height"]
t_cam_to_vehicle = camera_calibration["cam_to_vehicle"]
camera_info.p = (
np.array(camera_calibration["vehicle_to_image"]).astype(float).flatten().tolist()
)
Expand Down

0 comments on commit c920d44

Please sign in to comment.