@@ -1043,15 +1043,24 @@ return new ICadGenerator(){
1043
1043
private ArrayList<CSG> getCameraMount(){
1044
1044
// cameraLocationCSG
1045
1045
1046
- double cameraMountSize = 38 +5+ thickness. getMM()
1046
+ double cameraMountSize = 45 +5+ thickness. getMM()
1047
1047
Log . enableSystemPrint(true )
1048
1048
println " Camera at " + cameraLocationNR
1049
1049
double cameraBolt = (workcellSize- cameraMountSize)/ 2
1050
+ CSG camera = (CSG ) ScriptingEngine
1051
+ .gitScriptRun(
1052
+ " https://github.com/madhephaestus/SeriesElasticActuator.git" , // git location of the library
1053
+ " camera.groovy" , // file to load
1054
+ null // create a keepaway version
1055
+ )
1056
+ camera = camera. union(camera. rotz(90 ))
1057
+ .transformed(cameraLocationCSG)
1050
1058
CSG camerMount = new Cube ( cameraMountSize+5 ,
1051
1059
cameraMountSize+5 ,
1052
1060
thickness. getMM()). toCSG()
1053
1061
.toZMax()
1054
1062
.transformed(cameraLocationCSG)
1063
+ .difference(camera)
1055
1064
CSG camerMountLug = new Cube ( cameraMountSize,
1056
1065
thickness. getMM(),
1057
1066
30 ). toCSG()
@@ -1117,8 +1126,31 @@ return new ICadGenerator(){
1117
1126
.toYMax()
1118
1127
.movey(cameraMountSize/ 2 )
1119
1128
camerMount= camerMount. difference(topBolts,bracketA,bracketB)
1129
+ camerMount. setManufacturing({ toMfg ->
1130
+ TransformNR step = cameraLocationNR. inverse()
1131
+ Transform move = TransformFactory . nrToCSG(step)
1132
+ return toMfg
1133
+ .transformed(move)
1134
+ .toXMin()
1135
+ .toYMin()
1136
+ .toZMin()
1137
+ })
1138
+ bracketA. setManufacturing({ toMfg ->
1139
+ return toMfg
1140
+ .rotx(90 )
1141
+ .toXMin()
1142
+ .toYMin()
1143
+ .toZMin()
1144
+ })
1145
+ bracketB. setManufacturing({ toMfg ->
1146
+ return toMfg
1147
+ .rotx(90 )
1148
+ .toXMin()
1149
+ .toYMin()
1150
+ .toZMin()
1151
+ })
1120
1152
// return [bottomNotches]
1121
- return [camerMount,bracketA,bracketB,bottomBolts]
1153
+ return [camerMount,bracketA,bracketB,bottomBolts,camera ]
1122
1154
}
1123
1155
1124
1156
private add(ArrayList<CSG> csg ,CSG object, Affine dh ){
0 commit comments