I am having problems with the web simulator.
I am interested in writing programs in Python (only, not Snap) in order to study the computations of 3D rotations.
I can run http://simu.poppy-project.org/poppy-ergo-jr/2
and the robot moves when I move the sliders.
I installed the full Anaconda with no problem.
I ran “pip install poppy-ergo-jr” with no problem
The documentation is inconsistent if I need to run poppy-services
if I am writing my own Python program.
But I did so and it runs OK.
If I am supposed to run it, can I just omit the --snap parameter
since I don’t want Snap? Or should the parameters be different.
In a separate command window I ran Python with the following program based on the example in the documentation.
The printing of present position worked and the value of m3 printed changes after running the program, but nothing happened in the visualization.
from pypot.creatures import PoppyErgoJr import time poppy = PoppyErgoJr(simulator='poppy-simu') for m in poppy.motors: print(m.present_position) for _ in range(3): poppy.m3.goal_position = 30 time.sleep(0.5) poppy.m3.goal_position = -30 time.sleep(0.5) for m in poppy.motors: print(m.present_position)