Skip to content

Commit

Permalink
Improve deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 28, 2025
1 parent 3545562 commit c3d32c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/nanosaur/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
NANOSAUR_DOCKER_PACKAGE_SIMULATION = "simulation"
NANOSAUR_DOCKER_PACKAGE_PERCEPTION = "perception"

NANOSAUR_SIMULATION_IMAGES = ['gazebo', 'isaac-sim', 'robot']

def get_starting_location(params: utilities.Params) -> str:
"""Prompt the user to select the location to run the command."""
Expand Down Expand Up @@ -328,7 +329,7 @@ def debug_simulation(params: utilities.Params, args):
inquirer.List(
'launcher',
message="Select a launcher to debug",
choices=['gazebo', 'isaac-sim', 'robot'],
choices=NANOSAUR_SIMULATION_IMAGES,
ignore=lambda answers: args.image_name is not None,
),
inquirer.List(
Expand Down Expand Up @@ -403,13 +404,13 @@ def deploy_simulation(image_name):
""" Deploy the simulation workspace """
# Get the selected image to deploy
if args.all:
image_list = ['gazebo', 'isaac-sim', 'robot']
image_list = NANOSAUR_SIMULATION_IMAGES
elif image_name is None:
questions = [
inquirer.Checkbox(
'image',
message="Select a simulation you want deploy",
choices=['gazebo', 'isaac-sim', 'robot']
choices=NANOSAUR_SIMULATION_IMAGES
)
]
answers = inquirer.prompt(questions)
Expand Down

0 comments on commit c3d32c6

Please sign in to comment.