UM-ARM-Lab / pytorch_kinematics

Robot kinematics implemented in pytorch
MIT License
394 stars 34 forks source link

Is it possible to install the package without mujoco dependency? #35

Closed StoneT2000 closed 1 week ago

StoneT2000 commented 7 months ago

Thanks for this awesome work! I was trying to use this package but it seems it by default does from pytorch_kinematics.mjcf import * when i run import pytorch_kinematics as pk which then imports mujoco. However I would like to avoid having users installing mujoco in the project I am working on. Is it possible to make this optional?

For example maybe add a try except around from pytorch_kinematics.mjcf import * in init.py

StoneT2000 commented 2 months ago

Bumping this message up, is there a way around this? The alternative for me is to fork the repository and make my own package

LemonPi commented 1 month ago

Sorry didn't get to see this issue, but I'll take a look at it soon