Skip to content

added multi robot spawing functinality #26

added multi robot spawing functinality

added multi robot spawing functinality #26

Workflow file for this run

name: ROS2 CI
on:
push:
branches: [ main, unittest ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: osrf/ros:humble-desktop
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt update
sudo apt install -y curl gnupg lsb-release
- name: Import ROS2 apt key
run: |
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | sudo apt-key add -
- name: Setup sources.list
run: |
sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
- name: Install ROS2 Humble dependencies
run: |
sudo apt update
sudo apt install -y python3-colcon-common-extensions python3-rosdep python3-vcstool
- name: Initialize rosdep
run: |
if [ ! -f /etc/ros/rosdep/sources.list.d/20-default.list ]; then
sudo rosdep init
fi
rosdep update
- name: Install package dependencies
run: |
cd robile_safety
rosdep install --from-paths . --ignore-src --rosdistro humble -y
- name: Build the package
run: |
cd robile_safety
source /opt/ros/humble/setup.bash
colcon build --symlink-install
shell: bash
- name: Run unittest tests
run: |
cd robile_safety
python3 -m unittest discover test
shell: bash