I've been unable to run the example code and get past the "env.start()" line. I'm getting a Permission denied error when it tries to spawn a new process with the thor environment. I've already tried giving full permissions to everything within the "thor-201705011400-Linux64" folder to see if that would work, but it gives the same result.
Here's the output when I try to run the script step by step:
>>> import robosims
>>> import json
>>> env = robosims.controller.ChallengeController(unity_path='thor-201705011400-Linux64',x_display=':0')
>>> env.start()
{
"SERVER_SIDE_SCREENSHOT": false,
"SMOOTH_ANIMATION": false,
"PREFIX": "ROBOSIMS_",
"ENV_BUILD_LINUX": "thor-201705011400-Linux64",
"TRAIN_PHASE": false,
"AGENT_HEIGHT": 1.8,
"PLAYER_SCREEN_WIDTH": 300,
"PLAYER_SCREEN_HEIGHT": 300,
"TEST_TURN_VELOCITY": 10.0,
"AGENT_RADIUS": 0.2,
"ENV_BUILD_DARWIN": "unity/builds/living-room-OSXIntel64.app",
"COMPUTE_DEPTH_MAP": false,
"TEST_WALK_VELOCITY": 2.0,
"ENV_NAME": "living-room-0",
"HUMAN_CONTROL_MODE": false,
"TASK_TARGET": "balcony",
"ENV_TYPE": "living-room",
"TRAIN_WALK_VELOCITY": 20.0,
"TRAIN_TURN_VELOCITY": 100.0,
"TASK_TYPE": "navigation",
"TRAIN_ACTION_LENGTH": 1,
"TEST_ACTION_LENGTH": 1,
"PROCESS_NAME": "Robot AI Platform",
"X_DISPLAY": ":0"
}>>>
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/robosims/controller.py", line 446, in _start_thread
proc = subprocess.Popen(self.unity_command(config), env=env)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Can you check the permissions of the 'thor-201705011400-Linux64' executable? Do you have execute permissions on this file?
Posted by: AI2_admin @ June 28, 2017, 8:27 p.m.I got the same problem, and it comes from the wrong link of unity executable file.
In my case, I have a test.py in parent folder which is the same with folder "thor-201705011400-Linux64", then I put unity_path='thor-201705011400-Linux64/thor-201705011400-Linux64'