Skip to content

Commit cd9830b

Browse files
authored
Fix missing joint_position_action in path (#371)
* Fix missing joint_position_action in path * Fix test
1 parent 076ca15 commit cd9830b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# start xvfb in the background
3333
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
3434
cur=`pwd`
35-
wget http://www.coppeliarobotics.com/files/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz
35+
wget https://downloads.coppeliarobotics.com/V4_1_0/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz
3636
tar -xf CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz
3737
export COPPELIASIM_ROOT="$cur/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04"
3838
echo $COPPELIASIM_ROOT

pyrep/robots/configuration_paths/arm_configuration_path.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ def _step_motion(self) -> int:
167167
if state >= 0:
168168
pos = posVelAccel[0]
169169
for i in range(len(lengths) - 1):
170-
if lengths[i] <= pos <= lengths[i + 1]:
170+
# Always execute the last point as pos might overshoot
171+
if lengths[i] <= pos <= lengths[i + 1] or i == len(lengths) - 2:
171172
t = (pos - lengths[i]) / (lengths[i + 1] - lengths[i])
172173
# For each joint
173174
offset = len(self._arm.joints) * i

0 commit comments

Comments
 (0)