Given:
- a URDF
- the current joint positions
- a gravity vector
I want to calculate the joint efforts needed to compensate for gravity ("achieve weightlessness").
Is there an existing (ROS) package that will do this (preferably Python b/c existing code)?
I've been searching but haven't been able to find anything yet. Best lead (I think) is https://github.com/orocos/orocos_kinematics_dynamics/tree/master/python_orocos_kdl.
Originally posted by josephcoombe on ROS Answers with karma: 697 on 2018-03-28
Post score: 0
Original comments
Comment by gvdhoorn on 2018-03-28:
It's not a ROS package, but would RBDL work for you? According to it's documentation:
There are multiple ways of creating Models for RBDL:
- Loading models from URDF (the Unified Robot Description Format) xml files or strings using the URDFReader addon
Comment by gvdhoorn on 2018-03-28:
KDL should also be able to do this I believe, but I haven't used it myself for this particular purpose.
Comment by josephcoombe on 2018-04-05:
@gvdhoorn Thanks for recommendations. After your suggestion, I looked into RBDL a little bit, but ended up going with KDL (since it's URDF support seems more mature/tested). PyKDL ended up having what I needed.