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.
1 parent 5d391c1 commit aa8cd6eCopy full SHA for aa8cd6e
src/prpy/util.py
@@ -936,6 +936,10 @@ def CheckJointLimits(robot, q):
936
q_limit_min, q_limit_max = robot.GetActiveDOFLimits()
937
active_dof_indices = robot.GetActiveDOFIndices()
938
939
+ if len(q) != len(active_dof_indices):
940
+ raise ValueError('The number of joints in the configuration q '
941
+ 'is not equal to the number of active DOF.')
942
+
943
lower_position_violations = (q < q_limit_min)
944
if lower_position_violations.any():
945
index = lower_position_violations.nonzero()[0][0]
0 commit comments