Skip to content

Commit

Permalink
remove unnecessary robot type detection for duckietown stack
Browse files Browse the repository at this point in the history
This is performed in the `dts duckiebot update` command, not here.
  • Loading branch information
Tuxliri committed Dec 5, 2024
1 parent 1fe3b49 commit 0a2351b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions stack/up/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,6 @@ def command(shell: DTShell, args):
project_name = parsed.project or stack.replace("/", "_")
robot: str = parsed.machine.replace(".local", "")
hostname: str = best_host_for_robot(parsed.machine)
# special stack is `duckietown`
if project_name == DUCKIETOWN_STACK:
# retrieve robot type from device
dtslogger.info(f'Waiting for robot "{robot}"...')
_, _, data = wait_for_service("DT::ROBOT_TYPE", robot)
rtype = data["type"]
dtslogger.info(f'Detected device type is "{rtype}".')
stack = f"{DUCKIETOWN_STACK}/{rtype}"
project_name = DUCKIETOWN_STACK
# sanitize stack
stack = stack if "/" in stack else f"{stack}/{DEFAULT_STACK}"
# check stack
Expand Down

0 comments on commit 0a2351b

Please sign in to comment.