update interfaces, manipulability, robots, world (+add/update corresponding examples)

This commit is contained in:
Brian Delhaisse
2019-06-20 01:13:46 +02:00
parent 1f4764d923
commit f512d42d31
80 changed files with 902 additions and 203 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env python
"""Load the mouse keyboard interface.
"""
from itertools import count
import pyrobolearn as prl
from pyrobolearn.tools.interfaces.mouse_keyboard import MouseKeyboardInterface
# create simulator
sim = prl.simulators.Bullet()
# create mouse keyboard interface
interface = MouseKeyboardInterface(sim)
# run interface
for _ in count():
# perform a step with the interface
interface.step()
# print pressed keys
if len(interface.key_down) > 0:
print("Keys that are pressed: {}".format(interface.key_down))
# perform a step with the simulator
sim.step(sleep_time=sim.dt)