-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ishaan Ghaskadbi
authored and
Ishaan Ghaskadbi
committed
Nov 16, 2024
1 parent
180f942
commit 64574d1
Showing
20 changed files
with
688 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
41 changes: 41 additions & 0 deletions
41
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/basket/BlueHighBasket1.kt
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,41 @@ | ||
package com.example.pathplanning.blue.basket | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueHighBasket1 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, 62.0, (270.0).toRadians())) | ||
.turn((90.0).toRadians()) | ||
.forward(60.0) | ||
.waitSeconds(2.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/basket/BlueHighBasket2.kt
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,41 @@ | ||
package com.example.pathplanning.blue.basket | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueHighBasket2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, 62.0, (270.0).toRadians())) | ||
.turn((90.0).toRadians()) | ||
.forward(35.0) | ||
.waitSeconds(2.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/chamber/BlueHighChamber1.kt
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,41 @@ | ||
package com.example.pathplanning.blue.chamber | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueHighChamber1 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, 62.0, (270.0).toRadians())) | ||
.forward(28.0) | ||
.strafeLeft(11.0) | ||
.waitSeconds(2.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/chamber/BlueHighChamber2.kt
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,41 @@ | ||
package com.example.pathplanning.blue.chamber | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueHighChamber2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, 62.0, (270.0).toRadians())) | ||
.forward(28.0) | ||
.strafeRight(11.0) | ||
.waitSeconds(2.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkObservation1.kt
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,39 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkObservation1 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, 62.0, (270.0).toRadians())) | ||
.strafeRight(48.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkObservation2.kt
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,39 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkObservation2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, 62.0, (270.0).toRadians())) | ||
.strafeRight(72.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...Planning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkTouchSubmmersible1.kt
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,44 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkTouchSubmmersible1 { | ||
|
||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, 62.0, (270.0).toRadians())) | ||
.forward(27.0) | ||
.strafeLeft(48.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} | ||
|
42 changes: 42 additions & 0 deletions
42
...Planning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkTouchSubmmersible2.kt
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,42 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkTouchSubmmersible2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, 62.0, (270.0).toRadians())) | ||
.forward(27.0) | ||
.strafeLeft(24.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
Oops, something went wrong.