Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 8, 2025
1 parent 8ff3b2e commit ac1a47c
Show file tree
Hide file tree
Showing 42 changed files with 1,425 additions and 1,074 deletions.
1 change: 0 additions & 1 deletion examples/display_robot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import example_robot_data as robex

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer

ROBOT_NAME = "solo12"
Expand Down
1 change: 0 additions & 1 deletion next/appendix/solution_slerp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np
from numpy.linalg import norm
from pinocchio import SE3, AngleAxis, Quaternion

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer

viz = MeshcatVisualizer()
Expand Down
1 change: 0 additions & 1 deletion next/tp1/configuration_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import numpy as np
from numpy.linalg import norm
from scipy.optimize import fmin_bfgs, fmin_slsqp

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer
from supaero2024.meshcat_viewer_wrapper.transformations import planar, translation2d

Expand Down
1 change: 0 additions & 1 deletion next/tp1/configuration_reduced.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import numpy as np
from scipy.optimize import fmin_bfgs

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer
from supaero2024.meshcat_viewer_wrapper.transformations import planar, translation2d

Expand Down
3 changes: 1 addition & 2 deletions next/tp2/floating.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@

import example_robot_data as robex
import numpy as np
import pinocchio as pin
from numpy.linalg import norm
from scipy.optimize import fmin_bfgs

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer

# --- Load robot model
Expand Down Expand Up @@ -88,6 +86,7 @@ def callback(q):
viz.display(q)
time.sleep(1e-2)


qopt = fmin_bfgs(cost, robot.q0, callback=callback)
# %end_jupyter_snippet

Expand Down
1 change: 0 additions & 1 deletion next/tp2/invgeom3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import numpy as np
from numpy.linalg import norm
from scipy.optimize import fmin_bfgs

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer

# --- Load robot model
Expand Down
3 changes: 1 addition & 2 deletions next/tp2/invgeom6d.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Stand-alone inverse geom in 6D (controlling the placement, ie translation and
Stand-alone inverse geom in 6D (controlling the placement, ie translation and
orientation of the end effector). Given a reference placement <Mtarget> ,
it computes the configuration of the UR5 so that the end-effector placement (6D)
matches the target. This is done using BFGS solver. While iterating to compute
Expand All @@ -16,7 +16,6 @@
import pinocchio as pin
from numpy.linalg import norm
from scipy.optimize import fmin_bfgs

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer

# --- Load robot model
Expand Down
1 change: 0 additions & 1 deletion next/tp2/simple_pick_and_place.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import example_robot_data as robex
import numpy as np
import pinocchio as pin

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer, colors

# %jupyter_snippet 1
Expand Down
3 changes: 1 addition & 2 deletions next/tp3/control_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
import numpy as np
import pinocchio as pin
from numpy.linalg import norm, pinv
from tp3.tiago_loader import loadTiago

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer
from tp3.tiago_loader import loadTiago

plt.ion()

Expand Down
3 changes: 1 addition & 2 deletions next/tp3/inverse_kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
# %jupyter_snippet import
import pinocchio as pin
from numpy.linalg import norm, pinv
from tp3.tiago_loader import loadTiago

from supaero2024.meshcat_viewer_wrapper import MeshcatVisualizer
from tp3.tiago_loader import loadTiago

# %end_jupyter_snippet

Expand Down
2 changes: 1 addition & 1 deletion next/tp4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ These classes are not available in 2x and are reimplemented in Python following
*getConstraintsJacobian* are reimplemented.

### Z axis
pin.ZAxis is not available in 2x and is reimplemented in Python.
pin.ZAxis is not available in 2x and is reimplemented in Python.
Loading

0 comments on commit ac1a47c

Please sign in to comment.