-
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.
URC code: Aruco, obstacles, and stream networking (#3)
Co-authored-by: Binghamton Rover <[email protected]> Co-authored-by: Paul Ampadu <pgrwe> Co-authored-by: aidan ahram <[email protected]>
- Loading branch information
1 parent
e16f6c4
commit 2fe1ce1
Showing
40 changed files
with
958 additions
and
266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import "package:autonomy/autonomy.dart"; | ||
|
||
void main() async { | ||
final rover = RoverAutonomy(); | ||
rover.drive = RoverDrive(collection: rover, useImu: false, useGps: false); | ||
await rover.init(); | ||
//await rover.waitForValue(); | ||
final didSeeAruco = await rover.drive.spinForAruco(); | ||
if (didSeeAruco) { | ||
rover.logger.info("Found aruco"); | ||
await rover.drive.approachAruco(); | ||
} else { | ||
rover.logger.warning("COuld not find aruco"); | ||
} | ||
rover.logger.info("Done"); | ||
} |
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,15 @@ | ||
import "package:autonomy/autonomy.dart"; | ||
|
||
void main() async { | ||
final rover = RoverAutonomy(); | ||
await rover.init(); | ||
await rover.waitForValue(); | ||
final didSeeAruco = await rover.drive.spinForAruco(); | ||
if (didSeeAruco) { | ||
rover.logger.info("Found aruco"); | ||
await rover.drive.approachAruco(); | ||
} else { | ||
rover.logger.warning("COuld not find aruco"); | ||
} | ||
rover.logger.info("Done"); | ||
} |
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,17 @@ | ||
import "package:autonomy/autonomy.dart"; | ||
import "package:burt_network/logging.dart"; | ||
import "package:autonomy/src/rover/gps.dart"; | ||
import "package:autonomy/src/rover/imu.dart"; | ||
|
||
void main() async { | ||
Logger.level = LogLevel.all; | ||
final rover = RoverAutonomy(); | ||
rover.gps = RoverGps(collection: rover); | ||
rover.imu = RoverImu(collection: rover); | ||
rover.drive = RoverDrive(collection: rover, useGps: false, useImu: false); | ||
|
||
await rover.init(); | ||
|
||
// rover.logger.info("Done"); | ||
// await rover.dispose(); | ||
} |
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
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
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
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
Oops, something went wrong.