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
Running this on my system produces the following error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/view3d.py", line 283, in paintGL
item.draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/visualitem.py", line 187, in draw
self.auto_draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/visualitem.py", line 223, in auto_draw
part.opengl_draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/forces/bodywrench.py", line 104, in opengl_draw
glVertex3f(float(self.wrench[0]), float(self.wrench[1]), float(self.wrench[2]))
TypeError: float() argument must be a string or a number
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/view3d.py", line 283, in paintGL
item.draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/visualitem.py", line 187, in draw
self.auto_draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/visualitem.py", line 210, in auto_draw
glEnd()
File "/usr/lib/python2.7/dist-packages/OpenGL/latebind.py", line 61, in __call__
return self.wrapperFunction( self.baseFunction, *args, **named )
File "/usr/lib/python2.7/dist-packages/OpenGL/GL/exceptional.py", line 57, in glEnd
return baseFunction( )
File "/usr/lib/python2.7/dist-packages/OpenGL/error.py", line 208, in glCheckError
baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
err = 1282,
description = 'invalid operation',
baseOperation = glEnd,
cArguments = ()
)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/view3d.py", line 283, in paintGL
item.draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/visualitem.py", line 187, in draw
self.auto_draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/visual/visualitem.py", line 223, in auto_draw
part.opengl_draw()
File "/usr/local/lib/python2.7/dist-packages/trep-1.0.2-py2.7-linux-x86_64.egg/trep/forces/bodywrench.py", line 104, in opengl_draw
glVertex3f(float(self.wrench[0]), float(self.wrench[1]), float(self.wrench[2]))
TypeError: float() argument must be a string or a number
The text was updated successfully, but these errors were encountered:
Small issues existed in both trep/forces/spatialwrench.py and
trep/forces/bodywrench.py when accessing the current values of the wrench. These
issues did not exist in trep/forces/hybridwrench.py, but I used the opportunity
to clean up some trailing whitespace.
While debugging this, I also discovered another small issue. When passing a list
of inputs to the VisualItem constructor, the user was previously expected to
pass a list that was one time index shorter than that used for the time and
configuration lists. This makes some sense because for a given time window
from (k) to (k+1), the solved VI will know (q(k), p(k)) and (q(k+1), p(k+1)),
and it will also know u(k) but not u(k+1). However, this was causing issues in
setTime() when the interpolation function for u was then asked to interpolate
outside of the range of times originally passed in. We could fix this with some
simple try-except blocks, or always handle the u interpolation slightly
differently than the q interpolation. Instead, I chose to require an equal
length u array. The user can always zero-pad. Would be better to more robustly
handle this in the future, but for now, this is fine.
Below is MWE:
Running this on my system produces the following error:
The text was updated successfully, but these errors were encountered: