Skip to content

Commit 9618a01

Browse files
committed
break up unitree go2 blueprints
1 parent d1e5de4 commit 9618a01

19 files changed

+542
-248
lines changed

dimos/protocol/mcp/test_mcp_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
def test_unitree_blueprint_has_mcp() -> None:
33-
contents = Path("dimos/robot/unitree/go2/all_blueprints.py").read_text()
33+
contents = Path("dimos/robot/unitree/go2/blueprints/__init__.py").read_text()
3434
assert "agentic_mcp" in contents
3535
assert "MCPModule.blueprint()" in contents
3636

dimos/robot/all_blueprints.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@
4848
"unitree-g1-joystick": "dimos.robot.unitree.g1.blueprints.basic.unitree_g1_joystick:unitree_g1_joystick",
4949
"unitree-g1-shm": "dimos.robot.unitree.g1.blueprints.perceptive.unitree_g1_shm:unitree_g1_shm",
5050
"unitree-g1-sim": "dimos.robot.unitree.g1.blueprints.perceptive.unitree_g1_sim:unitree_g1_sim",
51-
"unitree-go2": "dimos.robot.unitree.go2.all_blueprints:unitree_go2",
52-
"unitree-go2-agentic": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_agentic",
53-
"unitree-go2-agentic-huggingface": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_agentic_huggingface",
54-
"unitree-go2-agentic-mcp": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_agentic_mcp",
55-
"unitree-go2-agentic-ollama": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_agentic_ollama",
56-
"unitree-go2-basic": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_basic",
57-
"unitree-go2-detection": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_detection",
58-
"unitree-go2-ros": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_ros",
59-
"unitree-go2-spatial": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_spatial",
60-
"unitree-go2-temporal-memory": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_temporal_memory",
61-
"unitree-go2-vlm-stream-test": "dimos.robot.unitree.go2.all_blueprints:unitree_go2_vlm_stream_test",
51+
"unitree-go2": "dimos.robot.unitree.go2.blueprints:unitree_go2",
52+
"unitree-go2-agentic": "dimos.robot.unitree.go2.blueprints:unitree_go2_agentic",
53+
"unitree-go2-agentic-huggingface": "dimos.robot.unitree.go2.blueprints:unitree_go2_agentic_huggingface",
54+
"unitree-go2-agentic-mcp": "dimos.robot.unitree.go2.blueprints:unitree_go2_agentic_mcp",
55+
"unitree-go2-agentic-ollama": "dimos.robot.unitree.go2.blueprints:unitree_go2_agentic_ollama",
56+
"unitree-go2-basic": "dimos.robot.unitree.go2.blueprints:unitree_go2_basic",
57+
"unitree-go2-detection": "dimos.robot.unitree.go2.blueprints:unitree_go2_detection",
58+
"unitree-go2-ros": "dimos.robot.unitree.go2.blueprints:unitree_go2_ros",
59+
"unitree-go2-spatial": "dimos.robot.unitree.go2.blueprints:unitree_go2_spatial",
60+
"unitree-go2-temporal-memory": "dimos.robot.unitree.go2.blueprints:unitree_go2_temporal_memory",
61+
"unitree-go2-vlm-stream-test": "dimos.robot.unitree.go2.blueprints:unitree_go2_vlm_stream_test",
6262
"xarm6-planner-only": "dimos.manipulation.manipulation_blueprints:xarm6_planner_only",
6363
"xarm7-planner-coordinator": "dimos.manipulation.manipulation_blueprints:xarm7_planner_coordinator",
6464
}

dimos/robot/unitree/go2/all_blueprints.py

Lines changed: 0 additions & 234 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env python3
2+
# Copyright 2025-2026 Dimensional Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
"""Cascaded GO2 blueprints split into focused modules."""
17+
18+
from .agentic._common_agentic import _common_agentic
19+
from .agentic.unitree_go2_agentic import unitree_go2_agentic
20+
from .agentic.unitree_go2_agentic_huggingface import unitree_go2_agentic_huggingface
21+
from .agentic.unitree_go2_agentic_mcp import unitree_go2_agentic_mcp
22+
from .agentic.unitree_go2_agentic_ollama import unitree_go2_agentic_ollama
23+
from .agentic.unitree_go2_temporal_memory import unitree_go2_temporal_memory
24+
from .basic.unitree_go2_basic import _linux, _mac, unitree_go2_basic
25+
from .smart._with_jpeg import _with_jpeglcm, _with_jpegshm
26+
from .smart.unitree_go2 import unitree_go2
27+
from .smart.unitree_go2_detection import unitree_go2_detection
28+
from .smart.unitree_go2_ros import unitree_go2_ros
29+
from .smart.unitree_go2_spatial import unitree_go2_spatial
30+
from .smart.unitree_go2_vlm_stream_test import unitree_go2_vlm_stream_test
31+
32+
__all__ = [
33+
"_common_agentic",
34+
"_linux",
35+
"_mac",
36+
"_with_jpeglcm",
37+
"_with_jpegshm",
38+
"unitree_go2",
39+
"unitree_go2_agentic",
40+
"unitree_go2_agentic_huggingface",
41+
"unitree_go2_agentic_mcp",
42+
"unitree_go2_agentic_ollama",
43+
"unitree_go2_basic",
44+
"unitree_go2_detection",
45+
"unitree_go2_ros",
46+
"unitree_go2_spatial",
47+
"unitree_go2_temporal_memory",
48+
"unitree_go2_vlm_stream_test",
49+
]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python3
2+
# Copyright 2025-2026 Dimensional Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
from dimos.agents.cli.human import human_input
17+
from dimos.agents.cli.web import web_input
18+
from dimos.agents.skills.navigation import navigation_skill
19+
from dimos.agents.skills.person_follow import person_follow_skill
20+
from dimos.agents.skills.speak_skill import speak_skill
21+
from dimos.core.blueprints import autoconnect
22+
from dimos.robot.unitree.go2.connection import GO2Connection
23+
from dimos.robot.unitree.unitree_skill_container import unitree_skills
24+
25+
_common_agentic = autoconnect(
26+
human_input(),
27+
navigation_skill(),
28+
person_follow_skill(camera_info=GO2Connection.camera_info_static),
29+
unitree_skills(),
30+
web_input(),
31+
speak_skill(),
32+
)
33+
34+
__all__ = ["_common_agentic"]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env python3
2+
# Copyright 2025-2026 Dimensional Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
from dimos.agents.agent import llm_agent
17+
from dimos.core.blueprints import autoconnect
18+
19+
from ..smart.unitree_go2_spatial import unitree_go2_spatial
20+
from ._common_agentic import _common_agentic
21+
22+
unitree_go2_agentic = autoconnect(
23+
unitree_go2_spatial,
24+
llm_agent(),
25+
_common_agentic,
26+
)
27+
28+
__all__ = ["unitree_go2_agentic"]

0 commit comments

Comments
 (0)