Skip to content

Commit 430bdcb

Browse files
committed
Make small updates
1 parent bc90f4f commit 430bdcb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

robot_nav/sim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, world_file="robot_world.yaml", disable_plotting=False):
1414

1515
def step(self, lin_velocity=0.0, ang_velocity=0.1):
1616
self.env.step(action_id=0, action=np.array([[lin_velocity], [ang_velocity]]))
17-
self.env.render(interval=0.01)
17+
self.env.render()
1818

1919
scan = self.env.get_lidar_scan()
2020
latest_scan = scan["ranges"]

robot_nav/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ def main(args=None):
2222
epoch = 0 # epoch number
2323
max_steps = 300 # maximum number of steps in single episode
2424

25-
model = BTD3(
25+
model = TD3(
2626
state_dim=state_dim,
2727
action_dim=action_dim,
2828
max_action=max_action,
2929
device=device,
3030
load_model=True,
31+
model_name="TD3",
3132
) # instantiate a model
3233

3334
sim = SIM_ENV(world_file="eval_world.yaml") # instantiate environment

robot_nav/test_random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def main(args=None):
3131
max_action=max_action,
3232
device=device,
3333
load_model=True,
34-
model_name="BSA1Cw025exp1",
34+
model_name="SAC",
3535
) # instantiate a model
3636

3737
sim = SIM_ENV(

0 commit comments

Comments
 (0)