Closed cielavenir closed 1 year ago
@kanbouchou what do you think?
@kanbouchou what do you think?
I'm not sure what the use of this api is. @cielavenir how would you use this -1 syntex? why not SetDOFValues([1.0, 1.0, 1.0, 1.0, 1.0, 2.0], [0, 1, 2, 3, 4, 7])
?
@kanbouchou I wrote the complete description in mujinsimulator 1616, which I cannot post here.
dofvalues=array([1.0, 1.0, 1.0, 1.0, 1.0, 0, 0, 2.0])
doforder=array([0, 1, 2, 3, 4, -1, -1, 7])
SetDOFValues(dofvalues[doforder>=0], doforder[doforder>=0])
Pushed SetDOFValues(dofvalues[doforder>=0], doforder[doforder>=0])
way to mujinsimulator, this one can be closed.
So that we can call
SetDOFValues([1.0, 1.0, 1.0, 1.0, 0, 0, 2.0], [0, 1, 2, 3, 4, -1, -1, 7])
/cc @ntohge