Files
pyrobolearn/examples/robots/robots/atlas.py
T

29 lines
539 B
Python

#!/usr/bin/env python
"""Load the Atlas robot.
"""
from itertools import count
from pyrobolearn.simulators import Bullet
from pyrobolearn.worlds import BasicWorld
from pyrobolearn.robots import Atlas
# Create simulator
sim = Bullet()
# create world
world = BasicWorld(sim)
# create robot
robot = Atlas(sim)
# print information about the robot
robot.print_info()
# position control using sliders
robot.add_joint_slider(robot.left_leg)
# run simulator
for _ in count():
robot.update_joint_slider()
world.step(sleep_dt=1./240)