latest pushes
Some checks failed
Docker Image CI / build_ros1 (push) Has been cancelled
Docker Image CI / build_ros2 (push) Has been cancelled
GitHub Clone Count Update Everyday / build (push) Has been cancelled

This commit is contained in:
Ronaldson Bellande 2024-12-12 16:43:52 -05:00
parent 150f842a1d
commit 48cbbbff19
135 changed files with 629 additions and 257 deletions

View File

@ -16,7 +16,7 @@
## 📧 Explore the Docker image for the Bellande Robotic VPN: ## 📧 Explore the Docker image for the Bellande Robotic VPN:
- **Robotic VPN**: [![ROS1 Docker Image](https://img.shields.io/docker/pulls/ronaldsonbellande/bellande_robotic_vpn)](https://hub.docker.com/r/ronaldsonbellande/bellande_robotic_vpn) - **Robotic VPN**: [![ROS1 Docker Image](https://img.shields.io/docker/pulls/ronaldsonbellande/bellande_robotic_vpn)](https://hub.docker.com/r/ronaldsonbellande/bellande_robotic_vpn)
## Use the Web-ROS-API Docker Image for your needs with the Bellande API ## Use the Web-API Docker Image for your needs with the Bellande API
- **ROS1**: [![ROS1 Docker Image](https://img.shields.io/docker/pulls/ronaldsonbellande/bellande_web_api_packages_ros1)](https://hub.docker.com/r/ronaldsonbellande/bellande_web_api_packages_ros1) - **ROS1**: [![ROS1 Docker Image](https://img.shields.io/docker/pulls/ronaldsonbellande/bellande_web_api_packages_ros1)](https://hub.docker.com/r/ronaldsonbellande/bellande_web_api_packages_ros1)
- **ROS2**: [![ROS2 Docker Image](https://img.shields.io/docker/pulls/ronaldsonbellande/bellande_web_api_packages_ros2)](https://hub.docker.com/r/ronaldsonbellande/bellande_web_api_packages_ros2) - **ROS2**: [![ROS2 Docker Image](https://img.shields.io/docker/pulls/ronaldsonbellande/bellande_web_api_packages_ros2)](https://hub.docker.com/r/ronaldsonbellande/bellande_web_api_packages_ros2)
@ -44,6 +44,5 @@ The primary functionality of this API is to provide access to Bellande Algorithm
To begin leveraging Bellande's algorithms in your projects, simply pull the Docker image and integrate the API into your robotic environment. Detailed instructions on how to deploy and utilize the API can be found in the provided documentation. To begin leveraging Bellande's algorithms in your projects, simply pull the Docker image and integrate the API into your robotic environment. Detailed instructions on how to deploy and utilize the API can be found in the provided documentation.
# License # License
This API's is distributed under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html) with all the code Publicly and Privately use case, see [LICENSE](https://github.com/RonaldsonBellande/bellande_web_ros_api/blob/main/LICENSE) and [NOTICE](https://github.com/RonaldsonBellande/bellande_web_ros_api/blob/main/LICENSE) for more information. This API's is distributed under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html) with all the code Publicly and Privately use case, see [LICENSE](https://github.com/RonaldsonBellande/bellande_web_ros_api/blob/main/LICENSE) and [NOTICE](https://github.com/RonaldsonBellande/bellande_web_ros_api/blob/main/LICENSE) for more information.

View File

@ -1,53 +0,0 @@
<?xml version="1.0"?>
<!--
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 <https://www.gnu.org/licenses/>.
-->
<package format="3">
<name>ros_web_api_bellande_adaptive_alternate_path_creation</name>
<version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>
<maintainer email="ronaldsonbellande@gmail.com">Ronaldson Bellande</maintainer>
<license>Apache License 2.0</license>
<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>
<build_depend condition="$ROS_VERSION == 1">roscpp</build_depend>
<build_depend condition="$ROS_VERSION == 1">rospy</build_depend>
<build_export_depend condition="$ROS_VERSION == 1">roscpp</build_export_depend>
<build_export_depend condition="$ROS_VERSION == 1">rospy</build_export_depend>
<exec_depend condition="$ROS_VERSION == 1">roscpp</exec_depend>
<exec_depend condition="$ROS_VERSION == 1">rospy</exec_depend>
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake</buildtool_depend>
<build_depend condition="$ROS_VERSION == 2">rclcpp</build_depend>
<build_depend condition="$ROS_VERSION == 2">rclpy</build_depend>
<build_export_depend condition="$ROS_VERSION == 2">rclcpp</build_export_depend>
<build_export_depend condition="$ROS_VERSION == 2">rclpy</build_export_depend>
<exec_depend condition="$ROS_VERSION == 2">rclcpp</exec_depend>
<exec_depend condition="$ROS_VERSION == 2">rclpy</exec_depend>
<export>
</export>
</package>

View File

@ -1,54 +0,0 @@
<?xml version="1.0"?>
<!--
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 <https://www.gnu.org/licenses/>.
-->
<package format="3">
<name>ros_web_api_bellande_adaptive_continuious_control_system</name>
<version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>
<maintainer email="ronaldsonbellande@gmail.com">Ronaldson Bellande</maintainer>
<license>Apache License 2.0</license>
<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>
<build_depend condition="$ROS_VERSION == 1">roscpp</build_depend>
<build_depend condition="$ROS_VERSION == 1">rospy</build_depend>
<build_export_depend condition="$ROS_VERSION == 1">roscpp</build_export_depend>
<build_export_depend condition="$ROS_VERSION == 1">rospy</build_export_depend>
<exec_depend condition="$ROS_VERSION == 1">roscpp</exec_depend>
<exec_depend condition="$ROS_VERSION == 1">rospy</exec_depend>
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake</buildtool_depend>
<build_depend condition="$ROS_VERSION == 2">rclcpp</build_depend>
<build_depend condition="$ROS_VERSION == 2">rclpy</build_depend>
<build_export_depend condition="$ROS_VERSION == 2">rclcpp</build_export_depend>
<build_export_depend condition="$ROS_VERSION == 2">rclpy</build_export_depend>
<exec_depend condition="$ROS_VERSION == 2">rclcpp</exec_depend>
<exec_depend condition="$ROS_VERSION == 2">rclpy</exec_depend>
<export>
</export>
</package>

View File

@ -1,11 +0,0 @@
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
scripts=['src/bellande_step_api_2d.py'],
packages=['ros_web_api_bellande_step'],
package_dir={'': 'src'},
)
setup(**setup_args)

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_2d_computer_vision) project(web_api_bellande_2d_computer_vision)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -27,7 +27,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"usb_cam", "usb_cam_node", "name:=camera", "usb_cam", "usb_cam_node", "name:=camera",
@ -40,12 +40,12 @@ def ros1_launch_description():
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.py", "name:=face_detection_node" "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.py", "name:=face_detection_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" "args:=-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz"
]) ])
# Execute the launch command # Execute the launch command
@ -72,7 +72,7 @@ def ros2_launch_description():
)) ))
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_2d_computer_vision', package='web_api_bellande_2d_computer_vision',
executable='bellande_2d_computer_vision_face_detection.py', executable='bellande_2d_computer_vision_face_detection.py',
name='face_detection_node', name='face_detection_node',
output='screen', output='screen',
@ -83,7 +83,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz'] arguments=['-d', '$(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -27,7 +27,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"usb_cam", "usb_cam_node", "name:=camera", "usb_cam", "usb_cam_node", "name:=camera",
@ -40,12 +40,12 @@ def ros1_launch_description():
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.py", "name:=face_detection_node" "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.py", "name:=face_detection_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" "args:=-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz"
]) ])
# Execute the launch command # Execute the launch command
@ -72,7 +72,7 @@ def ros2_launch_description():
)) ))
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_2d_computer_vision', package='web_api_bellande_2d_computer_vision',
executable='bellande_2d_computer_vision_face_detection.py', executable='bellande_2d_computer_vision_face_detection.py',
name='face_detection_node', name='face_detection_node',
output='screen', output='screen',
@ -83,7 +83,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz'] arguments=['-d', '$(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -27,7 +27,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_object_detection.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_object_detection.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"usb_cam", "usb_cam_node", "name:=camera", "usb_cam", "usb_cam_node", "name:=camera",
@ -40,12 +40,12 @@ def ros1_launch_description():
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.py", "name:=face_detection_node" "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_face_detection.py", "name:=face_detection_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" "args:=-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz"
]) ])
# Execute the launch command # Execute the launch command
@ -72,7 +72,7 @@ def ros2_launch_description():
)) ))
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_2d_computer_vision', package='web_api_bellande_2d_computer_vision',
executable='bellande_2d_computer_vision_face_detection.py', executable='bellande_2d_computer_vision_face_detection.py',
name='face_detection_node', name='face_detection_node',
output='screen', output='screen',
@ -83,7 +83,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz'] arguments=['-d', '$(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -27,7 +27,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_prediction.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_prediction.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"usb_cam", "usb_cam_node", "name:=camera", "usb_cam", "usb_cam_node", "name:=camera",
@ -40,12 +40,12 @@ def ros1_launch_description():
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_prediction.py", "name:=prediction_node" "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_prediction.py", "name:=prediction_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" "args:=-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz"
]) ])
# Execute the launch command # Execute the launch command
@ -72,7 +72,7 @@ def ros2_launch_description():
)) ))
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_2d_computer_vision', package='web_api_bellande_2d_computer_vision',
executable='bellande_2d_computer_vision_prediction.py', executable='bellande_2d_computer_vision_prediction.py',
name='prediction_node', name='prediction_node',
output='screen', output='screen',
@ -83,7 +83,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz'] arguments=['-d', '$(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -27,7 +27,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_semantic_segmentation.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_semantic_segmentation.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"usb_cam", "usb_cam_node", "name:=camera", "usb_cam", "usb_cam_node", "name:=camera",
@ -40,12 +40,12 @@ def ros1_launch_description():
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_semantic_segmentation.py", "name:=face_detection_node" "web_api_bellande_2d_computer_vision", "bellande_2d_computer_vision_semantic_segmentation.py", "name:=face_detection_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" "args:=-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz"
]) ])
# Execute the launch command # Execute the launch command
@ -72,7 +72,7 @@ def ros2_launch_description():
)) ))
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_2d_computer_vision', package='web_api_bellande_2d_computer_vision',
executable='bellande_2d_computer_vision_semantic_segmentation.py', executable='bellande_2d_computer_vision_semantic_segmentation.py',
name='face_detection_node', name='face_detection_node',
output='screen', output='screen',
@ -83,7 +83,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz'] arguments=['-d', '$(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -25,13 +25,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<param name="io_method" value="mmap" /> <param name="io_method" value="mmap" />
</node> </node>
<node name="face_detection_node" pkg="ros_web_api_bellande_2d_computer_vision" <node name="face_detection_node" pkg="web_api_bellande_2d_computer_vision"
type="bellande_2d_computer_vision_face_detection.py" type="bellande_2d_computer_vision_face_detection.py"
output="screen"> output="screen">
<remap from="camera/image_raw" to="/usb_cam/image_raw" /> <remap from="camera/image_raw" to="/usb_cam/image_raw" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" /> args="-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" />
</launch> </launch>

View File

@ -25,13 +25,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<param name="io_method" value="mmap" /> <param name="io_method" value="mmap" />
</node> </node>
<node name="instance_segmentation_node" pkg="ros_web_api_bellande_2d_computer_vision" <node name="instance_segmentation_node" pkg="web_api_bellande_2d_computer_vision"
type="bellande_2d_computer_vision_instance_segmentation.py" type="bellande_2d_computer_vision_instance_segmentation.py"
output="screen"> output="screen">
<remap from="camera/image_raw" to="/usb_cam/image_raw" /> <remap from="camera/image_raw" to="/usb_cam/image_raw" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" /> args="-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" />
</launch> </launch>

View File

@ -25,13 +25,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<param name="io_method" value="mmap" /> <param name="io_method" value="mmap" />
</node> </node>
<node name="object_detection_node" pkg="ros_web_api_bellande_2d_computer_vision" <node name="object_detection_node" pkg="web_api_bellande_2d_computer_vision"
type="bellande_2d_computer_vision_object_detection.py" type="bellande_2d_computer_vision_object_detection.py"
output="screen"> output="screen">
<remap from="camera/image_raw" to="/usb_cam/image_raw" /> <remap from="camera/image_raw" to="/usb_cam/image_raw" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" /> args="-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" />
</launch> </launch>

View File

@ -25,12 +25,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<param name="io_method" value="mmap" /> <param name="io_method" value="mmap" />
</node> </node>
<node name="prediction_node" pkg="ros_web_api_bellande_2d_computer_vision" <node name="prediction_node" pkg="web_api_bellande_2d_computer_vision"
type="bellande_2d_computer_vision_prediction.py" output="screen"> type="bellande_2d_computer_vision_prediction.py" output="screen">
<remap from="camera/image_raw" to="/usb_cam/image_raw" /> <remap from="camera/image_raw" to="/usb_cam/image_raw" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" /> args="-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" />
</launch> </launch>

View File

@ -25,13 +25,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<param name="io_method" value="mmap" /> <param name="io_method" value="mmap" />
</node> </node>
<node name="face_detection_node" pkg="ros_web_api_bellande_2d_computer_vision" <node name="face_detection_node" pkg="web_api_bellande_2d_computer_vision"
type="bellande_2d_computer_vision_semantic_segmentation.py" type="bellande_2d_computer_vision_semantic_segmentation.py"
output="screen"> output="screen">
<remap from="camera/image_raw" to="/usb_cam/image_raw" /> <remap from="camera/image_raw" to="/usb_cam/image_raw" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" /> args="-d $(find web_api_bellande_2d_computer_vision)/rviz/visualization.rviz" />
</launch> </launch>

View File

@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<package format="3"> <package format="3">
<name>ros_web_api_bellande_speech_detection</name> <name>web_api_bellande_2d_computer_vision</name>
<version>0.0.1</version> <version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description> <description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author> <author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>

View File

@ -19,7 +19,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=['src/bellande_2d_computer_vision_prediction.py', 'src/bellande_2d_computer_vision_face_detection.py', 'src/bellande_2d_computer_vision_object_detection.py', 'src/bellande_2d_computer_vision_instance_segmentation.py', 'src/bellande_2d_computer_vision_semantic_segmentation.py'], scripts=['src/bellande_2d_computer_vision_prediction.py', 'src/bellande_2d_computer_vision_face_detection.py', 'src/bellande_2d_computer_vision_object_detection.py', 'src/bellande_2d_computer_vision_instance_segmentation.py', 'src/bellande_2d_computer_vision_semantic_segmentation.py'],
packages=['ros_web_api_bellande_2d_computer_vision'], packages=['web_api_bellande_2d_computer_vision'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_3d_computer_vision) project(web_api_bellande_3d_computer_vision)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -26,20 +26,20 @@ from launch.substitutions import LaunchConfiguration
def ros1_launch_description(): def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
roslaunch_command = ["roslaunch", "ros_web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"param", "config_file", "param", "config_file",
"value:=$(find ros_web_api_bellande_3d_computer_vision)/config/configs.json" "value:=$(find web_api_bellande_3d_computer_vision)/config/configs.json"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.py", "name:=pointcloud_prediction_node" "web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.py", "name:=pointcloud_prediction_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" "args:=-d $(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz"
]) ])
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -49,7 +49,7 @@ def ros2_launch_description():
nodes_to_launch = [] nodes_to_launch = []
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_3d_computer_vision', package='web_api_bellande_3d_computer_vision',
executable='bellande_3d_computer_vision_prediction.py', executable='bellande_3d_computer_vision_prediction.py',
name='pointcloud_prediction_node', name='pointcloud_prediction_node',
output='screen', output='screen',
@ -61,7 +61,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz'] arguments=['-d', '$(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -26,20 +26,20 @@ from launch.substitutions import LaunchConfiguration
def ros1_launch_description(): def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
roslaunch_command = ["roslaunch", "ros_web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_object_detection.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_object_detection.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"param", "config_file", "param", "config_file",
"value:=$(find ros_web_api_bellande_3d_computer_vision)/config/configs.json" "value:=$(find web_api_bellande_3d_computer_vision)/config/configs.json"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_object_detection.py", "name:=pointcloud_object_detection_node" "web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_object_detection.py", "name:=pointcloud_object_detection_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" "args:=-d $(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz"
]) ])
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -49,7 +49,7 @@ def ros2_launch_description():
nodes_to_launch = [] nodes_to_launch = []
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_3d_computer_vision', package='web_api_bellande_3d_computer_vision',
executable='pointcloud_object_detection_node.py', executable='pointcloud_object_detection_node.py',
name='pointcloud_object_detection_node', name='pointcloud_object_detection_node',
output='screen', output='screen',
@ -61,7 +61,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz'] arguments=['-d', '$(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -26,20 +26,20 @@ from launch.substitutions import LaunchConfiguration
def ros1_launch_description(): def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
roslaunch_command = ["roslaunch", "ros_web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.launch"] + args
roslaunch_command.extend([ roslaunch_command.extend([
"param", "config_file", "param", "config_file",
"value:=$(find ros_web_api_bellande_3d_computer_vision)/config/configs.json" "value:=$(find web_api_bellande_3d_computer_vision)/config/configs.json"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"ros_web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.py", "name:=pointcloud_prediction_node" "web_api_bellande_3d_computer_vision", "bellande_3d_computer_vision_prediction.py", "name:=pointcloud_prediction_node"
]) ])
roslaunch_command.extend([ roslaunch_command.extend([
"rviz", "rviz", "name:=rviz", "rviz", "rviz", "name:=rviz",
"args:=-d $(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" "args:=-d $(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz"
]) ])
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -49,7 +49,7 @@ def ros2_launch_description():
nodes_to_launch = [] nodes_to_launch = []
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_3d_computer_vision', package='web_api_bellande_3d_computer_vision',
executable='bellande_3d_computer_vision_prediction.py', executable='bellande_3d_computer_vision_prediction.py',
name='pointcloud_prediction_node', name='pointcloud_prediction_node',
output='screen', output='screen',
@ -61,7 +61,7 @@ def ros2_launch_description():
package='rviz2', package='rviz2',
executable='rviz2', executable='rviz2',
name='rviz', name='rviz',
arguments=['-d', '$(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz'] arguments=['-d', '$(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz']
)) ))
return LaunchDescription(nodes_to_launch) return LaunchDescription(nodes_to_launch)

