-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove json-like formatting of YAML | Autoformat all YAML files
- Loading branch information
Showing
9 changed files
with
258 additions
and
252 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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
name: "Humble: Build and Test" | ||
--- | ||
name: 'Humble: Build and Test' | ||
|
||
on: | ||
on : | ||
push: | ||
branches: | ||
- "main" | ||
- main | ||
pull_request: | ||
branches: | ||
- "*" | ||
- '*' | ||
|
||
jobs: | ||
test_happypose_ros: | ||
|
@@ -16,61 +17,61 @@ jobs: | |
HAPPYPOSE_DATA_DIR: /tmp/local_data | ||
|
||
steps: | ||
- name: Install EGL mesa - required for Panda3D renderer | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -qqy libegl1-mesa libegl1-mesa-dev | ||
- name: Install EGL mesa - required for Panda3D renderer | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -qqy libegl1-mesa libegl1-mesa-dev | ||
- name: Install Python C headers and remove Blinker version conflicting with HappyPose | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -qqy python3-dev | ||
sudo apt purge -qqy python3-blinker | ||
- name: Install Python C headers and remove Blinker version conflicting with HappyPose | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -qqy python3-dev | ||
sudo apt purge -qqy python3-blinker | ||
- name: Caching of the HappyPose installation and data | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/local_data | ||
key: data | ||
- name: Caching of the HappyPose installation and data | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/local_data | ||
key: data | ||
|
||
- name: Update pip | ||
run: pip install -U pip | ||
- name: Update pip | ||
run: pip install -U pip | ||
|
||
- name: Download HappyPose source | ||
working-directory: /tmp | ||
run: | | ||
git clone --branch dev --recurse-submodules https://github.com/agimus-project/happypose.git | ||
- name: Download HappyPose source | ||
working-directory: /tmp | ||
run: | | ||
git clone --branch dev --recurse-submodules https://github.com/agimus-project/happypose.git | ||
- name: Build and install HappyPose | ||
working-directory: /tmp/happypose | ||
run: pip install ".[cpu,pypi,evaluation,multiview]" --extra-index-url https://download.pytorch.org/whl/cpu | ||
- name: Build and install HappyPose | ||
working-directory: /tmp/happypose | ||
run: pip install ".[cpu,pypi,evaluation,multiview]" --extra-index-url https://download.pytorch.org/whl/cpu | ||
|
||
- name: Download pre-trained models required for tests | ||
run: | | ||
mkdir -p /tmp/local_data | ||
python -m happypose.toolbox.utils.download \ | ||
--bop_dataset ycbv \ | ||
--cosypose_models \ | ||
detector-bop-ycbv-pbr--970850 \ | ||
coarse-bop-ycbv-pbr--724183 \ | ||
refiner-bop-ycbv-pbr--604090 | ||
- name: Download pre-trained models required for tests | ||
run: | | ||
mkdir -p /tmp/local_data | ||
python -m happypose.toolbox.utils.download \ | ||
--bop_dataset ycbv \ | ||
--cosypose_models \ | ||
detector-bop-ycbv-pbr--970850 \ | ||
coarse-bop-ycbv-pbr--724183 \ | ||
refiner-bop-ycbv-pbr--604090 | ||
- name: Unzip HappyPose YCBV models | ||
working-directory: /tmp/local_data/bop_datasets/ycbv | ||
run: | | ||
unzip -n -qq ycbv_base.zip | ||
unzip -n -qq ycbv_models.zip | ||
- name: Unzip HappyPose YCBV models | ||
working-directory: /tmp/local_data/bop_datasets/ycbv | ||
run: | | ||
unzip -n -qq ycbv_base.zip | ||
unzip -n -qq ycbv_models.zip | ||
- name: Remove incompatible PyTest version | ||
run: pip uninstall -y pytest | ||
- name: Remove incompatible PyTest version | ||
run: pip uninstall -y pytest | ||
|
||
- name: Install ROS 2 Humble | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: humble | ||
- name: Install ROS 2 Humble | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: humble | ||
|
||
- name: Build and test happypose_ros | ||
uses: ros-tooling/[email protected] | ||
with: | ||
package-name: happypose_ros | ||
target-ros2-distro: humble | ||
- name: Build and test happypose_ros | ||
uses: ros-tooling/[email protected] | ||
with: | ||
package-name: happypose_ros | ||
target-ros2-distro: humble |
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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
image_width: 640 | ||
image_height: 480 | ||
camera_name: webcam | ||
camera_matrix: | ||
--- | ||
image_width : 640 | ||
image_height : 480 | ||
camera_name : webcam | ||
camera_matrix : | ||
rows: 3 | ||
cols: 3 | ||
data: [1066.778, 0.0, 312.9869, 0.0, 1067.487, 241.3109, 0.0, 0.0, 1.0] | ||
distortion_model: plumb_bob | ||
distortion_model : plumb_bob | ||
distortion_coefficients: | ||
rows: 1 | ||
cols: 5 | ||
data: [0.0, 0.0, 0.0, 0.0, 0.0] | ||
rectification_matrix: | ||
rectification_matrix : | ||
rows: 3 | ||
cols: 3 | ||
data: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0] | ||
projection_matrix: | ||
projection_matrix : | ||
rows: 3 | ||
cols: 4 | ||
data: [1.0, 0.0, 320.0, 0.0, 0.0, 1.0, 240.0, 0.0, 0.0, 0.0, 1.0, 0.0] |
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
Oops, something went wrong.