Skip to content

Commit 743a80b

Browse files
author
Jimmy Wu
committed
Rename variables
1 parent 9a9c6e2 commit 743a80b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def _step(self, action, dry_run=False):
321321
ratio = min(ratio_x, ratio_y)
322322
robot_target_end_effector_position = (np.asarray(robot_initial_position) + ratio * diff).tolist()
323323
if dry_run:
324-
# Used in physical environment
324+
# Used in real environment
325325
return robot_target_end_effector_position
326326

327327
# Compute waypoint positions

utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def select_run():
7575

7676
return selected_config_path
7777

78-
def get_env_from_cfg(cfg, physical_env=False, **kwargs):
78+
def get_env_from_cfg(cfg, real_env=False, **kwargs):
7979
kwarg_list = [
8080
'room_length', 'room_width', 'num_cubes', 'obstacle_config',
8181
'use_distance_to_receptacle_channel', 'distance_to_receptacle_channel_scale',
@@ -89,7 +89,7 @@ def get_env_from_cfg(cfg, physical_env=False, **kwargs):
8989
for kwarg_name in kwarg_list:
9090
original_kwargs[kwarg_name] = cfg[kwarg_name]
9191
original_kwargs.update(kwargs)
92-
if physical_env:
92+
if real_env:
9393
return environment.RealEnvironment(**original_kwargs)
9494
return environment.Environment(**original_kwargs)
9595

vector_click_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def main(args):
6464
print('Could not connect to aruco server for pose estimates')
6565
return
6666

67-
# Create action executor for the physical robot
67+
# Create action executor for the real robot
6868
action_executor = vector_action_executor.VectorActionExecutor(args.robot_index)
6969

7070
# Create pybullet environment to mirror real-world

vector_enjoy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def main(args):
1515
print('Could not connect to aruco server for pose estimates')
1616
return
1717

18-
# Create action executor for the physical robot
18+
# Create action executor for the real robot
1919
action_executor = vector_action_executor.VectorActionExecutor(args.robot_index)
2020

2121
# Create env
@@ -30,7 +30,7 @@ def main(args):
3030
if args.debug:
3131
kwargs['use_gui'] = True
3232
cube_indices = list(range(args.num_cubes))
33-
env = utils.get_env_from_cfg(cfg, physical_env=True, robot_index=action_executor.robot_index, cube_indices=cube_indices, **kwargs)
33+
env = utils.get_env_from_cfg(cfg, real_env=True, robot_index=action_executor.robot_index, cube_indices=cube_indices, **kwargs)
3434
env.reset()
3535

3636
# Create policy

0 commit comments

Comments
 (0)