View File

@ -17,14 +17,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<launch> <launch>
<param name="config_file" <param name="config_file"
value="$(find ros_web_api_bellande_3d_computer_vision)/config/configs.json" /> value="$(find web_api_bellande_3d_computer_vision)/config/configs.json" />
<node name="pointcloud_prediction_node" pkg="ros_web_api_bellande_3d_computer_vision" <node name="pointcloud_prediction_node" pkg="web_api_bellande_3d_computer_vision"
type="bellande_3d_computer_vision_prediction.py" output="screen"> type="bellande_3d_computer_vision_prediction.py" output="screen">
<remap from="input_pointcloud" to="/pointcloud_topic" /> <remap from="input_pointcloud" to="/pointcloud_topic" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" /> args="-d $(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" />
</launch> </launch>

View File

@ -17,14 +17,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<launch> <launch>
<param name="config_file" <param name="config_file"
value="$(find ros_web_api_bellande_3d_computer_vision)/config/configs.json" /> value="$(find web_api_bellande_3d_computer_vision)/config/configs.json" />
<node name="pointcloud_object_detection_node" pkg="ros_web_api_bellande_3d_computer_vision" <node name="pointcloud_object_detection_node" pkg="web_api_bellande_3d_computer_vision"
type="pointcloud_object_detection_node.py" output="screen"> type="pointcloud_object_detection_node.py" output="screen">
<remap from="input_pointcloud" to="/pointcloud_topic" /> <remap from="input_pointcloud" to="/pointcloud_topic" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" /> args="-d $(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" />
</launch> </launch>

View File

@ -17,14 +17,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<launch> <launch>
<param name="config_file" <param name="config_file"
value="$(find ros_web_api_bellande_3d_computer_vision)/config/configs.json" /> value="$(find web_api_bellande_3d_computer_vision)/config/configs.json" />
<node name="pointcloud_prediction_node" pkg="ros_web_api_bellande_3d_computer_vision" <node name="pointcloud_prediction_node" pkg="web_api_bellande_3d_computer_vision"
type="bellande_3d_computer_vision_prediction.py" output="screen"> type="bellande_3d_computer_vision_prediction.py" output="screen">
<remap from="input_pointcloud" to="/pointcloud_topic" /> <remap from="input_pointcloud" to="/pointcloud_topic" />
</node> </node>
<node name="rviz" pkg="rviz" type="rviz" <node name="rviz" pkg="rviz" type="rviz"
args="-d $(find ros_web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" /> args="-d $(find web_api_bellande_3d_computer_vision)/rviz/pointcloud_visualization.rviz" />
</launch> </launch>

View File

@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<package format="3"> <package format="3">
<name>ros_web_api_bellande_3d_computer_vision</name> <name>web_api_bellande_3d_computer_vision</name>
<version>0.0.1</version> <version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description> <description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author> <author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>

View File

@ -4,7 +4,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=['src/bellande_3d_computer_vision_prediction.py', 'src/bellande_3d_computer_vision_object_detection.py', 'src/bellande_3d_computer_vision_instance_segmentation.py'], scripts=['src/bellande_3d_computer_vision_prediction.py', 'src/bellande_3d_computer_vision_object_detection.py', 'src/bellande_3d_computer_vision_instance_segmentation.py'],
packages=['ros_web_api_bellande_3d_computer_vision'], packages=['web_api_bellande_3d_computer_vision'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_adaptive_alternate_path_creation) project(web_api_bellande_adaptive_alternate_path_creation)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -12,7 +12,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_step", "bellande_step_api_2d.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_step", "bellande_step_api_2d.launch"] + args
# Execute the launch command # Execute the launch command
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -34,7 +34,7 @@ def ros2_launch_description():
x1_arg, y1_arg, x2_arg, y2_arg, limit_arg, x1_arg, y1_arg, x2_arg, y2_arg, limit_arg,
] ]
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_step', package='web_api_bellande_step',
executable='bellande_step_api_2d.py', executable='bellande_step_api_2d.py',
name='bellande_step_api_2d_node', name='bellande_step_api_2d_node',
output='screen', output='screen',

