Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jul 24, 2024
1 parent 943b263 commit afb4dca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion launch/ros2_video_streamer_node_launch.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from typing import Any, Dict, Tuple

from launch_ros.actions import Node

from launch.actions import DeclareLaunchArgument, OpaqueFunction
from launch.launch_context import LaunchContext
from launch.launch_description import LaunchDescription
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node


def generate_launch_description() -> LaunchDescription:
Expand Down
3 changes: 2 additions & 1 deletion launch/three_camera_launch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import os

import launch
from ament_index_python.packages import get_package_share_directory

import launch
from launch.actions import IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource

Expand Down
3 changes: 1 addition & 2 deletions ros2_video_streamer/ros2_video_streamer_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from ament_index_python.packages import get_package_share_directory
from builtin_interfaces.msg import Time
from cv2 import VideoCapture
from cv2.typing import MatLike
from cv_bridge import CvBridge
from rclpy.node import Node
from rclpy.qos import QoSPresetProfiles
Expand Down Expand Up @@ -166,7 +165,7 @@ def image_callback(self) -> None:

self.image_publisher_.publish(img_msg)

def get_image_msg(self, image: MatLike, time: Time) -> Image:
def get_image_msg(self, image, time: Time) -> Image:
"""
Convert cv2 image to ROS2 Image with CvBridge cv2 -> image msg.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from glob import glob
import os

from setuptools import find_packages, setup

Expand Down

0 comments on commit afb4dca

Please sign in to comment.