Skip to content

Conversation

bsplonka
Copy link

Hey.
I love your work! It is incredible, and I support your choice to make it open source.

After struggling for several days to get it to work on a Mac, I finally overcame the problem with
RuntimeError: launch_passiverequires that the Python script be run undermjpython on macOS

I fixed it by telling dora explicitly to use mjpython, but only for the simulation part!

nodes:
  - id: hand_tracker
    build: pip install -e HandTracking
    path: HandTracking/HandTracking/main.py
    inputs:
      tick: dora/timer/millis/50
    outputs:
      - hand_pos

  - id: hand_simulation
    build: pip install -e AHSimulation
    path: mujoco-venv/bin/mjpython
    args: AHSimulation/AHSimulation/mj_mink_right.py
    inputs:
      hand_pos: hand_tracker/hand_pos
      tick: dora/timer/millis/2
      tick_ctrl: dora/timer/millis/10
    outputs:
      - mj_joints_pos

I hope this helps others to also get it to run on a Mac.
Keep in mind however, to clone into a folder, that dora has access to!

@SteveNguyen
Copy link
Contributor

Ok I see you are right with MacOS we have to use mjpython.
I will have to find a way of doing it without breaking the linux build.
I also need to make it work work windows though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants