[Bug]: manipulability reverses start and end when selecting a robot subchain
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Tìm phương thức manipulability của robot wrapper và kiểm tra cách nó chuyển start và end đến self.ets; issue xác định các đối số bị đảo ngược. Thêm các kiểm tra tập trung cho end mặc định được chỉ định tường minh, chỉ end, chỉ start và các chuỗi con có hai đầu mút, dùng các ví dụ Panda và giá trị mong đợi trong báo cáo. Hoàn thành khi kết quả của chuỗi được chọn khớp với jacob0 và lời gọi mặc định tường minh khớp với lời gọi ngầm định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
RTB version
1.5.0, source main cee0023535988e4ae9490c81d639a46f2311b8fd; spatialmath-python 1.1.19; NumPy 2.5.5; native _fknm_c available
Python version
3.12.14
Operating system
Linux
Expected behavior
Selecting start and end should use the same kinematic chain as jacob0 with the same arguments. Supplying the default end explicitly should also agree with leaving it implicit. For the configuration below, the inverse-condition measure for panda_hand should be approximately 0.09476812042044401. For the subchain from panda_link2 to panda_link6, the minimum singular value should be approximately 0.175997031437505.
Actual behavior
Explicit end="panda_hand" raises ValueError: cond is not defined on empty arrays, whereas the default-end call and the measure computed from the selected Jacobian agree. Selecting panda_link2 to panda_link6 returns approximately 0.27532097160945784 instead of 0.175997031437505.
The robot wrapper builds its sequence with self.ets(end, start), but the sequence API takes start first and end second. This chooses a different chain (or a joint-free chain for an explicitly selected default end). The default call with both arguments omitted is unaffected. This was reproduced with the compiled backend on the source revision above. A focused fix would correct argument forwarding and add controls for explicit defaults, end-only, start-only, and two-ended subchains, without changing the manipulability formulas or public API.
Minimal reproducible example
import numpy as np
import roboticstoolbox as rtb
panda = rtb.models.Panda()
q = np.array([0.3, -0.5, 0.2, -1.8, -0.4, 1.4, 0.6])
selection = dict(start="panda_link2", end="panda_link6")
J = panda.jacob0(q, **selection)
print(panda.manipulability(J=J, method="minsingular"))
print(panda.manipulability(q, method="minsingular", **selection))
# Expected both: 0.175997031437505
# Actual second: 0.27532097160945784
print(panda.manipulability(q, method="invcondition"))
# 0.09476812042044401
print(panda.manipulability(q, end="panda_hand", method="invcondition"))
# ValueError: cond is not defined on empty arrays
- Ngôn ngữ chính
- C++
- Star
- 3.6k
- Fork
- 652
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 92
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của petercorke/robotics-toolbox-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
petercorke/robotics-toolbox-python#709 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
JupyterLite: unpin the Pyodide kernel (Safari 27 has JSPI), add the unsuitable-browser message, adopt spatialmath-python 1.1.19Có thể đã có người làm @petercorke đã nhận hôm nay. Đang mở
petercorke/robotics-toolbox-python#941 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Integer control callbacks lose fractional vehicle limits and stop motionCó thể đã có người làm @Elon-Jiang đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 20/100
petercorke/robotics-toolbox-python#936 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Isaac Sim backendĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
petercorke/robotics-toolbox-python#903 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Backend registry: single name → constructor dispatchCó thể đã có người làm @petercorke đã nhận 22 ngày trước. Đang mởenhancement
petercorke/robotics-toolbox-python#902 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của petercorke/robotics-toolbox-python
Issue tương tự
-
Needs: Author Feedback Needs: Repro
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
react/react-native#60059 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:build bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
NatronGitHub/openfx-arena#71 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream-blocked
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ROCm/FastFlowLM#1057 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NatronGitHub/openfx-gmic#45 ·
Maintainer thường phản hồi trong vòng 1 ngày