Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
0f1e1ad
add more .so files
charliehuang09 Jan 3, 2026
83d77c3
add stuff
charliehuang09 Jan 3, 2026
a416bb6
dik
charliehuang09 Jan 3, 2026
bf476a9
Merge pull request #65 from frc971/refactor-gamepiece
yasen5 Jan 3, 2026
1f332a3
Add clang tidy (#66)
charliehuang09 Jan 4, 2026
3c71cff
Merge branch 'main' into ari/path-plan-test
nanoticity Jan 4, 2026
57861e7
tidy the code with clang-tidy
nanoticity Jan 4, 2026
8ae6bd5
Format document nicely
nanoticity Jan 4, 2026
f71ac00
Charlie add absl (#68)
charliehuang09 Jan 5, 2026
58d657b
fix build
charliehuang09 Jan 5, 2026
5d49a38
Add logging and advantagescope support
nanoticity Jan 5, 2026
84e0d97
add file close
nanoticity Jan 6, 2026
0d4d121
remove redundant condition
nanoticity Jan 6, 2026
7b921da
add better variable names
nanoticity Jan 6, 2026
1f6e120
better path reconstruction
nanoticity Jan 6, 2026
dda91ad
Fix everything finally!
nanoticity Jan 6, 2026
2726049
rename camera constants
charliehuang09 Jan 6, 2026
aa51664
fix selectcamera
charliehuang09 Jan 6, 2026
0fa635f
add camera constants for software bot
charliehuang09 Jan 6, 2026
d35c74f
remove warning as error
charliehuang09 Jan 6, 2026
5af66ac
Add a one block buffer to navgrid
nanoticity Jan 7, 2026
47c23d0
Merge branch 'main' into ari/path-plan-test
nanoticity Jan 7, 2026
536f519
Only usb1
nanoticity Jan 7, 2026
a6dbc62
fix copy_to_bin
charliehuang09 Jan 7, 2026
d345c39
Merge branch 'main' into ari/path-plan-test
nanoticity Jan 8, 2026
67fcba6
Make better tests, should be ready for review
nanoticity Jan 8, 2026
be6a40b
Merge path plan test
nanoticity Jan 8, 2026
360a9e8
fix warning
charliehuang09 Jan 10, 2026
90a1ef8
add vision bot (#70)
charliehuang09 Jan 10, 2026
95c71ba
update software bot to vision bot (#71)
charliehuang09 Jan 11, 2026
c08c10c
use .retreive() for timestmap (#69)
charliehuang09 Jan 11, 2026
660cd03
add new game piece test with no camera needed
thiago-monteiro Jan 11, 2026
65f77d8
Merge pull request #74 from frc971/gamepiecetest
thiago-monteiro2 Jan 12, 2026
73729c5
config turret bot paths
charliehuang09 Jan 14, 2026
f78f0a8
fix select_camera.cc
charliehuang09 Jan 14, 2026
25e31d9
add absl flags when selecting cameras
charliehuang09 Jan 14, 2026
09b67b9
use camerasource for intrinsics calibrate
charliehuang09 Jan 14, 2026
488bb6a
fix colorspace issue on intrinsics_calibrate
charliehuang09 Jan 15, 2026
1a5df0f
clang-tidy
charliehuang09 Jan 15, 2026
8f97bb3
remove unused log
charliehuang09 Jan 15, 2026
0c34273
fix copy to bin
charliehuang09 Jan 15, 2026
e3e0146
add feild layout
charliehuang09 Jan 17, 2026
e9d22e6
use welded apriltag layout
charliehuang09 Jan 17, 2026
51d37df
remove imx cameras
charliehuang09 Jan 17, 2026
7ed7a37
change team number for turret bot to 9972
charliehuang09 Jan 17, 2026
a4c40ab
better intrinsics calibrate
charliehuang09 Jan 18, 2026
52c06d9
vision bot bringup
charliehuang09 Jan 18, 2026
9bf8296
fix intrinsics test
charliehuang09 Jan 18, 2026
39029e6
absl to test
charliehuang09 Jan 18, 2026
dc2e191
Fix camera port and absl cmake
Jan 19, 2026
2a4234b
Add usb extrinsics and one imx intrinsic
Jan 19, 2026
f37ed81
github workflow
charliehuang09 Jan 19, 2026
7900f2e
github workflow
charliehuang09 Jan 19, 2026
32ee246
github workflow
charliehuang09 Jan 19, 2026
f906405
github workflow
charliehuang09 Jan 19, 2026
2947b8e
github workflow
charliehuang09 Jan 19, 2026
40e899e
github workflow
charliehuang09 Jan 19, 2026
e75b113
github workflow
charliehuang09 Jan 19, 2026
ab06868
Add flywheel bot usb intrinsics
Jan 19, 2026
3535181
change names
charliehuang09 Jan 19, 2026
a5f2776
change extrinsics format
charliehuang09 Jan 20, 2026
5d5fdd2
Pathing (#76)
charliehuang09 Jan 22, 2026
5aff1c3
add pch (#77)
charliehuang09 Jan 22, 2026
6c885a2
default build builds with clang-tidy
charliehuang09 Jan 22, 2026
43ab910
remove unesccary stuff in cmake
charliehuang09 Jan 23, 2026
ce6fb3d
remove unnesccary logging
charliehuang09 Jan 23, 2026
214b3b8
add joint solve (#73)
charliehuang09 Jan 25, 2026
7547e52
fix main
charliehuang09 Jan 25, 2026
dd4d32d
make fiddler constants folder (#79)
charliehuang09 Jan 25, 2026
fb21210
fix warning
Jan 27, 2026
2097873
copy constants to docker root
charliehuang09 Jan 28, 2026
8a660e8
try new cameras
charliehuang09 Jan 28, 2026
683c4dc
fix build.sh
charliehuang09 Jan 28, 2026
b6c3b9d
中国 camera on turret bot
charliehuang09 Jan 28, 2026
fa55123
fix clang-tidy build
charliehuang09 Jan 30, 2026
23aefa1
Configure cameras (#81)
yasen5 Jan 30, 2026
a89b36f
Add flywheel bot intrinsics, fix minor bug
yasen5 Jan 31, 2026
9e11279
turret bot
charliehuang09 Feb 1, 2026
5528e41
turret
charliehuang09 Feb 1, 2026
e1e5897
update constants
charliehuang09 Feb 1, 2026
3c4dcc8
add back right camera
charliehuang09 Feb 2, 2026
52b7a87
namespace utils
charliehuang09 Feb 4, 2026
3428996
remove logging
charliehuang09 Feb 4, 2026
3bba0ce
fix bug in square solve
charliehuang09 Feb 4, 2026
f02a52a
Fix auto exposure
yasen5 Feb 5, 2026
2aca5b3
add solver test (#86)
charliehuang09 Feb 6, 2026
0818836
set dummy camera extrinsics
charliehuang09 Feb 6, 2026
847ed03
add rotation to solver_test
charliehuang09 Feb 6, 2026
88a5016
add rotation to solver test
charliehuang09 Feb 6, 2026
6917ac8
Simplify square solve (#87)
charliehuang09 Feb 7, 2026
8b74698
Slight rename I forgot to apply on pr
yasen5 Feb 7, 2026
31a5f2d
delete dead code
charliehuang09 Feb 9, 2026
f48a051
set extrinsics (#89)
charliehuang09 Feb 10, 2026
4e1974e
add gtest
charliehuang09 Feb 10, 2026
7a0d3a7
Add documentation (#91)
charliehuang09 Feb 10, 2026
3601bf1
fix spelling
charliehuang09 Feb 10, 2026
cf6efb4
configure paths for main robot
charliehuang09 Feb 11, 2026
93fd90e
dp
charliehuang09 Feb 11, 2026
c598b6b
remove logs
charliehuang09 Feb 11, 2026
8f26037
dp
charliehuang09 Feb 11, 2026
b4a9619
add dev orin camera (#92)
charliehuang09 Feb 13, 2026
9553a34
refactor square solver utils functions
charliehuang09 Feb 13, 2026
51a5c2d
refactor extrinsics
charliehuang09 Feb 13, 2026
fa240c8
dp
charliehuang09 Feb 13, 2026
bef7eb4
cleaner wait
charliehuang09 Feb 13, 2026
1df387b
swap camera constants
charliehuang09 Feb 13, 2026
ce6b3ff
new camera extrinsics
charliehuang09 Feb 13, 2026
ef0f40b
recalibrate intrinsics
charliehuang09 Feb 13, 2026
f27fdd4
calibrate intrinsics
charliehuang09 Feb 13, 2026
e97104e
dp
charliehuang09 Feb 14, 2026
4710f2f
add unit test folder
charliehuang09 Feb 14, 2026
6ad9fc7
Remove tag layout json
charliehuang09 Feb 14, 2026
e0df5fe
add option to take in vector of vector for solver
charliehuang09 Feb 14, 2026
96e5bb0
move dummy camera to misc constant folder
charliehuang09 Feb 14, 2026
73c358d
remove realsense camera
charliehuang09 Feb 14, 2026
f7e0bfb
delete log
charliehuang09 Feb 14, 2026
df74a41
Revert "add option to take in vector of vector for solver"
charliehuang09 Feb 14, 2026
fc8f523
publish pose3d
charliehuang09 Feb 14, 2026
683eae8
clean up code
charliehuang09 Feb 14, 2026
59f3878
fix square solve (#93)
charliehuang09 Feb 14, 2026
8430c15
dp
charliehuang09 Feb 14, 2026
405ee71
rename camera names
charliehuang09 Feb 14, 2026
f8bfea4
dp
charliehuang09 Feb 14, 2026
960fb15
delete docker files
charliehuang09 Feb 14, 2026
566a5a6
remove bright camera
charliehuang09 Feb 15, 2026
cab62ef
dp
charliehuang09 Feb 15, 2026
24da2f8
Add multi tag solve (#95)
charliehuang09 Feb 15, 2026
f3a961e
dp
charliehuang09 Feb 15, 2026
1f88007
Multi tag solve unit test (#98)
charliehuang09 Feb 16, 2026
7a51a8b
Kinda random commit but made progress
nanoticity Jan 29, 2026
cd09a3f
Implement controller and fix everything with new algorithm.
nanoticity Jan 31, 2026
ff3470c
Fix cmake stuff, added build binary + uncommented code
nanoticity Jan 31, 2026
2e3aa87
Fix some bugs and format
nanoticity Feb 3, 2026
6a54e8e
Fix clang-tidy errors
nanoticity Feb 3, 2026
13aa6ba
fix for trailing return type
nanoticity Feb 3, 2026
d20519b
Make the timestamping system cleaner, integrate with java code
nanoticity Feb 12, 2026
da6d04f
clang-tidy
nanoticity Feb 12, 2026
ad4bfc3
Integrate into main so that pathing runs whever main gets ran
nanoticity Feb 17, 2026
9380e1a
Merge conflicts
nanoticity Feb 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Diagnostics:
ClangTidy:
Add: [modernize-*, performance-*]
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: self-hosted

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: build
run: ./scripts/clang_tidy_build.sh && ./scripts/run_tests.sh
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "third_party/json"]
path = third_party/json
url = https://github.com/nlohmann/json.git
[submodule "third_party/abseil-cpp"]
path = third_party/abseil-cpp
url = https://github.com/abseil/abseil-cpp.git
16 changes: 11 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,27 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

option(ENABLE_CLANG_TIDY "Enable clang-tidy for static analysis" ON)

include_directories(/usr/local/cuda/include)
link_directories(/usr/local/cuda/lib64)

include_directories(/usr/local/cuda-12.6/include)
link_directories(/usr/local/cuda-12.6/compat)

link_directories(/usr/lib/aarch64-linux-gnu/nvidia)

find_package(wpilib REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(realsense2 REQUIRED)
find_package(vpi REQUIRED)

add_subdirectory(third_party/json)
add_subdirectory(third_party/971apriltag)
add_subdirectory(third_party/abseil-cpp)

include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
)
FetchContent_MakeAvailable(googletest)

add_compile_options(-Wno-psabi)
add_subdirectory(src)
Binary file modified calibration_board.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added constants/dont_worry_about_it.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions constants/imx296_camera1_extrinsics.json

This file was deleted.

11 changes: 0 additions & 11 deletions constants/imx296_camera1_intrinsics.json

This file was deleted.

11 changes: 0 additions & 11 deletions constants/imx296_camera2_intrinsics.json

This file was deleted.

8 changes: 8 additions & 0 deletions constants/main_bot/front_extrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translation_x": 0.2974575,
"translation_y": -0.0609595,
"translation_z": 0.325284,
"rotation_x": 0.0,
"rotation_y": 0.0,
"rotation_z": 0.0
}
11 changes: 11 additions & 0 deletions constants/main_bot/front_intrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cx": 932.1681813421546,
"cy": 451.4312769210836,
"fx": 596.9032778242522,
"fy": 596.0093667435602,
"k1": 0.012256864304443962,
"k2": -0.030684524680962985,
"k3": 0.0052060693388187125,
"p1": 0.0005970467587180883,
"p2": -0.00048007187075744856
}
8 changes: 8 additions & 0 deletions constants/main_bot/left_extrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translation_x": 0.276,
"translation_y": 0.3729405,
"translation_z": 0.333312,
"rotation_x": 0.0,
"rotation_y": 0.0,
"rotation_z": 1.57079632679
}
12 changes: 12 additions & 0 deletions constants/main_bot/left_intrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cx": 654.1347738292703,
"cy": 344.94298934911706,
"fx": 393.99373922524524,
"fy": 393.9995160742635,
"k1": 0.003587214416772569,
"k2": -0.02591737917812022,
"k3": 0.004322781817780432,
"p1": 0.0005573558103478626,
"p2": 0.00015518086763949464
}

8 changes: 8 additions & 0 deletions constants/main_bot/right_extrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translation_x": 0.276,
"translation_y": -0.3729405,
"translation_z": 0.333312,
"rotation_x": 0.0,
"rotation_y": 0.0,
"rotation_z": -1.57079632679
}
12 changes: 12 additions & 0 deletions constants/main_bot/right_intrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cx": 656.9761693758428,
"cy": 364.3738326236059,
"fx": 571.9375122699471,
"fy": 571.9226840643123,
"k1": -0.00894144282702949,
"k2": -0.014004357096758329,
"k3": 0.002861026434514461,
"p1": -5.536589513658126e-05,
"p2": -0.0010707320046471017
}

8 changes: 8 additions & 0 deletions constants/misc/dev_orin_extrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translation_x": 0.0,
"translation_y": 0.0,
"translation_z": 0.0,
"rotation_x": 0.0,
"rotation_y": 0.0,
"rotation_z": 0.0
}
11 changes: 11 additions & 0 deletions constants/misc/dev_orin_intrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cx": 669.6571418509437,
"cy": 386.5080452595225,
"fx": 898.443795092944,
"fy": 898.4888081021497,
"k1": 0.04530849306173127,
"k2": -0.08457792104236955,
"k3": 0.028964050967856383,
"p1": 0.0015889107801309768,
"p2": 7.981564797345172e-05
}
8 changes: 8 additions & 0 deletions constants/misc/dummy_camera_extrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translation_x": 0.0,
"translation_y": 0.0,
"translation_z": 0.0,
"rotation_x": 0.0,
"rotation_y": 0.0,
"rotation_z": 0.0
}
12 changes: 12 additions & 0 deletions constants/misc/dummy_camera_intrinsics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cx": 10.0,
"cy": 10.0,
"fx": 1.0,
"fy": 1.0,
"k1": 0.0,
"k2": 0.0,
"k3": 0.0,
"p1": 0.0,
"p2": 0.0
}

Loading