View File

@ -21,7 +21,7 @@ the License.
<arg name="y2" /> <arg name="y2" />
<arg name="limit" /> <arg name="limit" />
<node pkg="ros_web_api_bellande_step" type="bellande_step_api_2d.py" <node pkg="web_api_bellande_step" type="bellande_step_api_2d.py"
name="bellande_step_api_2d_node" output="screen"> name="bellande_step_api_2d_node" output="screen">
<param name="x1" value="$(arg x1)" /> <param name="x1" value="$(arg x1)" />
<param name="y1" value="$(arg y1)" /> <param name="y1" value="$(arg y1)" />

View File

@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<package format="3"> <package format="3">
<name>ros_web_api_bellande_extremum_optimization</name> <name>web_api_bellande_adaptive_alternate_path_creation</name>
<version>0.0.1</version> <version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description> <description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author> <author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>

View File

@ -23,7 +23,7 @@ cd ..
# Run ROS launch file # Run ROS launch file
if [ $ROS_VERSION -eq 1 ]; then if [ $ROS_VERSION -eq 1 ]; then
roslaunch ros_web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 roslaunch web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
else else
ros2 launch ros_web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 ros2 launch web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
fi fi

View File

@ -4,7 +4,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=['src/bellande_step_api_2d.py'], scripts=['src/bellande_step_api_2d.py'],
packages=['ros_web_api_bellande_step'], packages=['web_api_bellande_step'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_adaptive_continuious_control_system) project(web_api_bellande_adaptive_continuious_control_system)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -23,7 +23,7 @@ from launch.substitutions import LaunchConfiguration
def ros1_launch_description(): def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
roslaunch_command = ["roslaunch", "ros_web_api_bellande_adaptive_continuious_control_system", "bellande_control_system.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_adaptive_continuious_control_system", "bellande_control_system.launch"] + args
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
def ros2_launch_description(): def ros2_launch_description():
@ -36,7 +36,7 @@ def ros2_launch_description():
] ]
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_adaptive_continuious_control_system', package='web_api_bellande_adaptive_continuious_control_system',
executable='bellande_control_system.py', executable='bellande_control_system.py',
name='bellande_control_system_node', name='bellande_control_system_node',
output='screen', output='screen',

