You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem where a small timestep size causes a segfault.
The code below is an example which is the same code as in Issue #23, but if with a timestep size of 1e-4 instead of 1e-3, leading to a segfault.
If i choose a stepsize of 1e-5 i get a memory error, does it mean that there is an upper limit on the number of waypoints or a lower limit on the timestep size?
Here is the code to reproduce the error (note that it works with discrtimestep = 1e-3)
from TOPP import Utilities
import TOPP
import numpy as np
from TOPP import TOPPpy
from pylab import *
ion()
Ndim = 4
discrtimestep= 1e-4
a = np.loadtxt('topp/a')
b = np.loadtxt('topp/b')
c = np.loadtxt('topp/c')
with open("topp/traj0", "r") as fh:
trajectorystring = "%s" % fh.read()
vmax = 1e5*np.ones(Ndim) ## no velocity constraints
topp_inst = TOPP.QuadraticConstraints(trajectorystring, discrtimestep, vmax, list(a), list(b), list(c))
x = topp_inst.solver
ret = x.RunVIP(0,0)
x.WriteProfilesList()
x.WriteSwitchPointsList()
profileslist = TOPPpy.ProfilesFromString(x.resprofilesliststring)
switchpointslist = TOPPpy.SwitchPointsFromString(x.switchpointsliststring)
TOPPpy.PlotProfiles(profileslist,switchpointslist,4)
raw_input("Press enter")
I ran into a problem where a small timestep size causes a segfault.
The code below is an example which is the same code as in Issue #23, but if with a timestep size of 1e-4 instead of 1e-3, leading to a segfault.
If i choose a stepsize of 1e-5 i get a memory error, does it mean that there is an upper limit on the number of waypoints or a lower limit on the timestep size?
Here is the code to reproduce the error (note that it works with discrtimestep = 1e-3)
and the data:
The text was updated successfully, but these errors were encountered: