We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SplineFit
1 parent 142d6ac commit 3d21b06Copy full SHA for 3d21b06
spatialmath/spline.py
@@ -192,14 +192,14 @@ def stochastic_downsample_interpolation(
192
)
193
194
sample_time = self.time_data[candidate_removal_index]
195
- if check_type is "local":
+ if check_type == "local":
196
angular_error = SO3(self.pose_data[candidate_removal_index]).angdist(
197
SO3(self.spline.spline_so3(sample_time).as_matrix())
198
199
euclidean_error = np.linalg.norm(
200
self.pose_data[candidate_removal_index].t - self.spline.spline_xyz(sample_time)
201
202
- elif check_type is "global":
+ elif check_type == "global":
203
angular_error = self.max_angular_error()
204
euclidean_error = self.max_euclidean_error()
205
else:
0 commit comments