Skip to content

Commit

Permalink
Fix isaac-sim path check
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Feb 20, 2025
1 parent b31ae8c commit 0b38841
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nanosaur/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ def simulation_start(platform, params: Params, args):
if simulation_data['tool'] not in simulation_tools:
print(TerminalFormatter.color_text(f"Unknown simulation tool: {simulation_data['tool']}", color='red'))
return False
# Check if Isaac Sim is selected but no version is set
if simulation_data['tool'] == 'isaac-sim' and 'isaac_sim_path' not in simulation_data:
print(TerminalFormatter.color_text("No Isaac Sim version selected. Please run simulation set first.", color='red'))
return False
selected_location = simulation_data['location']
# Check if the debug mode is enabled
if selected_location == 'host':
# Check if Isaac Sim is selected but no version is set
if simulation_data['tool'] == 'isaac-sim' and 'isaac_sim_path' not in simulation_data:
print(TerminalFormatter.color_text("No Isaac Sim version selected. Please run simulation set first.", color='red'))
return False
nanosaur_ws_path = workspace.get_workspace_path(params, 'ws_simulation_name')
simulator_tool = simulation_data['tool']
return simulation_start_debug(nanosaur_ws_path, simulator_tool, params)
Expand Down

0 comments on commit 0b38841

Please sign in to comment.