Browse Source

fix update_meshes

feature/RE1.5
Aaron Edsinger 2 years ago
parent
commit
0c4a1f5b07
1 changed files with 6 additions and 9 deletions
  1. +6
    -9
      stretch_description/meshes/update_meshes.py

+ 6
- 9
stretch_description/meshes/update_meshes.py View File

@ -1,12 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env python
import os import os
import stretch_body.hello_utils as hu import stretch_body.hello_utils as hu
try:
import stretch_body.robot_params
batch_name = hu.read_fleet_yaml('stretch_configuration_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)
os.system(cmd)
except hu.ParameterMigrationRequired(Exception):
pass
import stretch_body.robot_params
batch_name = hu.read_fleet_yaml('stretch_configuration_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)
os.system(cmd)

Loading…
Cancel
Save