File tree 2 files changed +3
-2
lines changed
pyrep/robots/configuration_paths
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 32
32
# start xvfb in the background
33
33
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
34
34
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
36
36
tar -xf CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz
37
37
export COPPELIASIM_ROOT="$cur/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04"
38
38
echo $COPPELIASIM_ROOT
Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ def _step_motion(self) -> int:
167
167
if state >= 0 :
168
168
pos = posVelAccel [0 ]
169
169
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 :
171
172
t = (pos - lengths [i ]) / (lengths [i + 1 ] - lengths [i ])
172
173
# For each joint
173
174
offset = len (self ._arm .joints ) * i
You can’t perform that action at this time.
0 commit comments