Skip to content

Does not work with current OpenSim #8

@RTnhN

Description

@RTnhN

If you want to try to replicate this without the custom OpenSenseRT RPI image, it will not work. The ikSolver.addOrientationValuesToTrack method was removed in favor of the BufferedOrienationReference.putValues method. Until this PR, there were some problems for the API, but those should be fixed now. You should be able to run it with the following changes to the ik_streaming.py file:

# Was line 97
oRefs = osim.OrientationsReference(orientationsData)

# Is 
oRefs = osim.BufferedOrientationsReference()
rowVecView = orientationsData.getNearestRow(0)
rowVec = osim.RowVectorRotation(rowVecView)     
oRefs.putValues(0, rowVec)

# Was line 97 (actually line 154)
ikSolver.addOrientationValuesToTrack(time_s+dt, rowVec)

# Is
oRefs.putValues(time_s+dt, rowVec)

I can make this into a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions