Skip to content

Commit 6a43119

Browse files
committed
Merge branch 'develop' into feature/batch_factor
2 parents db9b656 + 6f20bb5 commit 6a43119

File tree

6 files changed

+39
-32
lines changed

6 files changed

+39
-32
lines changed

.github/workflows/build-cibw.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,37 +76,37 @@ jobs:
7676
manylinux_image: manylinux2014
7777

7878
# MacOS x86_64
79-
- os: macos-13
79+
- os: macos-15-intel
8080
python_version: "3.10"
8181
cibw_python_version: 310
8282
platform_id: macosx_x86_64
83-
- os: macos-13
83+
- os: macos-15-intel
8484
python_version: "3.11"
8585
cibw_python_version: 311
8686
platform_id: macosx_x86_64
87-
- os: macos-13
87+
- os: macos-15-intel
8888
python_version: "3.12"
8989
cibw_python_version: 312
9090
platform_id: macosx_x86_64
91-
- os: macos-13
91+
- os: macos-15-intel
9292
python_version: "3.13"
9393
cibw_python_version: 313
9494
platform_id: macosx_x86_64
9595

9696
# MacOS arm64
97-
- os: macos-14
97+
- os: macos-latest
9898
python_version: "3.10"
9999
cibw_python_version: 310
100100
platform_id: macosx_arm64
101-
- os: macos-14
101+
- os: macos-latest
102102
python_version: "3.11"
103103
cibw_python_version: 311
104104
platform_id: macosx_arm64
105-
- os: macos-14
105+
- os: macos-latest
106106
python_version: "3.12"
107107
cibw_python_version: 312
108108
platform_id: macosx_arm64
109-
- os: macos-14
109+
- os: macos-latest
110110
python_version: "3.13"
111111
cibw_python_version: 313
112112
platform_id: macosx_arm64

.github/workflows/build-macos.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,25 @@ jobs:
3030
# Github Actions requires a single row to be added to the build matrix.
3131
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
3232
name: [
33-
macos-13-xcode-14.2,
3433
macos-14-xcode-15.4,
34+
macos-15-xcode-16,
3535
macos-14-xcode-15.4-boost,
3636
macos-14-xcode-15.4-geographiclib,
3737
]
3838

3939
build_type: [Debug, Release]
4040
build_unstable: [ON]
4141
include:
42-
- name: macos-13-xcode-14.2
43-
os: macos-13
44-
compiler: xcode
45-
version: "14.2"
46-
4742
- name: macos-14-xcode-15.4
4843
os: macos-14
4944
compiler: xcode
5045
version: "15.4"
5146

47+
- name: macos-15-xcode-16
48+
os: macos-15
49+
compiler: xcode
50+
version: "16"
51+
5252
- name: macos-14-xcode-15.4-boost
5353
os: macos-14
5454
compiler: xcode

.github/workflows/build-python.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
[
7070
ubuntu-22.04-gcc-9,
7171
ubuntu-22.04-clang-11,
72-
macos-13-xcode-14.2,
7372
macos-14-xcode-15.4,
73+
macos-15-xcode-16,
7474
windows-2022-msbuild,
7575
]
7676

@@ -87,16 +87,16 @@ jobs:
8787
compiler: clang
8888
version: "11"
8989

90-
- name: macos-13-xcode-14.2
91-
os: macos-13
92-
compiler: xcode
93-
version: "14.2"
94-
9590
- name: macos-14-xcode-15.4
9691
os: macos-14
9792
compiler: xcode
9893
version: "15.4"
9994

95+
- name: macos-15-xcode-16
96+
os: macos-15
97+
compiler: xcode
98+
version: "16"
99+
100100
- name: windows-2022-msbuild
101101
os: windows-2022
102102
platform: 64

.github/workflows/prod-cibw.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,37 +61,37 @@ jobs:
6161
manylinux_image: manylinux2014
6262

6363
# MacOS x86_64
64-
- os: macos-13
64+
- os: macos-15-intel
6565
python_version: "3.10"
6666
cibw_python_version: 310
6767
platform_id: macosx_x86_64
68-
- os: macos-13
68+
- os: macos-15-intel
6969
python_version: "3.11"
7070
cibw_python_version: 311
7171
platform_id: macosx_x86_64
72-
- os: macos-13
72+
- os: macos-15-intel
7373
python_version: "3.12"
7474
cibw_python_version: 312
7575
platform_id: macosx_x86_64
76-
- os: macos-13
76+
- os: macos-15-intel
7777
python_version: "3.13"
7878
cibw_python_version: 313
7979
platform_id: macosx_x86_64
8080

8181
# MacOS arm64
82-
- os: macos-14
82+
- os: macos-latest
8383
python_version: "3.10"
8484
cibw_python_version: 310
8585
platform_id: macosx_arm64
86-
- os: macos-14
86+
- os: macos-latest
8787
python_version: "3.11"
8888
cibw_python_version: 311
8989
platform_id: macosx_arm64
90-
- os: macos-14
90+
- os: macos-latest
9191
python_version: "3.12"
9292
cibw_python_version: 312
9393
platform_id: macosx_arm64
94-
- os: macos-14
94+
- os: macos-latest
9595
python_version: "3.13"
9696
cibw_python_version: 313
9797
platform_id: macosx_arm64

gtsam/geometry/SL4.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ bool SL4::equals(const SL4& sl4, double tol) const {
8989
}
9090
/* ************************************************************************* */
9191
SL4 SL4::ChartAtOrigin::Retract(const Vector15& v, ChartJacobian H) {
92-
assert(v.size() == 15);
9392
SL4 retracted(I_4x4 + Hat(v));
9493
if (H) throw std::runtime_error("SL4::Retract: Jacobian not implemented.");
9594
return retracted;
@@ -104,7 +103,11 @@ Vector15 SL4::ChartAtOrigin::Local(const SL4& sl4, ChartJacobian H) {
104103

105104
/* ************************************************************************* */
106105
SL4 SL4::Expmap(const Vector& xi, SL4Jacobian H) {
107-
assert(xi.size() == 15);
106+
if (xi.size() != 15) {
107+
throw std::runtime_error(
108+
"SL4::Expmap: xi must be a vector of size 15. Got size " +
109+
std::to_string(xi.size()));
110+
}
108111
const auto& A = Hat(xi);
109112

110113
if (H) throw std::runtime_error("SL4::Expmap: Jacobian not implemented.");
@@ -139,7 +142,11 @@ Matrix15x15 SL4::AdjointMap() const {
139142

140143
/* ************************************************************************* */
141144
Matrix44 SL4::Hat(const Vector& xi) {
142-
assert(xi.size() == 15);
145+
if (xi.size() != 15) {
146+
throw std::runtime_error(
147+
"SL4::Hat: xi must be a vector of size 15. Got size " +
148+
std::to_string(xi.size()));
149+
}
143150
Matrix44 A;
144151
const double d11 = xi(12);
145152
const double d22 = -xi(12) + xi(13);

gtsam/slam/TriangulationFactor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TriangulationFactor: public NoiseModelFactorN<Point3> {
6464

6565
/// Default constructor
6666
TriangulationFactor() :
67-
throwCheirality_(false), verboseCheirality_(false) {
67+
throwCheirality_(false), verboseCheirality_(false), measured_() {
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)