Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gbartyzel committed Jun 23, 2018
1 parent 8f827ec commit 1247e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym_vrep/envs/gym_vrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@


def run_env(port, scene):
vrep_exec = os.environ['V_REP'] + 'vrep.sh '
vrep_exec = os.environ['V_REP'] + 'vrep.sh -h '
synch_mode_cmd = '-gREMOTEAPISERVERSERVICE_' + str(port) + '_FALSE_TRUE '
fullpath = os.path.join(
os.path.dirname(__file__), 'scenes', scene + '.ttt')

subprocess.call(vrep_exec + synch_mode_cmd + fullpath + ' &', shell=True)
time.sleep(5.5)
time.sleep(0.5)

client = vrep.simxStart('127.0.0.1', port, True, True, 5000, 5)
vrep.simxSynchronous(client, True)
Expand Down

0 comments on commit 1247e1e

Please sign in to comment.