Poppy IPython shell

Thanks to @aristofor, you can now directly launch an IPython shell with a pre-instantiated Poppy Creature! It works with all creatures so the Humanoid, the Ergo and ErgoJr and can be used to connect to a real creature or a simulated one using v-rep.

You just have to update your poppy-creature package (version 1.4 or later): e.g. via:

pip install poppy-creature -U

And then, you can launch a Poppy Shell just by doing:


poppy-shell Humanoid --vrep

This will start a usual IPython shell but with an already instantiated and connected poppy variable:

And it also displays the Poppy logo in Ascii art, well… because it’s cool right? ^^

3 Likes

Who did this beautiful ascii art? This guy kick that!

1 Like

I’m glad you’ve enjoyed the launcher, that will be fine if users run it.

I first reworked the former one (first gist) by using pip.util to find creature classes in installed packages. I changed my code because I thought translating module name into class were weaker than scanning the poppy.creature namespace.

However running a custom robot would be a enhancement.

I think I can use some wrapper to extend poppy.creature as I’m trying to manage with V-REP.