Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/ros2/src/raros/raros/navigation/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ def read_float(message):
print('Please enter a valid float value.')

def get_current_params(self):
if not os.path.isfile(self.params_file_path):
print(f'No parameters file found at {self.params_file_path}. '
'Please make sure that raros is installed correctly.')
raise SystemExit

with (open(self.params_file_path, 'r') as file):
data = yaml.load(file, Loader=yaml.FullLoader)
try:
Expand Down