-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinkedCadEngine.groovy
27 lines (27 loc) · 1.06 KB
/
LinkedCadEngine.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import com.neuronrobotics.bowlerstudio.creature.ICadGenerator;
import com.neuronrobotics.bowlerstudio.creature.CreatureLab;
import org.apache.commons.io.IOUtils;
import com.neuronrobotics.bowlerstudio.vitamins.*;
//First we load teh default cad generator script
ICadGenerator defaultCadGen=(ICadGenerator) ScriptingEngine
.gitScriptRun(
"https://github.com/madhephaestus/carl-the-hexapod.git", // git location of the library
"ThreeDPrintCad.groovy" , // file to load
null
)
return new ICadGenerator(){
@Override
public ArrayList<CSG> generateCad(DHParameterKinematics d, int linkIndex) {
ArrayList<CSG> allCad=defaultCadGen.generateCad(d,linkIndex);
//If you want you can add things here
//allCad.add(myCSG);
return allCad;
}
@Override
public ArrayList<CSG> generateBody(MobileBase b ) {
ArrayList<CSG> allCad=defaultCadGen.generateBody(b);
//If you want you can add things here
//allCad.add(myCSG);
return allCad;
}
};