-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new head, cylinder and lamp+ new raspberry base
- Loading branch information
Showing
7 changed files
with
254 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
include <specific_frame_def.scad> | ||
|
||
include <../robotis-scad/frames/frame_def.scad> | ||
include <../robotis-scad/dynamixel/xl320_def.scad> | ||
include <../robotis-scad/ollo_segments/ollo_segments_def.scad> | ||
|
||
use <../robotis-scad/frames/U_three_ollo_frame.scad> | ||
use <../robotis-scad/ollo_segments/ollo_straight_segment.scad> | ||
use <../segment-scad/elliptic_segment.scad> | ||
|
||
use <../MCAD/rotate.scad>; | ||
|
||
module cylinder_head_frame(length=OlloSpacing/2+ollo_segment_thickness(1)){ | ||
|
||
add_U_three_ollo_frame(length) | ||
translate([0,-ollo_segment_thickness(1),0]) | ||
rotate([-90,0,0]) | ||
cylinder(h=ollo_segment_thickness(1), r=CylinderHeadRadius); | ||
} | ||
|
||
// Testing | ||
echo("##########"); | ||
echo("In cylinder_head_frame.scad"); | ||
echo("This file should not be included, use ''use <filemane>'' instead."); | ||
echo("##########"); | ||
|
||
use <../robotis-scad/dynamixel/xl320.scad> | ||
|
||
p = 1; | ||
if (p==1) { | ||
xl320(); | ||
translate([0,-4*OlloSpacing,0]) | ||
rotate([0,90,180]) | ||
cylinder_head_frame(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
include <specific_frame_def.scad> | ||
|
||
include <../robotis-scad/frames/frame_def.scad> | ||
include <../robotis-scad/dynamixel/xl320_def.scad> | ||
include <../robotis-scad/ollo_segments/ollo_segments_def.scad> | ||
|
||
use <../robotis-scad/frames/U_three_ollo_frame.scad> | ||
use <../robotis-scad/ollo_segments/ollo_straight_segment.scad> | ||
use <../segment-scad/elliptic_segment.scad> | ||
|
||
use <../MCAD/rotate.scad>; | ||
|
||
module lamp_head_frame(attachLength=OlloSpacing/2+ollo_segment_thickness(1), lampLength=LampHeadLength, lampStartRadius=LampHeadStartRadius, lampEndRadius=LampHeadEndRadius,wallThickness=ollo_segment_thickness(1),cableHoleRadius=OlloSpacing){ | ||
|
||
difference(){ | ||
union() { | ||
U_three_ollo_frame(attachLength); | ||
translate([0,attachLength-ollo_segment_thickness(1),0]) | ||
rotate([-90,0,0]) { | ||
difference() { | ||
cylinder(h=LampHeadLength, r1=lampStartRadius, r2=lampEndRadius); | ||
cylinder(h=LampHeadLength, r1=lampStartRadius-wallThickness, r2=lampEndRadius-wallThickness); | ||
} | ||
cylinder(h=ollo_segment_thickness(1),r=lampStartRadius); | ||
} | ||
} | ||
translate([0,attachLength-ollo_segment_thickness(1),0]) | ||
rotate([-90,0,0]) | ||
cylinder(h=ollo_segment_thickness(1),r=cableHoleRadius); | ||
} | ||
|
||
} | ||
|
||
// Testing | ||
echo("##########"); | ||
echo("In lamp_head_frame.scad"); | ||
echo("This file should not be included, use ''use <filemane>'' instead."); | ||
echo("##########"); | ||
|
||
use <../robotis-scad/dynamixel/xl320.scad> | ||
|
||
p = 1; | ||
if (p==1) { | ||
xl320(); | ||
translate([0,-4*OlloSpacing,0]) | ||
rotate([0,90,180]) | ||
lamp_head_frame(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
include <../robotis-scad/ollo/ollo_def.scad> | ||
include <../robotis-scad/dynamixel/xl320_def.scad> | ||
include <../robotis-scad/ollo_segments/ollo_segments_def.scad> | ||
|
||
use <../robotis-scad/ollo/ollo_tools.scad> | ||
|
||
use <../MCAD/rotate.scad>; | ||
|
||
legoWheelDiameter = 30.5; | ||
|
||
module wheels_holes(withCableHole=true, nLayer=1, spaceBetweenHoles=3*OlloSpacing) { | ||
|
||
translate([0,spaceBetweenHoles/2,0]) | ||
threeOlloHoles(nLayer=nLayer); | ||
translate([0,-spaceBetweenHoles/2,0]) | ||
threeOlloHoles(nLayer=nLayer); | ||
|
||
if (withCableHole == true) { | ||
cube([1.5*OlloSpacing,2*OlloSpacing, ollo_segment_thickness(nLayer)], center=true); | ||
} | ||
} | ||
|
||
module passive_wheel(height=MotorHeight/2+legoWheelDiameter/2, diameter=25, spaceBetweenHoles=2*OlloSpacing) { | ||
|
||
difference() { | ||
translate([0,0,-height+diameter/2]) { | ||
cylinder(h=height-diameter/2, d=diameter); | ||
sphere(diameter/2); | ||
} | ||
translate([0,0,-ollo_segment_thickness(1)/2]) | ||
wheels_holes(withCableHole=false, spaceBetweenHoles=2*OlloSpacing); | ||
} | ||
} | ||
|
||
// Testing | ||
echo("##########"); | ||
echo("In wheel_tools.scad"); | ||
echo("This file should not be included, use ''use <filemane>'' instead."); | ||
echo("##########"); | ||
|
||
use <../robotis-scad/dynamixel/xl320.scad> | ||
|
||
p = 1; | ||
if (p==1) { | ||
/*xl320();*/ | ||
passive_wheel(); | ||
} |