Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f579cea
build: pin every dharma repository to its main of 2026-10-28, hub too…
agus-darmawan Oct 28, 2026
6e6428b
feat(interfaces)!: POIs, tours and visitors owned by molly_interfaces…
agus-darmawan Oct 28, 2026
a76dab8
refactor(guide): tour engine and site content as pure cores with enum…
agus-darmawan Oct 29, 2026
2e28168
feat(guide): guide_node and site_content_node on DharmaNode, POIs sto…
agus-darmawan Oct 29, 2026
d4fcf04
test(guide): in-process node tests, readme for the tours and the site…
agus-darmawan Oct 29, 2026
dafcee3
refactor(interaction): cores for speech, greeter, conversation and vi…
agus-darmawan Oct 29, 2026
b966279
test(interaction): unit and in-process node tests, typed launch, visi…
agus-darmawan Oct 29, 2026
1fc7de4
refactor(bridge): typed control mux, Molly and Dharma services; cores…
agus-darmawan Oct 29, 2026
8aabc1c
test(bridge): unit tests of the cores, typed state summaries, session…
agus-darmawan Oct 29, 2026
fcfb183
test(bridge): teleop node against a UDP client; readme and protocol f…
agus-darmawan Oct 29, 2026
5d88e3d
feat(bringup)!: molly_bringup from the Dharma template, Lite3 profile…
agus-darmawan Oct 29, 2026
1bcc223
fix: Molly nodes declare the shared robot profile, sim keeps its own …
agus-darmawan Oct 29, 2026
4c10654
fix(bringup): Molly's sites directory and state files for the Dharma …
agus-darmawan Oct 29, 2026
f3e612f
build: Humble dev container, compose, scripts and tmux layouts from t…
agus-darmawan Oct 29, 2026
5b22403
feat(bringup): site file example for the Lite3 and the end-to-end sim…
agus-darmawan Oct 29, 2026
2252ba2
docs: scripts/ instead of script/ in the package docs and messages
agus-darmawan Oct 29, 2026
97ae6f2
ci: lint, scripts, and the whole stack on Humble from molly.repos wit…
agus-darmawan Oct 29, 2026
4da1e32
build: lite3_ros2 submodule at its main (3c4e66e), the driver Molly 2…
agus-darmawan Oct 29, 2026
3171171
docs: README for Molly 2.0 on Dharma 0.2 (architecture, molly_bringup…
agus-darmawan Oct 29, 2026
803096e
docs: changelog for 2.0.0
agus-darmawan Oct 29, 2026
951f4c1
docs: contributing for the Dharma package layout, ruff and the simula…
agus-darmawan Oct 29, 2026
1ec4381
docs: interfaces reference for Dharma 0.2 and Molly's own POIs, tours…
agus-darmawan Oct 29, 2026
ecfc463
docs: web contract and docs index for the new names
agus-darmawan Oct 29, 2026
7db847d
docs(xtras): the robot package contract with the robot profile and th…
agus-darmawan Oct 29, 2026
3c8f69c
chore(map): the example site in the Dharma 0.2 layout (tags.json, rou…
agus-darmawan Oct 29, 2026
4604d80
fix(scripts): the sim tmux layout merges stack.yaml and sim.yaml like…
agus-darmawan Oct 29, 2026
2af37d1
test(bringup): the e2e test shuts rclpy down through dharma_utils compat
agus-darmawan Oct 29, 2026
879ab49
test(bringup): the e2e teleop port comes from outside the ephemeral r…
agus-darmawan Oct 29, 2026
2202a06
ci: report import errors and a missing DHARMA_TOKEN
agus-darmawan Oct 29, 2026
462739e
ci: stop on the first import error
agus-darmawan Oct 29, 2026
610e07b
ci: fix Dharma repo auth in build-test workflow
Copilot Oct 29, 2026
c535127
ci: restore x-access-token auth format for Dharma imports
Copilot Oct 29, 2026
cd89a0e
ci: check the imported dharma packages instead of trusting the step s…
agus-darmawan Oct 29, 2026
3820bc1
ci: do not persist the checkout token over DHARMA_TOKEN
agus-darmawan Oct 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# ament_clang_format style (ROS 2)
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
BraceWrapping:
AfterClass: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
BreakBeforeBraces: Custom
ColumnLimit: 100
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 2
DerivePointerAlignment: false
IncludeBlocks: Preserve
PointerAlignment: Middle
ReflowComments: false
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "molly (humble)",
"dockerComposeFile": ["../compose.yaml"],
"service": "dev",
"runServices": ["dev"],
"workspaceFolder": "/home/robot/dev/Molly",
"remoteUser": "robot",
"shutdownAction": "none",
"customizations": {
"vscode": {
"extensions": [
"ms-iot.vscode-ros",
"ms-python.python",
"charliermarsh.ruff",
"ms-vscode.cpptools",
"redhat.vscode-yaml"
],
"settings": {
"python.analysis.extraPaths": ["/opt/ros/humble/lib/python3.10/site-packages"],
"[python]": { "editor.defaultFormatter": "charliermarsh.ruff" }
}
}
}
}
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.{py,cpp,hpp,h,c}]
indent_size = 4

