utiasDSL / safe-control-gym

PyBullet CartPole and Quadrotor environments—with CasADi symbolic a priori dynamics—for learning-based control and RL
https://www.dynsyslab.org/safe-robot-learning/
MIT License
585 stars 122 forks source link

Installation problems #28

Closed farnammn closed 2 years ago

farnammn commented 2 years ago

Hi,

When I'm installing the package, I get these errors. When I try to install pycddlib, I also get similar errors. I have already installed gmp, as mentioned in the installation instruction. Do you know what could be the problem, can you please help me?

Screenshot (32)

Screenshot (33)

farnammn commented 2 years ago

Hi again,

I just wanted to use the environments, and I don't need the agents. I don't really need to install the package. Alternatively, can you give me instructions for using the environments in safe-control-gym/envs (i.e. the CartPole and Quadrotor class)?

JacopoPan commented 2 years ago

Hello @farnammn,

thank you for the interest in the project! The error in the screen captures above does seem related to gmp, how did you install it (conda, apt-get)?

For the second point, examples/verbose_api.py is an entry point to spin the environments in open loop

Just change

and run

python3 verbose_api.py --overrides ./verbose_api.yaml --system quadrotor

(You'll need to have pip3 install -e . the repo first so if you can't fix your first problem, I suggest to remove the pytope dependency from pyproject.toml)

amdee commented 2 years ago

Hi,

When I'm installing the package, I get these errors. When I try to install pycddlib, I also get similar errors. I have already installed gmp, as mentioned in the installation instruction. Do you know what could be the problem, can you please help me?

Screenshot (32)

Screenshot (33)

I think if you use python 3.9 to create your python env (conda create -n safe python=3.9), the "ERROR: Failed building wheel for pycddlib" should go away. I have tested it on ubuntu 22.04

JacopoPan commented 2 years ago

@amdee

I think there have been a few issues with the built of pycddlib wheel since a commit from a couple of weeks ago https://github.com/mcmtroffaes/pycddlib/issues/55 but hopefully they are resolved

JacopoPan commented 2 years ago

You might also want to look at this https://github.com/mcmtroffaes/pycddlib/issues/57

amdee commented 2 years ago

@JacopoPan Yes, I concur. I completely forgot that I had fixed the issue by reinstalling pycddlib again.