CMU-TBD / SocNavBench

A Grounded Simulation Testing Framework for Evaluating Social Navigation: https://arxiv.org/abs/2103.00047
MIT License
34 stars 6 forks source link

Socket connection failure on running without robot #19

Closed ericaweng closed 2 years ago

ericaweng commented 2 years ago

When I set without_robot=True in episode_params_val.ini, I get the following error after running PYOPENGL_PLATFORM=egl PYTHONPATH='.' python3 tests/test_episodes.py:

Traceback (most recent call last):
  File "tests/test_episodes.py", line 110, in <module>
    test_episodes()
  File "tests/test_episodes.py", line 62, in test_episodes
    RobotAgent.establish_joystick_handshake(p)
  File "/home/eweng/SocNavBench/agents/robot_agent.py", line 344, in establish_joystick_handshake
    RobotAgent.robot_receiver_socket: socket.socket = socks[0]
TypeError: 'NoneType' object is not subscriptable

All tests pass.

I'm guessing the lack of robot eliminates the necessity for a socket connection behind robot + joystick.