@@ -237,6 +237,26 @@ const frontWheel = () =>
237237 } ) ,
238238 )
239239
240+ const batteryStraps = ( pcbWidth : number , depth = 12 , thickness = 3 ) =>
241+ subtract (
242+ cuboid ( {
243+ size : [ depth + 2 * thickness , pcbWidth + 6 * thickness , thickness ] ,
244+ center : [ 0 , 0 , thickness / 2 ] ,
245+ } ) ,
246+ cuboid ( {
247+ size : [ depth , pcbWidth , thickness ] ,
248+ center : [ 0 , 0 , thickness / 2 ] ,
249+ } ) ,
250+ cuboid ( {
251+ size : [ depth , thickness , thickness ] ,
252+ center : [ 0 , pcbWidth / 2 + 1.5 * thickness , thickness / 2 ] ,
253+ } ) ,
254+ cuboid ( {
255+ size : [ depth , thickness , thickness ] ,
256+ center : [ 0 , - pcbWidth / 2 - 1.5 * thickness , thickness / 2 ] ,
257+ } ) ,
258+ )
259+
240260export const robotBody = ( ) : ( Geom2 | Geom3 | Poly3 | Path2 ) [ ] => {
241261 const pcbWidth = 63.5
242262 const padding = 15
@@ -404,6 +424,7 @@ export const robotBody = (): (Geom2 | Geom3 | Poly3 | Path2)[] => {
404424 translate ( [ - 6 , 22 , 2 ] , cableHolder ( ) ) ,
405425 translate ( [ - 6 , width - 22 , 2 ] , rotateZ ( degToRad ( 180 ) , cableHolder ( ) ) ) ,
406426 translate ( [ - length + 20 , width / 2 , 0 ] , frontWheel ( ) ) ,
427+ translate ( [ - length + 20 , width / 2 , 0 ] , batteryStraps ( pcbWidth ) ) ,
407428 ) ,
408429 ]
409430}
0 commit comments