Skip to content

Commit 96140b9

Browse files
committed
Improve dependency management and add ci
1 parent 65e1573 commit 96140b9

File tree

14 files changed

+3719
-4813
lines changed

14 files changed

+3719
-4813
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /usr/bin/env bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
pwd
7+
8+
du --si --max-depth 1 | sort --human-numeric-sort
9+
10+
df --si .
11+
df --si --print-type --exclude-type=tmpfs
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#! /usr/bin/env bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
pwd
7+
8+
uv sync --all-groups
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#! /usr/bin/env bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
pwd
7+
8+
wget --no-verbose \
9+
-O data/fluentrobotics/rosbags.tar.zst \
10+
"https://www.dropbox.com/scl/fo/ruzihfyim9n5wx3kcluc6/AD-AqaxhxH4kW0vv0DrE-w4/rosbags.tar.zst?rlkey=u1d4pdei9jruil1bl4j0fxkmf&dl=1"
11+
12+
# Determine whether we're downloading the right file from Dropbox. Use a fast,
13+
# non-cryptographic hash since we're not super concerned about adversarial
14+
# attacks.
15+
xxhsum -c <<< "XXH3 (data/fluentrobotics/rosbags.tar.zst) = b703a5104c2b1153"
16+
17+
wget --no-verbose \
18+
-O data/fluentrobotics/XXHSUMS.txt \
19+
"https://www.dropbox.com/scl/fo/ruzihfyim9n5wx3kcluc6/AHgrJXzVImt_YWvJnkL1QUo/XXHSUMS.txt?rlkey=u1d4pdei9jruil1bl4j0fxkmf&dl=1"
20+
xxhsum -c <<< "XXH3 (data/fluentrobotics/XXHSUMS.txt) = e52ca92e304edfb2"
21+
22+
wget --no-verbose \
23+
-O data/fluentrobotics/data-association.csv \
24+
"https://www.dropbox.com/scl/fo/ruzihfyim9n5wx3kcluc6/AKt7l10Z8Zz3l3VlJnEi5Ec/data-association.csv?rlkey=u1d4pdei9jruil1bl4j0fxkmf&dl=1"
25+
xxhsum -c <<< "XXH3 (data/fluentrobotics/data-association.csv) = 6c4577d709e1d3be"
26+
27+
wget --no-verbose \
28+
-O data/fluentrobotics/qualtrics.csv \
29+
"https://www.dropbox.com/scl/fo/ruzihfyim9n5wx3kcluc6/AA4Uq4EipmKnswCGw-L9lZQ/qualtrics.csv?rlkey=u1d4pdei9jruil1bl4j0fxkmf&dl=1"
30+
xxhsum -c <<< "XXH3 (data/fluentrobotics/qualtrics.csv) = 4fd5fa5d5a61779f"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#! /usr/bin/env bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
pwd
7+
8+
cd data/fluentrobotics
9+
pwd
10+
11+
tar xf rosbags.tar.zst
12+
xxhsum -cq XXHSUMS.txt
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#! /usr/bin/env bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
pwd
7+
8+
source /opt/ros/humble/setup.bash
9+
10+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h1_objective_metrics success
11+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h1_objective_metrics time
12+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h1_objective_metrics acceleration
13+
14+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h2_subjective_metrics alpha
15+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h2_subjective_metrics warmth
16+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h2_subjective_metrics competence
17+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h2_subjective_metrics discomfort
18+
uv run -m fluentrobotics.icmpc_collab_transport.evaluation.h2_subjective_metrics fluency

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
# check-disk-usage:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - uses: actions/checkout@v4
12+
# - name: Check Disk Usage
13+
# run: bash .github/workflow-scripts/00-check-disk-usage.sh
14+
# - name: Check things
15+
# run: |
16+
# sudo du -sh /usr/share/dotnet || true
17+
# sudo du -sh /usr/local/lib/android || true
18+
# sudo du -sh /opt/ghc || true
19+
# sudo du -sh /opt/hostedtoolcache/CodeQL || true
20+
# sudo du -sh /usr/share/miniconda || true
21+
# sudo du -sh /usr/local/share/vcpkg || true
22+
23+
ci:
24+
runs-on: ubuntu-latest
25+
container: ghcr.io/fluentrobotics/ros:humble
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Inspect workspace
29+
run: |
30+
pwd
31+
ls -lhF
32+
bash .github/workflow-scripts/00-check-disk-usage.sh
33+
- name: Install Dependencies
34+
run: |
35+
bash .github/workflow-scripts/01-install-dependencies.sh
36+
bash .github/workflow-scripts/00-check-disk-usage.sh
37+
- name: Download Dataset
38+
run: |
39+
bash .github/workflow-scripts/02-download-dataset.sh
40+
bash .github/workflow-scripts/00-check-disk-usage.sh
41+
- name: Extract Dataset
42+
run: |
43+
bash .github/workflow-scripts/03-extract-dataset.sh
44+
bash .github/workflow-scripts/00-check-disk-usage.sh
45+
- name: Run Analysis Scripts
46+
run: |
47+
bash .github/workflow-scripts/04-run-analysis-scripts.sh
48+
bash .github/workflow-scripts/00-check-disk-usage.sh

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
__pycache__/
44
.mypy_cache/
55
.venv/
6+
*.egg-info/
67

