commaai / bodyjim

A gymnasium environment for the comma body
MIT License
32 stars 2 forks source link

Running examples on Mac #3

Closed srik901 closed 6 months ago

srik901 commented 6 months ago

To run the random_walk.py example

I had to change the following env = BodyEnv(body_ip, cameras, render_mode="human")

to env = BodyEnv(body_ip, cameras,["accelerometer", "gyroscope", "gpsLocation"], render_mode="human")

if not I was getting a time out error. The same thing was happening for the follow_human.py example also

Also to run the follow_human.py I had to install the following that were previously not installed with "pip install bodyjim" cv2, onnx, onnxruntime

fredyshox commented 6 months ago

Which openpilot version/commit are you running on the body?

srik901 commented 6 months ago

Which openpilot version/commit are you running on the body?

0.9.6

fredyshox commented 6 months ago

It seems like this is an issue with webrtcd shipped in 0.9.6 and was fixed with https://github.com/commaai/openpilot/commit/09e73f8fb6b681512b1adbe46b2d6e64f0f5f54f. Can you try with the current master?

srik901 commented 6 months ago

Just tested with master and it is working. Thanks!