Skip to content

Commit

Permalink
Include WPIcal GPL license
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz committed Feb 2, 2025
1 parent 18321e5 commit bbf77bd
Show file tree
Hide file tree
Showing 18 changed files with 694 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ When you first submit changes, GitHub Actions will attempt to run `./gradlew che

## Licensing

By contributing to WPILib, you agree that your code will be distributed with WPILib, and licensed under the license for the WPILib project. You should not contribute code that you do not have permission to relicense in this manner. This includes code that is licensed under the GPL that you do not have permission to relicense, as WPILib is not released under a copyleft license. Our license is the 3-clause BSD license, which you can find [here](LICENSE.md).
By contributing to WPILib, you agree that your code will be distributed with WPILib, and licensed under the license for the WPILib project. You should not contribute code that you do not have permission to relicense in this manner. This includes code that is licensed under the GPL that you do not have permission to relicense, as WPILib is not released under a copyleft license. Our license is the 3-clause BSD license, which you can find [here](LICENSE.md). WPIcal is seperately licesnced, which you can find [here](wpical/WPIcal-License.md).
3 changes: 3 additions & 0 deletions wpical/.styleguide-license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPIcal license file in the wpical directory of this project.
1 change: 1 addition & 0 deletions wpical/WPIcal-License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WPIcal is licensed with the [GPL v3](https://github.com/wpilibsuite/allwpilib/blob/main/wpical/copying.md) because of the dependency on Ceres and SuiteSparse which are GPL. Contributors agree that their contribution may be relicensed to only the [WPILib BSD license](https://github.com/wpilibsuite/allwpilib/blob/main/LICENSE.md) should the dependency on GPL code be removed in the future.
1 change: 1 addition & 0 deletions wpical/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ext {
sharedCvConfigs = [
wpicalTest: []]
staticCvConfigs = []
licenseFile = files("$rootDir/LICENSE.md", "$rootDir/ThirdPartyNotices.txt", "WPIcal-License.md", "copying.md")
}

apply from: "${rootDir}/shared/resources.gradle"
Expand Down
675 changes: 675 additions & 0 deletions wpical/copying.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wpical/src/main/native/cpp/WPIcal.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include <cameracalibration.h>
#include <fieldcalibration.h>
Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/cpp/cameracalibration.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include "cameracalibration.h"

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/cpp/fieldcalibration.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include "fieldcalibration.h"

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/cpp/fmap.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include "fmap.h"

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/cpp/tagpose.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include <tagpose.h>

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/include/cameracalibration.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/include/fieldcalibration.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/include/fieldmap.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/include/fmap.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/main/native/include/tagpose.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/test/native/cpp/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include <gtest/gtest.h>

Expand Down
2 changes: 1 addition & 1 deletion wpical/src/test/native/cpp/test_calibrate.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include <cameracalibration.h>
#include <fieldcalibration.h>
Expand Down
2 changes: 1 addition & 1 deletion wpical/src/test/native/cpp/test_result_is_exact.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
// the WPIcal license file in the wpical directory of this project.

#include <chrono>
#include <cstdio>
Expand Down

0 comments on commit bbf77bd

Please sign in to comment.