From 7cb8db500009a14bc9fffb3208d5dcd729b2aab4 Mon Sep 17 00:00:00 2001 From: RonaldsonBellande Date: Sun, 12 May 2024 22:26:46 -0400 Subject: [PATCH] latest pushes --- docker/Dockerfile.ros1 | 53 ++++--------------- .../launch/bellande_step_api_2d.launch.py | 6 ++- .../launch/ros1/bellande_step_api_2d.launch | 42 ++++++++++----- 3 files changed, 45 insertions(+), 56 deletions(-) diff --git a/docker/Dockerfile.ros1 b/docker/Dockerfile.ros1 index 5eff7b0..63bf6aa 100644 --- a/docker/Dockerfile.ros1 +++ b/docker/Dockerfile.ros1 @@ -32,47 +32,6 @@ LABEL author=ronaldsonbellande@gmail.com LABEL ROS_architecture_github_branchtag=${ROS_ARCHITECTURE_VERSION_GIT_BRANCH} LABEL ROS_architecture_github_commit=${ROS_ARCHITECTURE_VERSION_GIT_COMMIT} -# Ubuntu setup -RUN apt-get update -y -RUN apt-get upgrade -y - -# Set the working directory inside the Docker image -WORKDIR / - -# Create a directory for the requirements -RUN mkdir -p /requirements - -# Copy specific files from the requirements directory to the "requirements" directory in the Docker image -COPY ../requirements/requirements.txt /requirements/requirements.txt -COPY ../requirements/system_requirements.txt /requirements/system_requirements.txt -COPY ../requirements/ros_requirements.txt /requirements/ros_requirements.txt -COPY ../requirements/ros_repository_requirements.txt /requirements/ros_repository_requirements.txt - -# Install dependencies for system -RUN apt-get update && apt-get install -y --no-install-recommends > ~/.bashrc RUN source ~/.bashrc -RUN catkin config --extend "/opt/ros/"${ROS_VERSION}" RUN cd $CATKIN_WS \ && rosdep init \ diff --git a/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py b/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py index d6e8a89..be7af43 100644 --- a/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py +++ b/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py @@ -1,13 +1,17 @@ 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 command + # Construct the ROS 1 launch commandi roslaunch_command = ["roslaunch", "ros_web_api_bellande_step", "bellande_step_api_2d.launch"] + args # Execute the launch command diff --git a/ros_web_api_bellande_step/launch/ros1/bellande_step_api_2d.launch b/ros_web_api_bellande_step/launch/ros1/bellande_step_api_2d.launch index 1bc2afe..15edced 100644 --- a/ros_web_api_bellande_step/launch/ros1/bellande_step_api_2d.launch +++ b/ros_web_api_bellande_step/launch/ros1/bellande_step_api_2d.launch @@ -1,16 +1,32 @@ - - - - - - + + + + + + + + + + + + + + +