Skip to content

Commit

Permalink
WIP C++example rework. poseest working decently now.
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Sep 6, 2024
1 parent 385154b commit 306a7ff
Show file tree
Hide file tree
Showing 60 changed files with 321 additions and 2,103 deletions.
16 changes: 3 additions & 13 deletions docs/source/docs/contributing/building-photon.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,9 @@ The program will wait for the VSCode debugger to attach before proceeding.

### Running examples

You can run one of the many built in examples straight from the command line, too! They contain a fully featured robot project, and some include simulation support. The projects can be found inside the photonlib-java-examples and photonlib-cpp-examples subdirectories, respectively. The projects currently available include:

- photonlib-java-examples:
- aimandrange:simulateJava
- aimattarget:simulateJava
- getinrange:simulateJava
- simaimandrange:simulateJava
- simposeest:simulateJava
- photonlib-cpp-examples:
- aimandrange:simulateNative
- getinrange:simulateNative

To run them, use the commands listed below. PhotonLib must first be published to your local maven repository, then the copy PhotonLib task will copy the generated vendordep json file into each example. After that, the simulateJava/simulateNative task can be used like a normal robot project. Robot simulation with attached debugger is technically possible by using simulateExternalJava and modifying the launch script it exports, though unsupported.
You can run one of the many built in examples straight from the command line, too! They contain a fully featured robot project, and some include simulation support. The projects can be found inside the photonlib-java-examples and photonlib-cpp-examples subdirectories, respectively.

To run them, use the commands listed below. PhotonLib must first be published to your local maven repository, then the copy PhotonLib task will copy the generated vendordep json file into each example. After that, the simulateJava/simulateNative task can be used like a normal robot project. Robot simulation with attached debugger is technically possible by using simulateExternalJava and modifying the launch script it exports, though not yet supported.

```
~/photonvision$ ./gradlew publishToMavenLocal
Expand Down
116 changes: 0 additions & 116 deletions photonlib-cpp-examples/apriltagExample/build.gradle

This file was deleted.

91 changes: 0 additions & 91 deletions photonlib-cpp-examples/apriltagExample/gradlew.bat

This file was deleted.

102 changes: 0 additions & 102 deletions photonlib-cpp-examples/apriltagExample/simgui-ds.json

This file was deleted.

Loading

0 comments on commit 306a7ff

Please sign in to comment.