Open GregorKikelj opened 2 years ago
Hi, shared memory is not yet working on Linux (we are working on a fix). Meanwhile, you can disable shared memory by using the camera = Camera(cam_pos, cam_dir, cam_fov, cam_res, colour=True, shmem=False)
call.
Yeah, trying to get Linux to work. Can close, just wanted to make sure it's a known issue
Did some more testing, still can't seem to get the camera to work. Tried running https://raw.githubusercontent.com/BeamNG/BeamNGpy/master/examples/west_coast_random.py with shmem=False but keep getting
Traceback (most recent call last):
File "/home/gregor/openpilot/tools/sim/testing.py", line 113, in main
sensors = bng.poll_sensors(vehicle)
File "/home/gregor/.local/share/virtualenvs/openpilot-EZB6qHEP/lib/python3.8/site-packages/beamngpy/beamng.py", line 1049, in poll_sensors
vehicle.poll_sensors()
File "/home/gregor/.local/share/virtualenvs/openpilot-EZB6qHEP/lib/python3.8/site-packages/beamngpy/vehicle.py", line 349, in poll_sensors
response = self.bng.recv()
File "/home/gregor/.local/share/virtualenvs/openpilot-EZB6qHEP/lib/python3.8/site-packages/beamngpy/beamng.py", line 524, in recv
return recv_msg(self.skt)
File "/home/gregor/.local/share/virtualenvs/openpilot-EZB6qHEP/lib/python3.8/site-packages/beamngpy/beamngcommon.py", line 257, in recv_msg
length = int(str(length, 'ascii'))
ValueError: invalid literal for int() with base 10: ''
Trying to run code similar to an example
However get the error