View File

@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<package format="3"> <package format="3">
<name>ros_web_api_bellande_adaptive_continuious_controller</name> <name>web_api_bellande_adaptive_continuious_control_system</name>
<version>0.0.1</version> <version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description> <description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author> <author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>

View File

@ -19,7 +19,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=['src/bellande_control_system.py'], scripts=['src/bellande_control_system.py'],
packages=['ros_web_api_bellande_adaptive_continuious_control_system'], packages=['web_api_bellande_adaptive_continuious_control_system'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_adaptive_continuious_controller) project(web_api_bellande_adaptive_continuious_controller)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -25,7 +25,7 @@ def ros1_launch_description():
# Get command-line arguments # Get command-line arguments
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch command # Construct the ROS 1 launch command
roslaunch_command = ["roslaunch", "ros_web_api_bellande_adaptive_continuious_controller", "bellande_controller.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_adaptive_continuious_controller", "bellande_controller.launch"] + args
# Execute the launch command # Execute the launch command
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -44,7 +44,7 @@ def ros2_launch_description():
] ]
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_adaptive_continuious_controller', package='web_api_bellande_adaptive_continuious_controller',
executable='bellande_controller.py', executable='bellande_controller.py',
name='bellande_controller_node', name='bellande_controller_node',
output='screen', output='screen',

