Closed mmurooka closed 1 year ago
Thanks @mmurooka
I think that except for the usability issue with passing bytes instead of strings, which can be worked around using the encode
trick I mentionned, this can be merged as-is for a first usable product.
Thanks @gergondet I updated it to allow strings
This is just an introduction to a new feature I am experimenting with right now. I thought it was interesting and will submit a PR, but it may not necessarily need to be merged.
I thought it would be useful If we could send commands (walking, reaching, etc.) of mc_rtc controller from a Python script or interpreter, and I realized this by using Python bindings in ControllerClient. This PR adds that bindings.
This allows the Python interpreter to send walking and gripper opening/closing commands, as shown in the video below, using BaselineWalkingController as an example. (BaselineWalkingController does not require any changes for this purpose.) In addition to calling it from the interpreter, it will be easy to determine the destination of a walk based on the results of a deep learning model and send walking commands in a Python script.
https://github.com/jrl-umi3218/mc_rtc/assets/6636600/73590010-e4c1-414b-8749-759cd17a67e1
Here is the ControllerClient wrapper for Python.