Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
(needs.check-changes.outputs.dev == 'true' ||
(needs.ros-python.result == 'success' && (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.ros == 'true')))
}}
from-image: ghcr.io/dimensionalos/ros-python:${{ needs.ros-python.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
from-image: ghcr.io/dimensionalos/ros-python:${{ needs.ros-python.result == 'success' && (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.ros == 'true') && needs.check-changes.outputs.branch-tag || 'dev' }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls dont touch CI unless you have very good reason

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I debated quite a bit before adding this.

The original intended to fall back to dev when ros-python didn't build, but the problem is GitHub Actions expression evaluation: ros-python.result == 'success' is true even when should-run was false (all steps skipped, job still reports success). So the original resolves to branch-tag instead of 'dev'. This causes a bug where it expects the ros-python build but gets a stale one.

This edit adds the extra check (python == 'true' || ros == 'true') so it only uses the branch tag when those files actually changed, meaning ros-python actually built something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally understand your concern here. You finally got CI to work properly I am scared of breaking it again too. 😅

to-image: ghcr.io/dimensionalos/ros-dev:${{ needs.check-changes.outputs.branch-tag }}
dockerfile: dev

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
git config --global --add safe.directory '*'

- name: Install Python dependencies
run: uv sync --all-extras --no-extra dds --frozen
run: uv sync --all-extras --frozen

- name: Remove pydrake stubs
run: |
Expand Down
19 changes: 19 additions & 0 deletions dimos/hardware/drive_trains/unitree_g1/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2025-2026 Dimensional Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Unitree G1 humanoid robot adapter."""

from dimos.hardware.drive_trains.unitree_g1.adapter import UnitreeG1TwistAdapter

__all__ = ["UnitreeG1TwistAdapter"]
Loading
Loading