78
*.jpg
89
*.jpeg

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Implicit Communication in Human-Robot Collaborative Transport
22

33
[![acm](https://img.shields.io/badge/Paper-gray?logo=acm&labelColor=0085CA)](https://dl.acm.org/doi/10.5555/3721488.3721496)
4-
[![dataset](https://img.shields.io/badge/Dataset-gray?logo=dropbox&labelColor=0061FF)](https://www.dropbox.com/scl/fo/ruzihfyim9n5wx3kcluc6/APV1wxgUifVPQnd12RSqjbo?rlkey=u1d4pdei9jruil1bl4j0fxkmf&st=1e7mman0&dl=0)
4+
[![dataset](https://img.shields.io/badge/Study_Data-gray?logo=dropbox&labelColor=0061FF)](https://www.dropbox.com/scl/fo/ruzihfyim9n5wx3kcluc6/APV1wxgUifVPQnd12RSqjbo?rlkey=u1d4pdei9jruil1bl4j0fxkmf&st=1e7mman0&dl=0)
55
[![video](https://img.shields.io/badge/Supplemental_Video-gray?logo=youtube&labelColor=ff0033)](https://youtu.be/0NTDrobSifg)
66

77
## Requirements
88

99
### Core
1010

1111
* Python 3.10
12-
* Poetry package manager
13-
* ~10 GB disk space for Python packages
12+
* uv package manager
13+
* ~2 GB disk space for Python packages
1414

1515
### Extra Dependencies for Deployment and Data Analysis
1616

1717
* ROS 2 Humble (Ubuntu 22.04)
18-
* GNU tar, zstd, and ~20 GB disk space for dataset
18+
* GNU tar, zstd, and ~16 GB disk space for study data
1919

2020
## Setup
2121

@@ -24,7 +24,7 @@
2424
Install Python package dependencies to a virtual environment:
2525

2626
```shell
27-
poetry install
27+
uv sync --all-groups
2828
```
2929

3030
Activate the virtual environment:
@@ -33,11 +33,11 @@ Activate the virtual environment:
3333
source .venv/bin/activate
3434
```
3535

36-
### Dataset
36+
### Study Data
3737

38-
Download `rosbags.tar.zst` from the Dropbox Dataset link in this file's header into [`data/fluentrobotics`](data/fluentrobotics).
38+
Download `rosbags.tar.zst` from the Dropbox Study Data link in this file's header into [`data/fluentrobotics`](data/fluentrobotics).
3939

40-
Decompress the tar file:
40+
Extract the tar file:
4141

4242
```shell
4343
cd data/fluentrobotics

0 commit comments

Comments
 (0)