leggedrobotics / ocs2

Optimal Control for Switched Systems
https://leggedrobotics.github.io/ocs2
BSD 3-Clause "New" or "Revised" License
836 stars 221 forks source link

How to set up mpcnet to mobile manipulator? #100

Open Knight-xiao opened 4 months ago

Knight-xiao commented 4 months ago

I tried to set up mpcnet to mobile manipulator(kinova j2n7). And I followed steps of https://leggedrobotics.github.io/ocs2/mpcnet.html. Referring to the mpcnet programs of legged_robot and ballbot, I finished the main documents: MpcnetDefinition, MpcnetInterface, yaml, mpcnet.py and train.py. The main changes I made are shown in the following pictures, except for changing the function name from legged_robot to mobile_manipulator. However, when I run the train.py, the incurred_hamiltonian is too high that the result of generated policy is not good: mobile manipulator is always shaking and can not move to the position of the object. So could anyone give me some suggestions, thank you! 2024-04-16 16-19-49 的屏幕截图 2024-04-16 16-20-29 的屏幕截图