From 267b73c5792c1671ee360f608926e260b41c69c7 Mon Sep 17 00:00:00 2001 From: RonaldsonBellande Date: Sat, 29 Jun 2024 08:31:01 -0400 Subject: [PATCH] license --- ...d_computer_vision_face_detection.launch.py | 17 +++++++++++++++- ...de_2d_computer_vision_prediction.launch.py | 15 ++++++++++++++ .../setup.py | 15 ++++++++++++++ ...lande_2d_computer_vision_face_detection.py | 20 ++++++++++++++++--- .../bellande_2d_computer_vision_prediction.py | 15 ++++++++++++++ 5 files changed, 78 insertions(+), 4 deletions(-) diff --git a/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_face_detection.launch.py b/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_face_detection.launch.py index 6371e39..1dc94fa 100644 --- a/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_face_detection.launch.py +++ b/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_face_detection.launch.py @@ -1,3 +1,18 @@ +# Copyright (C) 2024 Bellande Robotics Sensors Research Innovation Center, Ronaldson Bellande +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + import os import sys import subprocess @@ -59,7 +74,7 @@ def ros2_launch_description(): nodes_to_launch.append(Node( package='ros_web_api_bellande_2d_computer_vision', executable='bellande_2d_computer_vision_face_detection.py', - name='prediction_node', + name='face_detection_node', output='screen', remappings=[('camera/image_raw', '/usb_cam/image_raw')] )) diff --git a/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_prediction.launch.py b/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_prediction.launch.py index 0ebfcde..8365a6e 100644 --- a/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_prediction.launch.py +++ b/ros_web_api_bellande_2d_computer_vision/launch/bellande_2d_computer_vision_prediction.launch.py @@ -1,3 +1,18 @@ +# Copyright (C) 2024 Bellande Robotics Sensors Research Innovation Center, Ronaldson Bellande +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + import os import sys import subprocess diff --git a/ros_web_api_bellande_2d_computer_vision/setup.py b/ros_web_api_bellande_2d_computer_vision/setup.py index 02eea37..5d671f5 100755 --- a/ros_web_api_bellande_2d_computer_vision/setup.py +++ b/ros_web_api_bellande_2d_computer_vision/setup.py @@ -1,3 +1,18 @@ +# Copyright (C) 2024 Bellande Robotics Sensors Research Innovation Center, Ronaldson Bellande +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup diff --git a/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_face_detection.py b/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_face_detection.py index 93d60c8..99892e1 100755 --- a/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_face_detection.py +++ b/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_face_detection.py @@ -1,3 +1,18 @@ +# Copyright (C) 2024 Bellande Robotics Sensors Research Innovation Center, Ronaldson Bellande +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + import json import os import requests @@ -42,13 +57,12 @@ def image_callback(msg): def main(): global api_url, pub - # Get the absolute path to the config file config_file_path = os.path.join(os.path.dirname(__file__), '../config/configs.json') - # Check if the config file exists + if not os.path.exists(config_file_path): print("Config file not found:", config_file_path) return - # Read configuration from config.json + with open(config_file_path, 'r') as config_file: config = json.load(config_file) url = config['url'] diff --git a/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_prediction.py b/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_prediction.py index 50e1cdc..1af5382 100755 --- a/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_prediction.py +++ b/ros_web_api_bellande_2d_computer_vision/src/bellande_2d_computer_vision_prediction.py @@ -1,3 +1,18 @@ +# Copyright (C) 2024 Bellande Robotics Sensors Research Innovation Center, Ronaldson Bellande +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + import json import os import requests