Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiSakai committed May 4, 2024
2 parents 8f84f0f + e14134d commit c9ae446
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion ArmNavigation/n_joint_arm_3d/NLinkArm3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def inverse_kinematics(self, ref_ee_pose, plot=False):

if plot:
self.fig = plt.figure()
self.ax = Axes3D(self.fig)
self.ax = Axes3D(self.fig, auto_add_to_figure=False)
self.fig.add_axes(self.ax)

x_list = []
y_list = []
Expand Down
4 changes: 2 additions & 2 deletions Localization/particle_filter/particle_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def calc_covariance(x_est, px, pw):
calculate covariance matrix
see ipynb doc
"""
cov = np.zeros((3, 3))
cov = np.zeros((4, 4))
n_particle = px.shape[1]
for i in range(n_particle):
dx = (px[:, i:i + 1] - x_est)[0:3]
dx = (px[:, i:i + 1] - x_est)
cov += pw[0, i] * dx @ dx.T
cov *= 1.0 / (1.0 - pw @ pw.T)

Expand Down
8 changes: 4 additions & 4 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ numpy == 1.26.4
scipy == 1.13.0
matplotlib == 3.8.4
cvxpy == 1.4.3
pytest == 8.1.1 # For unit test
pytest-xdist == 3.5.0 # For unit test
mypy == 1.9.0 # For unit test
ruff == 0.4.1 # For unit test
pytest == 8.2.0 # For unit test
pytest-xdist == 3.6.1 # For unit test
mypy == 1.10.0 # For unit test
ruff == 0.4.2 # For unit test

0 comments on commit c9ae446

Please sign in to comment.