From 00bcdb2449de4a0c7e2f8fcc6bc1665728b4e377 Mon Sep 17 00:00:00 2001 From: MihirGore23 Date: Sat, 10 Aug 2024 14:18:28 +0530 Subject: [PATCH 1/3] Add Launchers from Digit Classifier and Human Detection --- Launchers/digit_classifier.launch.py | 16 ++++++++++++++++ Launchers/human_detection_standard.py | 7 +++++++ Launchers/human_detection_webcam.launch.py | 16 ++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 Launchers/digit_classifier.launch.py create mode 100644 Launchers/human_detection_standard.py create mode 100644 Launchers/human_detection_webcam.launch.py diff --git a/Launchers/digit_classifier.launch.py b/Launchers/digit_classifier.launch.py new file mode 100644 index 000000000..49cb452db --- /dev/null +++ b/Launchers/digit_classifier.launch.py @@ -0,0 +1,16 @@ +import launch +from launch import LaunchDescription +from launch_ros.actions import Node + +def generate_launch_description(): + return LaunchDescription([ + Node( + package='v4l2_camera', + executable='v4l2_camera_node', + name='v4l2_camera_node', + parameters=[ + {'video_device': '/dev/video0'} + ], + ), + ]) + diff --git a/Launchers/human_detection_standard.py b/Launchers/human_detection_standard.py new file mode 100644 index 000000000..3e2d0101a --- /dev/null +++ b/Launchers/human_detection_standard.py @@ -0,0 +1,7 @@ +import launch +from launch import LaunchDescription + +def generate_launch_description(): + return LaunchDescription() + + diff --git a/Launchers/human_detection_webcam.launch.py b/Launchers/human_detection_webcam.launch.py new file mode 100644 index 000000000..49cb452db --- /dev/null +++ b/Launchers/human_detection_webcam.launch.py @@ -0,0 +1,16 @@ +import launch +from launch import LaunchDescription +from launch_ros.actions import Node + +def generate_launch_description(): + return LaunchDescription([ + Node( + package='v4l2_camera', + executable='v4l2_camera_node', + name='v4l2_camera_node', + parameters=[ + {'video_device': '/dev/video0'} + ], + ), + ]) + From 65fb74d7fea795a3552c4495ca95de90015d304a Mon Sep 17 00:00:00 2001 From: MihirGore23 Date: Sun, 11 Aug 2024 18:01:23 +0530 Subject: [PATCH 2/3] Club common launch files --- ...sifier.launch.py => generic_webcam.launch.py} | 0 Launchers/human_detection_webcam.launch.py | 16 ---------------- 2 files changed, 16 deletions(-) rename Launchers/{digit_classifier.launch.py => generic_webcam.launch.py} (100%) delete mode 100644 Launchers/human_detection_webcam.launch.py diff --git a/Launchers/digit_classifier.launch.py b/Launchers/generic_webcam.launch.py similarity index 100% rename from Launchers/digit_classifier.launch.py rename to Launchers/generic_webcam.launch.py diff --git a/Launchers/human_detection_webcam.launch.py b/Launchers/human_detection_webcam.launch.py deleted file mode 100644 index 49cb452db..000000000 --- a/Launchers/human_detection_webcam.launch.py +++ /dev/null @@ -1,16 +0,0 @@ -import launch -from launch import LaunchDescription -from launch_ros.actions import Node - -def generate_launch_description(): - return LaunchDescription([ - Node( - package='v4l2_camera', - executable='v4l2_camera_node', - name='v4l2_camera_node', - parameters=[ - {'video_device': '/dev/video0'} - ], - ), - ]) - From b4b03dc57e7bdc1f8f92db371d27e1c77bd4d12b Mon Sep 17 00:00:00 2001 From: MihirGore23 Date: Mon, 12 Aug 2024 18:22:25 +0530 Subject: [PATCH 3/3] Rename human detection stnadard launch --- ...n_detection_standard.py => human_detection_standard.launch.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Launchers/{human_detection_standard.py => human_detection_standard.launch.py} (100%) diff --git a/Launchers/human_detection_standard.py b/Launchers/human_detection_standard.launch.py similarity index 100% rename from Launchers/human_detection_standard.py rename to Launchers/human_detection_standard.launch.py