项目作者: MonoMotion

项目描述 :
shallow, but powerful wrapper around pybullet
高级语言: Python
项目地址: git://github.com/MonoMotion/silverbullet.git
创建时间: 2019-01-19T05:33:50Z
项目社区:https://github.com/MonoMotion/silverbullet

开源协议:MIT License

下载


silverbullet

Codacy Badge
Travis CI
pypi
Reviewed by Hound
license
GitHub release

shallow but powerful wrapper around pybullet

Installation

  1. pip install silverbullet

Usage

  1. from silverbullet import Scene, Robot
  2. # GUI mode
  3. # from silverbullet import Connection, Mode
  4. # conn = Connection(mode=Mode.GUI)
  5. # scene = Scene(timestep=0.01, frame_skip=4, connection=conn)
  6. scene = Scene(timestep=0.01, frame_skip=4)
  7. robot = Robot.load_urdf(scene, "robot.urdf")
  8. robot.bring_on_the_ground()
  9. while True:
  10. # You can control and observe the robot
  11. # e.g. robot.set_joint_torque('joint1', 1)
  12. do_something(robot)
  13. # This will step simulation
  14. scene.step()