Skip to content

Commit

Permalink
modified zed cam func
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan-Datta committed Sep 11, 2024
1 parent ed86b06 commit 7b5e4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros2_ws/src/python_workspace/python_workspace/camera_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def publish_video_frames(self): # replace with decord later

cap.release()

def camera_publisher(self):
def publish_zed_frames(self):
# Create a ZED camera object
zed = sl.Camera()

Expand Down Expand Up @@ -133,7 +133,7 @@ def camera_publisher(self):
if err == sl.ERROR_CODE.SUCCESS:
self.index += 1
tic = time.perf_counter()
zed.retrieve_image(image_zed, sl.VIEW.LEFT_UNRECTIFIED, sl.MEM.GPU, image_size)
zed.retrieve_image(image_zed, sl.VIEW.LEFT_UNRECTIFIED, sl.MEM.CPU, image_size)
zed.get_sensors_data(sensors_data, sl.TIME_REFERENCE.IMAGE)
accel_data = sensors_data.get_imu_data().get_linear_acceleration()

Expand Down

0 comments on commit 7b5e4ef

Please sign in to comment.