How to use IK library inside Python SMACH state (Python)?
I want to create create complex behaviors using the SMACH library (e.g. grasping an object, bipod walking, etc).
In order to maintain flexibility, inside my SMACH state machines, I've used parameterized states (e.g. I have a MoveAlongPath state which I instantiate with a list of joint waypoints to produce different movements: lift leg, plant leg, etc).
I want to use an inverse kinematics library inside a SMACH state (e.g. Calculate IK) to generate a list of waypoints (which will be passed on to instances of the Movement state).
I am interested in the HEBI Robotics API and the trac_ik library - both of which are in C++.
My question is:
What's the recommended ROS way to make calls to a C++ IK library from inside a Python SMACH state?
... Boost Python, C++ SimpleActionServer?
edit:
trac_ik has a pull request for a python wrapper but it hasn't been merged in yet.
edit:
As of 2018/29/01
- trac_ik_python has been released.
- HEBI has announced a Python API for their motors/kinematics library
Why delete the question? Have you solved it? If so, then please post an answer and accept your own answer.
I didn't really solve the question as stated, but trac_ik_python has been released - eliminating the original need. I have modified the question title, added my own answer, and undeleted the question as recommended.