Controlling Ergo Jr with own primitive

documentation
python
english
ergo-jr
Tags: #<Tag:0x00007f5ceab42a00> #<Tag:0x00007f5ceab428c0> #<Tag:0x00007f5ceab425f0> #<Tag:0x00007f5ceab42348>

#1

I have the Ergo Jr assembled and the built in functions such as dance and pose from the monitor and control tab on poppy.local work fine. I want to use Python to add my own code to make it do other things. How do I create new actions for the Ergo Jr? Do I add them to the ergojr source folders which contain the built-in actions? Or do I need to run them through the Python notebook? The documentation on the Poppy website hasn’t been much help.

Thanks,
N


#2

hey @nbh,

I’m note sure to understand your question.

but, it’s true that the documentation for created a new functions (a primittive) such as ‘dance’ is not very clear…

I’m work to improve this part, but I have no time for that :confused:

here is a notebook to explain how create and add a primitive. how-to_Primitive.ipynb (37.2 KB)

I’m sorry, because this notebook is actualy in french… actualy this notebook are just a draft …

Moreover, you can find other doc about that: e.g https://github.com/poppy-project/pypot/blob/master/doc/primitive.rst


Problems to start / instantiate ErgoJr (without pi camera) in python