Skip to content

Instantly share code, notes, and snippets.

View Octogonapus's full-sized avatar

:) Octogonapus

  • Leuko
  • 00:12 (UTC -04:00)
View GitHub Profile
@Octogonapus
Octogonapus / write-guice-graph-script.kts
Last active March 9, 2019 01:37
Writes a Guice injector graph to a .dot file
import arrow.core.Either
import arrow.core.right
import com.google.common.collect.ImmutableList
import com.neuronrobotics.bowlerbuilder.view.cad.cadengine.util.GuiceGrapher
import com.neuronrobotics.bowlerkernel.hardware.Script
class WriteGuiceGraphScript : Script() {
override fun runScript(args: ImmutableList<Any?>): Either<String, Any?> {
val filename = if (args.size == 1 && args.first() is String)
@Octogonapus
Octogonapus / test_cad_engine.kts
Last active May 4, 2019 15:00
testing using the CadEngine from a kotlin script
/*
* This file is part of BowlerBuilder.
*
* BowlerBuilder is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* BowlerBuilder is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@Octogonapus
Octogonapus / pgympy-test-1
Created January 15, 2019 15:33
A test to generate CPD's and do random variable inference using pgmpy.
Option CPD:
+----------+-----+
| option_0 | 0.3 |
+----------+-----+
| option_1 | 0.7 |
+----------+-----+
Jaywalking CPD:
+--------------+----------+----------+
| option | option_0 | option_1 |
+--------------+----------+----------+
@Octogonapus
Octogonapus / 6DOFHephaestusWorkCell.xml
Created November 28, 2018 18:05 — forked from madhephaestus/6DOFHephaestusWorkCell.xml
6DOFHephaestusWorkCell copy of HephaestusWorkCell
<root>
<mobilebase>
<cadEngine>
<git>https://github.com/madhephaestus/SeriesElasticActuator.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/564eed11f7a448e39ef9964f5485c0a4.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>
# initialization file (not found)
@Octogonapus
Octogonapus / defaultCreatures.json
Last active March 11, 2018 12:35
BowlerBuilder's Creature files
{
"files": [
{
"pushURL": "https://gist.github.com/74d9cb301ceece7548650c3edf41459a.git",
"fileName": "BB_ARM.xml",
"creatureName": "3DOF Arm"
},
{
"pushURL": "https://gist.github.com/edf8b3648e637d8041264e451c4e3321.git",
"fileName": "NASA_Curiosity_copy.xml",
@Octogonapus
Octogonapus / defaultArm.xml
Last active February 28, 2018 21:13 — forked from madhephaestus/defaultFixed.xml
Default Appendages
<root>
<appendage>
<name>DefaultArm</name>
<cadEngine>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<kinematics>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
@Octogonapus
Octogonapus / BB_ARM_2.xml
Created February 28, 2018 18:00
BB_ARM_2 copy of BB_ARM
<root>
<mobilebase>
<cadEngine>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>
@Octogonapus
Octogonapus / BB_ARM.xml
Last active February 28, 2018 17:54
BB_ARM copy of HephaestusWorkCell
<root>
<mobilebase>
<cadEngine>
<git>https://gist.github.com/74d9cb301ceece7548650c3edf41459a.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/74d9cb301ceece7548650c3edf41459a.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>
@Octogonapus
Octogonapus / helloWorld.groovy
Created February 28, 2018 01:29 — forked from madhephaestus/.gitignore
BowlerStudio Hello World
// Have BowlerStudio speak messages
BowlerKernel.speak("Welcome to Bowler Studio")