Skip to content

Commit 2cac6b6

Browse files
committed
Fix assembly of actuation matrix for multi-segment pneumatically actuated planar pcs robots
1 parent f360332 commit 2cac6b6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name = "jsrm" # Required
1717
#
1818
# For a discussion on single-sourcing the version, see
1919
# https://packaging.python.org/guides/single-sourcing-package-version/
20-
version = "0.0.16" # Required
20+
version = "0.0.17" # Required
2121

2222
# This is a one-line description or tagline of what your project does. This
2323
# corresponds to the "Summary" metadata field:

src/jsrm/systems/pneumatically_actuated_planar_pcs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ def compute_actuation_matrix_for_segment(
137137
chi_pe=chi_sms[:-1], chi_de=chi_sms[1:],
138138
J_pe=J_sms[:-1], J_de=J_sms[1:],
139139
)
140-
# we need to sum the contributions of the actuation of each segment
141-
A = jnp.sum(A_sms, axis=0)
140+
A = jnp.concatenate(A_sms, axis=-1)
142141

143142
# apply the actuation_basis
144143
A = A @ actuation_basis

0 commit comments

Comments
 (0)