View File

@ -24,7 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<arg name="output_limits" default="[-1000.0, 1000.0]"/> <arg name="output_limits" default="[-1000.0, 1000.0]"/>
<!-- Launch the BellandeController node --> <!-- Launch the BellandeController node -->
<node name="bellande_controller_node" pkg="ros_web_api_bellande_adaptive_continuious_controller" type="bellande_controller.py" output="screen"> <node name="bellande_controller_node" pkg="web_api_bellande_adaptive_continuious_controller" type="bellande_controller.py" output="screen">
<param name="gains" value="$(arg gains)"/> <param name="gains" value="$(arg gains)"/>
<param name="name" value="$(arg name)"/> <param name="name" value="$(arg name)"/>
<param name="output_limits" value="$(arg output_limits)"/> <param name="output_limits" value="$(arg output_limits)"/>

View File

@ -15,8 +15,9 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<package format="3"> <package format="3">
<name>ros_web_api_bellande_motion_probabilistic</name> <name>web_api_bellande_adaptive_continuious_controller</name>
<version>0.0.1</version> <version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description> <description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author> <author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>

View File

@ -19,7 +19,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=['src/bellande_controller.py'], scripts=['src/bellande_controller.py'],
packages=['ros_web_api_bellande_adaptive_continuious_controller'], packages=['web_api_bellande_adaptive_continuious_controller'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_ai_system) project(web_api_bellande_ai_system)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -4,7 +4,7 @@
# ROS1 Launch # ROS1 Launch
- python3 bellande_step_api_2d.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 - python3 bellande_step_api_2d.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
- roslaunch ros_web_api_bellande_step bellande_step_api_2d.launch x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 - roslaunch web_api_bellande_step bellande_step_api_2d.launch x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
# ROS2 Launch # ROS2 Launch
- ros2 launch ros_web_api_bellande_step bellande_step_api_2d.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 - ros2 launch web_api_bellande_step bellande_step_api_2d.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3

