Skip to content
Merged
Changes from all commits
Commits
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
22 changes: 19 additions & 3 deletions dimos/robot/unitree_webrtc/multiprocess/unitree_go2.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,25 @@ def subscribe(observer, scheduler=None):
)


async def run_light_robot():
"""Run the lightweight robot without GPU modules."""
ip = os.getenv("ROBOT_IP")

robot = UnitreeGo2Light(ip)

await robot.start()

pose = robot.get_pose()
print(f"Robot position: {pose['position']}")
print(f"Robot rotation: {pose['rotation']}")
robot.explore()
# Keep the program running
while True:
await asyncio.sleep(1)


if __name__ == "__main__":
import os

robot = UnitreeGo2Light(os.getenv("ROBOT_IP"))
asyncio.run(robot.start())
# asyncio.run(run("192.168.9.140"))
print("Running UnitreeGo2Light...")
asyncio.run(run_light_robot())