KavrakiLab / tmkit

A Task-Motion Planning Framework
http://tmkit.kavrakilab.org
BSD 3-Clause "New" or "Revised" License
48 stars 12 forks source link

How to use Python shell #8

Open clemense opened 6 years ago

clemense commented 6 years ago

There is an option --python-shell which starts a CLPython shell. Are there any variables defined at this point? If yes, what are their names? Is there maybe an example how to use the shell option effectively?

ndantam commented 6 years ago

Nothing defined yet. See the demo domain semantics python files for some examples of packages to import. dir() works as expected. import CL followed by CL.DESCRIBE(FOO) will access the docstrings.

ndantam commented 6 years ago

Also: http://tmkit.kavrakilab.org/tmsmtpy.html

ndantam commented 6 years ago

An expanded API: http://amino.golems.org/AMINO_CLPYTHON.html A simple demo: https://github.com/golems/amino/blob/master/demo/python/baxter-view.py