hungpham2511 / toppra

robotic motion planning library
https://hungpham2511.github.io/toppra/index.html
MIT License
625 stars 170 forks source link

How to replaced the inv_dyn function provided by openRave with our own #92

Closed meihuiZhang closed 4 years ago

meihuiZhang commented 4 years ago

__When I impose the joint torque constraints into the toppra, i want to replaced the inv_dyn function provided by openRave with our own inverse dynamics function. Because my dynamics model contains viscous friction and coulomb friction, to the end, the each joint torque contains the ds item (as shown below). joint_torque I think that it need another coefficient matrix apart from a(s), b(s) and c(s), but I do not know how to fix this problem without violating the toppra.

hungpham2511 commented 4 years ago

Hi @meihuiZhang,

If you really need to account for viscosity, I can recommend the following approach:

There is no guarantee that this will work if the viscosity level is too high.