-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: FOXY ros-model-extractors | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ros-model-extractors | ||
- name: Build the docker container for foxy | ||
run: | | ||
pushd ros-model-extractors | ||
docker build --tag=haros_foxy -f foxy/Dockerfile . | ||
- name: Analyse the ROS package sick_safetyscanners2 for foxy | ||
run: | | ||
pushd ros-model-extractors | ||
docker run haros_foxy:latest /test.sh foxy | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: MELODIC ros-model-extractors | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ros-model-extractors | ||
- name: Build the docker container for melodic | ||
run: | | ||
pushd ros-model-extractors | ||
docker build --tag=haros_melodic -f melodic/Dockerfile . | ||
- name: Analyse the ROS package hokuyo_node for melodic | ||
run: | | ||
pushd ros-model-extractors | ||
docker run haros_melodic:latest /test.sh hokuyo_node melodic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: NOETIC ros-model-extractors | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ros-model-extractors | ||
- name: Build the docker container for noetic | ||
run: | | ||
pushd ros-model-extractors | ||
docker build --tag=haros_noetic -f noetic/Dockerfile . | ||
- name: Analyse the ROS package cob_sick_s300 for noetic | ||
run: | | ||
pushd ros-model-extractors | ||
docker run haros_noetic:latest /test.sh noetic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# ros-model-extractors | ||
|
||
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) | ||
|
||
[![MELODIC build status](https://github.com/ipa320/ros-model-extractors/actions/workflows/build_melodic.yml/badge.svg)](https://github.com/ipa320/ros-model-extractors/actions/workflows/build_melodic.yml) | ||
[![NOETIC ros-model-extractors](https://github.com/ipa320/ros-model-extractors/actions/workflows/build_noetic.yml/badge.svg)](https://github.com/ipa320/ros-model-extractors/actions/workflows/build_noetic.yml) | ||
[![FOXY build status](https://github.com/ipa320/ros-model-extractors/actions/workflows/build_foxy.yml/badge.svg)](https://github.com/ipa320/ros-model-extractors/actions/workflows/build_foxy.yml) | ||
|
||
|
||
Technical Maintainer: [**ipa-nhg**](https://github.com/ipa-nhg/) (**Nadia Hammoudeh Garcia**, **Fraunhofer IPA**) - **[email protected]** | ||
|
||
This repository contains the HAROS framework plugin to automatically generate models according to the DSLs defined for RosModel. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/bash | ||
|
||
# Arguments: | ||
# 1: Distro to test | ||
|
||
hokuyo_model="PackageSet { | ||
CatkinPackage hokuyo_node { | ||
Artifact hokuyo_node { | ||
Node { name hokuyo_node | ||
Publishers { | ||
Publisher { name 'scan' message 'sensor_msgs.LaserScan'}}} | ||
}}}" | ||
|
||
if [ "${1}" = "melodic" ]; then | ||
./haros_runner.sh hokuyo_node hokuyo_node node . /root/ws https://github.com/ros-drivers/hokuyo_node | ||
if [ "$(echo "$hokuyo_model" | sed -E 's,\\t|\\r|\\n,,g')" != "$(cat /root/ws/hokuyo_node.ros | sed -E 's,\\t|\\r|\\n,,g')" ] ;then | ||
echo "Test failed; the auto-generated model is different to the expected one:" | ||
echo "$hokuyo_model" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
s300_model="PackageSet { | ||
CatkinPackage cob_sick_s300 { | ||
Artifact cob_sick_s300 { | ||
Node { name cob_sick_s300 | ||
Publishers { | ||
Publisher { name '/diagnostics' message 'diagnostic_msgs.DiagnosticArray'}, | ||
Publisher { name 'scan_standby' message 'std_msgs.Bool'}, | ||
Publisher { name 'scan' message 'sensor_msgs.LaserScan'}}} | ||
}}}" | ||
|
||
if [ "${1}" = "noetic" ]; then | ||
./haros_runner.sh cob_sick_s300 cob_sick_s300 node . /root/ws https://github.com/ipa320/cob_driver | ||
if [ "$(echo "$s300_model" | tr -d '[:space:]')" != "$(cat /root/ws/cob_sick_s300.ros | tr -d '[:space:]')" ] ;then | ||
: | ||
else | ||
echo "Test failed; the auto-generated model is different to the expected one:" | ||
echo "$s300_model" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
safetyscanner_model="PackageSet { | ||
CatkinPackage sick_safetyscanners2 { | ||
Artifact sick_safetyscanners2_node { | ||
Node { name sick_safetyscanners2_node | ||
ServiceServers { | ||
ServiceServer { name 'field_data' service 'sick_safetyscanners2_interfaces.FieldData'}} | ||
Publishers { | ||
Publisher { name 'scan' message 'sensor_msgs.LaserScan'}, | ||
Publisher { name 'output_paths' message 'sick_safetyscanners2_interfaces.OutputPaths'}, | ||
Publisher { name 'raw_data' message 'sick_safetyscanners2_interfaces.RawMicroScanData'}, | ||
Publisher { name 'extended_scan' message 'sick_safetyscanners2_interfaces.ExtendedLaserScan'}}} | ||
}}}" | ||
|
||
if [ "${1}" = "foxy" ]; then | ||
./haros_runner.sh sick_safetyscanners2 sick_safetyscanners2_node node . /root/ws https://github.com/SICKAG/sick_safetyscanners2 | ||
if [ "$safetyscanner_model" == "$(cat /root/ws/sick_safetyscanners2_node.ros)" ] ;then | ||
: | ||
else | ||
echo "Test failed; the auto-generated model is different to the expected one:" | ||
echo "$safetyscanner_model" | ||
exit 1 | ||
fi | ||
fi |