[*.{cpp,hpp,h,c}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
6 changes: 0 additions & 6 deletions .flake8

This file was deleted.

14 changes: 8 additions & 6 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

## How it was tested

- [ ] `colcon test` passes (CI green, simulator end-to-end test included)
- [ ] Tried in the simulator (`ros2 launch molly sim.launch.py`), on the robot or in the dev
container: <!-- what you ran and saw -->
- [ ] CI green (lint, Humble build and tests of the whole stack from `molly.repos`)
- [ ] Tried in the simulator (`ros2 launch molly_bringup sim.launch.py`), in the dev container or
on the robot: <!-- what you ran and saw -->

## Checklist

- [ ] Conventional commit titles (`fix(navigation): ...`, `feat(bridge): ...`)
- [ ] New parameters documented in the package README and its `config/*.yaml`
- [ ] Safety-relevant change (motion, e-stop, limits)? Described above and tested on the robot
- [ ] Conventional commit titles (`fix(guide): ...`, `feat(bridge): ...`)
- [ ] Parameters and launch arguments documented (package README, `config/*.yaml`)
- [ ] CHANGELOG entry for user-visible changes
- [ ] Safety-relevant change (motion, e-stop, limits, robot profile)? Described above and tested
on the robot
168 changes: 114 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,99 +10,159 @@ concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
# Vendor packages that live in src/xtras (submodules) or need hardware SDKs; CI builds and
# tests the Molly packages only (lite3_ros2 has its own CI).
# Hardware SDKs and the vendor C++ packages in src/xtras (Livox driver, FAST-LIO, legKILO):
# not built in CI; the stack runs on the simulator here.
ROSDEP_SKIP: >-
livox_ros_driver2 fast_lio legkilo apriltag_draw
PACKAGES: >-
molly_interfaces molly_guide molly_interaction molly_bridge molly
livox_ros_driver2 fast_lio legkilo realsense2_camera python3-loguru

jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install pre-commit
- run: |
pre-commit run --all-files --show-diff-on-failure > lint.log 2>&1 || {
cat lint.log
msg=$(tail -c 20000 lint.log | sed -e ':a' -e 'N' -e '$!ba' -e 's/%/%25/g' -e 's/\r/%0D/g' -e 's/\n/%0A/g')
echo "::error title=Lint failed::$msg"
exit 1
}
cat lint.log

scripts:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Shell syntax
run: for f in scripts/*.sh docker/entrypoint.sh; do bash -n "$f"; done
- name: shellcheck
run: shellcheck -S warning script/*.sh docker/entrypoint.sh
- name: YAML parses
run: |
python3 - <<'PY'
import pathlib, sys, yaml
bad = []
for p in pathlib.Path('.').rglob('*.y*ml'):
if 'xtras' in p.parts or '.git' in p.parts:
continue
try:
yaml.safe_load(p.read_text())
except yaml.YAMLError as e:
bad.append(f'{p}: {e}')
print('\n'.join(bad) or 'all YAML files parse')
sys.exit(1 if bad else 0)
PY
run: shellcheck -S warning scripts/*.sh docker/entrypoint.sh
- name: Compose file
run: docker compose config -q

build-test:
runs-on: ubuntu-22.04
container: ros:humble-ros-base-jammy
runs-on: ubuntu-24.04
container: ros:humble-ros-base
env:
ROS_LOCALHOST_ONLY: '1'
PYTHONUNBUFFERED: '1'
ROS_LOCALHOST_ONLY: "1"
PYTHONUNBUFFERED: "1"
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4 # no submodules: vendor drivers and the robot package
- name: Dharma packages
- name: Annotation helper
run: |
cat > /usr/local/bin/report <<'SH'
#!/usr/bin/env bash
# report <title> <log>: the end of a log as one error annotation
msg=$(tail -c 20000 "$2" | sed -e ':a' -e 'N' -e '$!ba' -e 's/%/%25/g' -e 's/\r/%0D/g' -e 's/\n/%0A/g')
echo "::error title=$1::$msg"
SH
chmod +x /usr/local/bin/report
- name: Git
run: apt-get update && apt-get install -y git python3-vcstool
- uses: actions/checkout@v4
with:
# its GITHUB_TOKEN header (this repository only) would replace DHARMA_TOKEN for every
# clone run inside the checkout
persist-credentials: false
- name: The Dharma stack from molly.repos, the Lite3 package
env:
# the dharma repos are private: a fine-grained token with read access to them
DHARMA_TOKEN: ${{ secrets.DHARMA_TOKEN }}
run: |
apt-get update && apt-get install -y python3-vcstool git
git config --global url."https://x-access-token:${DHARMA_TOKEN}@github.com/".insteadOf \
"git@github.com:"
vcs import src < molly.repos
- name: Dependencies
auth="https://x-access-token:${DHARMA_TOKEN}@github.com/"
git config --global url."$auth".insteadOf "https://github.com/"
git config --global --add url."$auth".insteadOf "git@github.com:"
git config --global --add safe.directory '*'
[ -n "$DHARMA_TOKEN" ] || echo "::error title=DHARMA_TOKEN missing::add a repository secret DHARMA_TOKEN with read access to the dharma repositories"
vcs import --retry 2 src < molly.repos > import.log 2>&1 || {
cat import.log
report "vcs import failed" import.log
exit 1
}
if grep -Eq "Repository not found|fatal: repository|Could not determine ref type of version" import.log; then
cat import.log
report "Import failed" import.log
exit 1
fi
cat import.log
count=$(find src/dharma -name package.xml | wc -l)
echo "$count dharma packages"
if [ "$count" -lt 11 ]; then
echo "::error title=Dharma import::only $count dharma packages in src/dharma"
exit 1
fi
# the robot package only; the Livox driver and FAST-LIO are not built here
git submodule update --init src/xtras/robots/lite3_ros2
- name: ROS dependencies
run: |
apt-get update
rosdep update --rosdistro humble
rosdep install --from-paths src --ignore-src -y --rosdistro humble \
--skip-keys "$ROSDEP_SKIP"
--skip-keys "$ROSDEP_SKIP" > rosdep.log 2>&1 || {
cat rosdep.log
report "rosdep failed" rosdep.log
exit 1
}
cat rosdep.log
apt-get install -y python3-pip && pip3 install loguru
- name: Build
run: |
source /opt/ros/humble/setup.bash
colcon build --packages-up-to $PACKAGES --event-handlers console_cohesion+
- name: Test
colcon build --packages-skip livox_ros_driver2 fast_lio legkilo \
--event-handlers console_cohesion+ > build.log 2>&1 || {
cat build.log
report "Build failed" build.log
exit 1
}
cat build.log
- name: Test (the Molly packages)
env:
MOLLY_SKIP_SIM: "1" # the simulator tour runs in the next step
run: |
source /opt/ros/humble/setup.bash
source install/setup.bash
packages=$(colcon list --base-paths src/molly_* --names-only | xargs)
status=0
# sequential: the in-process ROS tests share one DDS domain
colcon test --packages-select $PACKAGES --executor sequential \
--event-handlers console_cohesion+
if ! colcon test-result --verbose > test-result.txt 2>&1; then
cat test-result.txt
# the failures as one annotation too: on the run page and through the API
msg=$(head -c 30000 test-result.txt \
| sed -e ':a' -e 'N' -e '$!ba' -e 's/%/%25/g' -e 's/\r/%0D/g' -e 's/\n/%0A/g')
echo "::error title=Failing tests::$msg"
colcon test --packages-select $packages --executor sequential \
--event-handlers console_cohesion+ > test.log 2>&1 || status=1
colcon test-result --verbose >> test.log 2>&1 || status=1
cat test.log
if [ "$status" -ne 0 ]; then
report "Tests failed" test.log
exit 1
fi
cat test-result.txt
- name: Launch smoke test
- name: Simulator tour (molly_bringup sim.launch.py end to end)
run: |
source /opt/ros/humble/setup.bash
source install/setup.bash
python3 -m pytest -q -s src/molly_bringup/test/e2e > e2e.log 2>&1 || {
cat e2e.log
report "Simulator tour failed" e2e.log
exit 1
}
cat e2e.log
- name: Launch arguments
run: |
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 launch molly robot.launch.py --show-args > /dev/null
ros2 launch dharma_odometry odometry.launch.py --show-args > /dev/null
ros2 launch dharma_mapping mapping.launch.py --show-args > /dev/null
ros2 launch molly_interaction interaction.launch.py --show-args > /dev/null
ros2 launch molly sim.launch.py --show-args > /dev/null
ros2 launch molly_bringup robot.launch.py --show-args > /dev/null
ros2 launch molly_bringup sim.launch.py --show-args > /dev/null
- name: Test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
build/*/test_results/**/*.xml
/tmp/molly_sim_*.log
/tmp/molly_guide_*.log
/tmp/molly_sites_*/e2e.log
if-no-files-found: ignore
51 changes: 16 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,25 @@
# ---- env / secrets ----
.env
*.pem
*.key
/build/
/install/
/log/
__pycache__/
*.py[cod]
*.egg-info/
.pytest_cache/
.ruff_cache/

# ---- ROS2 / colcon build artifacts ----
build/
install/
log/
**/COLCON_IGNORE
# the Dharma stack (vcs import src < molly.repos, scripts/setup.sh install dharma)
/src/dharma/

# ---- rosbag recordings ----
# rosbag recordings
*.bag
*.db3
*_bag/
rosbag2_*/

# ---- python ----
__pycache__/
*.py[cod]
*.egg-info/
.venv/
venv/

# ---- editors ----
.idea/
# local settings and secrets
.env
*.pem
*.key
*.swp
*.swo
# NOTE: .vscode/ is intentionally tracked (shared workspace settings) — do not ignore it

# ---- OS junk ----
.DS_Store
Thumbs.db
desktop.ini

# ---- misc ----
*.log
.cache/
__MACOSX/

.idea/
.vscode/settings.json

# dharma packages (vcs import src < molly.repos)
src/dharma/
Loading
Loading