How to compute inverse kinematics online
Posted: Wed Dec 08, 2021 11:22 am
I deliberately chose "online" in the title, as I do not need real time calculations and rtosim library. Instead, I would like to use track() method of InverseKinematicsSolver to track an orientation stream. The data is streamed through serial port. My project is similar to OpenSenseRT. However, I am using visual studio c++ on windows. Therefore, I am not using raspberry pi or python. In line 150 of file "ik_streaming.py" in OpenSenseRT project, there is a piece of code which updates the solver with the new IMU readings:
I am looking for a similar method to update the orientations in c++. However, as far as I understand, you get to feed all the orientations (OrientationsReference) only once you instantiate the inverse kinematic solver. In other words, the solver works offline. Please correct me if I am wrong. Else, is there a way to add new orientations data to the solver, on the go?
Code: Select all
ikSolver.addOrientationValuesToTrack(time_s+dt, rowVec)