View File

@ -25,7 +25,7 @@ def ros1_launch_description():
# Get command-line arguments # Get command-line arguments
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch command # Construct the ROS 1 launch command
roslaunch_command = ["roslaunch", "ros_web_api_bellande_ai_system", "bellande_ai_system_base.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_ai_system", "bellande_ai_system_base.launch"] + args
# Execute the launch command # Execute the launch command
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -33,7 +33,7 @@ def ros2_launch_description():
# Declare launch arguments # Declare launch arguments
config_file_arg = DeclareLaunchArgument( config_file_arg = DeclareLaunchArgument(
'config_file', 'config_file',
default_value='$(find ros_web_api_bellande_ai_system)/config/configs.json', default_value='$(find web_api_bellande_ai_system)/config/configs.json',
description='Path to the AI system configuration file' description='Path to the AI system configuration file'
) )
@ -44,7 +44,7 @@ def ros2_launch_description():
ros_launch_arguments = [config_file_arg] ros_launch_arguments = [config_file_arg]
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_ai_system', package='web_api_bellande_ai_system',
executable='bellande_ai_system_base.py', executable='bellande_ai_system_base.py',
name='bellande_ai_system_base_node', name='bellande_ai_system_base_node',
output='screen', output='screen',

View File

@ -25,7 +25,7 @@ def ros1_launch_description():
# Get command-line arguments # Get command-line arguments
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch command # Construct the ROS 1 launch command
roslaunch_command = ["roslaunch", "ros_web_api_bellande_ai_system", "bellande_ai_system_command.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_ai_system", "bellande_ai_system_command.launch"] + args
# Execute the launch command # Execute the launch command
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -33,7 +33,7 @@ def ros2_launch_description():
# Declare launch arguments # Declare launch arguments
config_file_arg = DeclareLaunchArgument( config_file_arg = DeclareLaunchArgument(
'config_file', 'config_file',
default_value='$(find ros_web_api_bellande_ai_system)/config/configs.json', default_value='$(find web_api_bellande_ai_system)/config/configs.json',
description='Path to the AI system configuration file' description='Path to the AI system configuration file'
) )
@ -44,7 +44,7 @@ def ros2_launch_description():
ros_launch_arguments = [config_file_arg] ros_launch_arguments = [config_file_arg]
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_ai_system', package='web_api_bellande_ai_system',
executable='bellande_ai_system_command.py', executable='bellande_ai_system_command.py',
name='bellande_ai_system_command_node', name='bellande_ai_system_command_node',
output='screen', output='screen',

View File

@ -18,11 +18,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<?xml version="1.0"?> <?xml version="1.0"?>
<launch> <launch>
<!-- Load configuration file --> <!-- Load configuration file -->
<arg name="config_file" default="$(find ros_web_api_bellande_ai_system)/config/configs.json" /> <arg name="config_file" default="$(find web_api_bellande_ai_system)/config/configs.json" />
<param name="ai_system_config" textfile="$(arg config_file)" /> <param name="ai_system_config" textfile="$(arg config_file)" />
<!-- Launch the AI System base node --> <!-- Launch the AI System base node -->
<node name="bellande_ai_system_base_node" pkg="ros_web_api_bellande_ai_system" <node name="bellande_ai_system_base_node" pkg="web_api_bellande_ai_system"
type="bellande_ai_system_base.py" output="screen"> type="bellande_ai_system_base.py" output="screen">
<param name="config_file" value="$(arg config_file)" /> <param name="config_file" value="$(arg config_file)" />
</node> </node>

View File

@ -18,11 +18,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<?xml version="1.0"?> <?xml version="1.0"?>
<launch> <launch>
<!-- Load configuration file --> <!-- Load configuration file -->
<arg name="config_file" default="$(find ros_web_api_bellande_ai_system)/config/configs.json" /> <arg name="config_file" default="$(find web_api_bellande_ai_system)/config/configs.json" />
<param name="ai_system_config" textfile="$(arg config_file)" /> <param name="ai_system_config" textfile="$(arg config_file)" />
<!-- Launch the AI System command node --> <!-- Launch the AI System command node -->
<node name="bellande_ai_system_command_node" pkg="ros_web_api_bellande_ai_system" <node name="bellande_ai_system_command_node" pkg="web_api_bellande_ai_system"
type="bellande_ai_system_command.py" output="screen"> type="bellande_ai_system_command.py" output="screen">
<param name="config_file" value="$(arg config_file)" /> <param name="config_file" value="$(arg config_file)" />
</node> </node>

View File

@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<package format="3"> <package format="3">
<name>ros_web_api_bellande_ai_system</name> <name>web_api_bellande_ai_system</name>
<version>0.0.1</version> <version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description> <description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author> <author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>

View File

@ -19,7 +19,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=["src/bellande_ai_system_base.py", "src/bellande_ai_system_command.py"], scripts=["src/bellande_ai_system_base.py", "src/bellande_ai_system_command.py"],
packages=['ros_web_api_bellande_ai_system'], packages=['web_api_bellande_ai_system'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_motion_probabilistic) project(web_api_bellande_extremum_optimization)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -12,7 +12,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_step", "bellande_step_api_2d.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_step", "bellande_step_api_2d.launch"] + args
# Execute the launch command # Execute the launch command
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -34,7 +34,7 @@ def ros2_launch_description():
x1_arg, y1_arg, x2_arg, y2_arg, limit_arg, x1_arg, y1_arg, x2_arg, y2_arg, limit_arg,
] ]
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_step', package='web_api_bellande_step',
executable='bellande_step_api_2d.py', executable='bellande_step_api_2d.py',
name='bellande_step_api_2d_node', name='bellande_step_api_2d_node',
output='screen', output='screen',

View File

@ -21,7 +21,7 @@ the License.
<arg name="y2" /> <arg name="y2" />
<arg name="limit" /> <arg name="limit" />
<node pkg="ros_web_api_bellande_step" type="bellande_step_api_2d.py" <node pkg="web_api_bellande_step" type="bellande_step_api_2d.py"
name="bellande_step_api_2d_node" output="screen"> name="bellande_step_api_2d_node" output="screen">
<param name="x1" value="$(arg x1)" /> <param name="x1" value="$(arg x1)" />
<param name="y1" value="$(arg y1)" /> <param name="y1" value="$(arg y1)" />

View File

@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<package format="3"> <package format="3">
<name>ros_web_api_bellande_2d_computer_vision</name> <name>web_api_bellande_extremum_optimization</name>
<version>0.0.1</version> <version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description> <description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author> <author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>

View File

@ -23,7 +23,7 @@ cd ..
# Run ROS launch file # Run ROS launch file
if [ $ROS_VERSION -eq 1 ]; then if [ $ROS_VERSION -eq 1 ]; then
roslaunch ros_web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 roslaunch web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
else else
ros2 launch ros_web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 ros2 launch web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
fi fi

View File

@ -4,7 +4,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=['src/bellande_step_api_2d.py'], scripts=['src/bellande_step_api_2d.py'],
packages=['ros_web_api_bellande_step'], packages=['web_api_bellande_step'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ros_web_api_bellande_extremum_optimization) project(web_api_bellande_motion_probabilistic)
# Find ROS # Find ROS
if($ENV{ROS_VERSION} EQUAL 1) if($ENV{ROS_VERSION} EQUAL 1)

View File

