How to use the poppy.creatures.PoppyTorso function in poppy

To help you get started, we’ve selected a few poppy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Phylliade / ikpy / scripts / hand_follow.py View on Github external
import time
import numpy as np
from poppy.creatures import PoppyTorso


poppy = PoppyTorso(simulator='vrep')

delay_time = 1
target_delta = np.array([-0.15, 0, 0])

# Initialize the robot
for m in poppy.motors:
    m.goto_position(0, 2)

# Left arm is compliant, right arm is active
for m in poppy.l_arm:
            m.compliant = False

for m in poppy.r_arm:
    m.compliant = False

# The torso itself must not be compliant
github poqudrof / PapARt / sketches / experimental / ruby / poppy / start.py View on Github external
## Get the torso. 
from poppy.creatures import PoppyTorso
from threading import Thread
from pypot.server.httpserver import HTTPRobotServer

torso = PoppyTorso()

server = HTTPRobotServer(torso, host='193.50.110.242', port=8080)

Thread(target=lambda: server.run(quiet=True, server='wsgiref')).start()
github poqudrof / PapARt / sketches / papartExamples / experimental / ruby / poppy / start.py View on Github external
## Get the torso. 
from poppy.creatures import PoppyTorso
from threading import Thread
from pypot.server.httpserver import HTTPRobotServer

torso = PoppyTorso()

server = HTTPRobotServer(torso, host='193.50.110.242', port=8080)

Thread(target=lambda: server.run(quiet=True, server='wsgiref')).start()

poppy

Physical optics propagation (wavefront diffraction) for optical simulations, particularly of telescopes.

BSD-3-Clause
Latest version published 2 years ago

Package Health Score

63 / 100
Full package analysis