Browse Source

update_meshes accounts for new parameters file

feature/urdf_base_imu
Binit Shah 1 year ago
committed by GitHub
parent
commit
ec97165761
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      stretch_description/meshes/update_meshes.py

+ 7
- 1
stretch_description/meshes/update_meshes.py View File

@ -1,7 +1,13 @@
#!/usr/bin/env python
import os
from os.path import exists
import stretch_body.hello_utils as hu
batch_name = hu.read_fleet_yaml('stretch_re1_factory_params.yaml')['robot']['batch_name'].lower()
if exists(hu.get_fleet_directory() + 'stretch_configuration_params.yaml'):
batch_name = hu.read_fleet_yaml('stretch_configuration_params.yaml')['robot']['batch_name'].lower()
else:
batch_name = hu.read_fleet_yaml('stretch_re1_factory_params.yaml')['robot']['batch_name'].lower()
cmd='cp ~/catkin_ws/src/stretch_ros/stretch_description/meshes/'+batch_name+'/*.STL ~/catkin_ws/src/stretch_ros/stretch_description/meshes'
print("Copying in mesh files from batch:"+batch_name)
print(cmd)

Loading…
Cancel
Save