@ -12,7 +12,7 @@ def ros1_launch_description():
args = sys.argv[1:] args = sys.argv[1:]
# Construct the ROS 1 launch commandi # Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "ros_web_api_bellande_step", "bellande_step_api_2d.launch"] + args roslaunch_command = ["roslaunch", "web_api_bellande_step", "bellande_step_api_2d.launch"] + args
# Execute the launch command # Execute the launch command
subprocess.call(roslaunch_command) subprocess.call(roslaunch_command)
@ -34,7 +34,7 @@ def ros2_launch_description():
x1_arg, y1_arg, x2_arg, y2_arg, limit_arg, x1_arg, y1_arg, x2_arg, y2_arg, limit_arg,
] ]
nodes_to_launch.append(Node( nodes_to_launch.append(Node(
package='ros_web_api_bellande_step', package='web_api_bellande_step',
executable='bellande_step_api_2d.py', executable='bellande_step_api_2d.py',
name='bellande_step_api_2d_node', name='bellande_step_api_2d_node',
output='screen', output='screen',

View File

@ -21,7 +21,7 @@ the License.
<arg name="y2" /> <arg name="y2" />
<arg name="limit" /> <arg name="limit" />
<node pkg="ros_web_api_bellande_step" type="bellande_step_api_2d.py" <node pkg="web_api_bellande_step" type="bellande_step_api_2d.py"
name="bellande_step_api_2d_node" output="screen"> name="bellande_step_api_2d_node" output="screen">
<param name="x1" value="$(arg x1)" /> <param name="x1" value="$(arg x1)" />
<param name="y1" value="$(arg y1)" /> <param name="y1" value="$(arg y1)" />

View File

@ -0,0 +1,53 @@
<?xml version="1.0"?>
<!--
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 <https://www.gnu.org/licenses/>.
-->
<package format="3">
<name>web_api_bellande_motion_probabilistic</name>
<version>0.0.1</version>
<description>Bellande ROS/ROS2 package with a JSON config file for making HTTP requests</description>
<author email="ronaldsonbellande@gmail.com">Ronaldson Bellande</author>
<maintainer email="ronaldsonbellande@gmail.com">Ronaldson Bellande</maintainer>
<license>Apache License 2.0</license>
<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>
<build_depend condition="$ROS_VERSION == 1">roscpp</build_depend>
<build_depend condition="$ROS_VERSION == 1">rospy</build_depend>
<build_export_depend condition="$ROS_VERSION == 1">roscpp</build_export_depend>
<build_export_depend condition="$ROS_VERSION == 1">rospy</build_export_depend>
<exec_depend condition="$ROS_VERSION == 1">roscpp</exec_depend>
<exec_depend condition="$ROS_VERSION == 1">rospy</exec_depend>
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake</buildtool_depend>
<build_depend condition="$ROS_VERSION == 2">rclcpp</build_depend>
<build_depend condition="$ROS_VERSION == 2">rclpy</build_depend>
<build_export_depend condition="$ROS_VERSION == 2">rclcpp</build_export_depend>
<build_export_depend condition="$ROS_VERSION == 2">rclpy</build_export_depend>
<exec_depend condition="$ROS_VERSION == 2">rclcpp</exec_depend>
<exec_depend condition="$ROS_VERSION == 2">rclpy</exec_depend>
<export>
</export>
</package>

View File

@ -23,7 +23,7 @@ cd ..
# Run ROS launch file # Run ROS launch file
if [ $ROS_VERSION -eq 1 ]; then if [ $ROS_VERSION -eq 1 ]; then
roslaunch ros_web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 roslaunch web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
else else
ros2 launch ros_web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3 ros2 launch web_api_bellande_step bellande_step_api_2d_launch.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
fi fi

View File

@ -4,7 +4,7 @@ from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml # fetch values from package.xml
setup_args = generate_distutils_setup( setup_args = generate_distutils_setup(
scripts=['src/bellande_step_api_2d.py'], scripts=['src/bellande_step_api_2d.py'],
packages=['ros_web_api_bellande_step'], packages=['web_api_bellande_step'],
package_dir={'': 'src'}, package_dir={'': 'src'},
) )

View File

@ -0,0 +1,61 @@
# 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 <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.8)
project(web_api_bellande_probabilistic)
# Find ROS
if($ENV{ROS_VERSION} EQUAL 1)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
)
else()
find_package(ament_cmake REQUIRED COMPONENTS
rclcpp
rclpy
)
endif()
if($ENV{ROS_VERSION} EQUAL 1)
catkin_package(
INCLUDE_DIRS
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS
roscpp
rospy
)
endif()
# Install Python scripts for both ROS 1
if($ENV{ROS_VERSION} EQUAL 1)
catkin_install_python(
PROGRAMS
src/bellande_probabilistic_api_2d.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
endif()
# Install Python scripts, configuration files, and launch files
if($ENV{ROS_VERSION} EQUAL "1")
install(PROGRAMS src/bellande_probabilistic_api_2d.py DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(DIRECTORY config/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config)
install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
elseif($ENV{ROS_VERSION} EQUAL "2")
install(PROGRAMS src/bellande_probabilistic_api_2d.py DESTINATION lib/${PROJECT_NAME})
install(DIRECTORY config/ DESTINATION share/${PROJECT_NAME}/config)
install(DIRECTORY launch/ DESTINATION share/${PROJECT_NAME}/launch)
ament_package()
endif()

View File

@ -0,0 +1,10 @@
# Bellande Web ROS/ROS2 API
# [Bellande probabilistic](https://github.com/RonaldsonBellande/bellande_robots_probabilistic)
# ROS1 Launch
- python3 bellande_probabilistic_api_2d.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
- roslaunch web_api_bellande_probabilistic bellande_probabilistic_api_2d.launch x1:=0 y1:=0 x2:=5 y2:=5 limit:=3
# ROS2 Launch
- ros2 launch web_api_bellande_probabilistic bellande_probabilistic_api_2d.launch.py x1:=0 y1:=0 x2:=5 y2:=5 limit:=3

View File

@ -0,0 +1,23 @@
{
"license": [
"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 <https://www.gnu.org/licenses/>.",
"GNU General Public License v3.0 or later"
],
"url": "https://bellande-robotics-sensors-research-innovation-center.org",
"endpoint_path": {
"bellande_probabilistic": "/api/Bellande_Probabilistic/bellande_probabilistic_nd"
},
"Bellande_Framework_Access_Key": "bellande_web_api_opensource"
}

View File

@ -0,0 +1,76 @@
# 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 <https://www.gnu.org/licenses/>.
import os
import sys
import subprocess
from launch import LaunchDescription
from launch_ros.actions import Node
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration
def ros1_launch_description():
# Get command-line arguments
args = sys.argv[1:]
# Construct the ROS 1 launch commandi
roslaunch_command = ["roslaunch", "web_api_bellande_probabilistic", "bellande_probabilistic_api_2d.launch"] + args
# Execute the launch command
subprocess.call(roslaunch_command)
def ros2_launch_description():
# Declare launch arguments
x1_arg = DeclareLaunchArgument('x1')
y1_arg = DeclareLaunchArgument('y1')
x2_arg = DeclareLaunchArgument('x2')
y2_arg = DeclareLaunchArgument('y2')
limit_arg = DeclareLaunchArgument('limit')
# Create a list to hold all nodes to be launched
nodes_to_launch = []
# ROS2 specific configurations
ros_launch_arguments = [
x1_arg, y1_arg, x2_arg, y2_arg, limit_arg,
]
nodes_to_launch.append(Node(
package='web_api_bellande_probabilistic',
executable='bellande_probabilistic_api_2d.py',
name='bellande_probabilistic_api_2d_node',
output='screen',
parameters=[
{'x1': LaunchConfiguration('x1')},
{'y1': LaunchConfiguration('y1')},
{'x2': LaunchConfiguration('x2')},
{'y2': LaunchConfiguration('y2')},
{'limit': LaunchConfiguration('limit')},
],
))
# Return the LaunchDescription containing all nodes and arguments
return LaunchDescription(ros_launch_arguments + nodes_to_launch)
if __name__ == "__main__":
ros_version = os.getenv("ROS_VERSION")
if ros_version == "1":
ros1_launch_description()
elif ros_version == "2":
ros2_launch_description()
else:
print("Unsupported ROS version. Please set the ROS_VERSION environment variable to '1' for ROS 1 or '2' for ROS 2.")
sys.exit(1)

Some files were not shown because too many files have changed in this diff Show More