基于子弹的软库机器人仿真

qibullet的Python项目详细描述


qibulletBuild StatuspypiGitter chat

bullet为softbank robotics'机器人进行基于python的模拟。

安装

需要以下模块:

  • numpy
  • pybullet

对于python 2.7和python 3,qibullet模块可以通过pip安装:

pip install --user qibullet

用法

机器人可以通过SimulationManager类生成:

fromqibulletimportSimulationManagerif__name__=="__main__":simulation_manager=SimulationManager()# Launch a simulation instances, with using a graphical interface.# Please note that only one graphical interface can be launched at a timeclient_id=simulation_manager.launchSimulation(gui=True)# Spawning a virtual Pepper robot, at the origin of the WORLD frame, and a# ground planepepper=simulation_manager.spawnPepper(client_id,translation=[0,0,0],quaternion=[0,0,0,1],spawn_ground_plane=True)# Or a NAO robot, at a default positionnao=simulation_manager.spawnNao(client_id,spawn_ground_plane=True)

或者使用PepperVirtual类中的loadRobot,如果您已经有一个模拟环境:

pepper=PepperVirtual()pepper.loadRobot(translation=[0,0,0],quaternion=[0,0,0,1],physicsClientId=client_id)

更多代码片段可以在examples folder或存储库wiki中找到

文档

可以找到qibulletapi文档here。文档可以通过以下命令生成(^ {STR 1 } $doxGeN/Stult>包必须预先安装,DOCS文件夹必须存在):

cd docs
doxygen

存储库还包含一个wiki,提供一些教程。

引文

如果您在出版物中使用此存储库,请引用qibullet:

Paper coming soon...

故障排除

opengl驱动程序

如果您遇到消息:

Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu

您的计算机正在使用Intel OpenGL驱动程序。转到software&updatesadditional drivers,然后选择与GPU对应的驱动程序。

许可证

根据Apache-2.0 License

授权

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java允许具有不同父类的类扩展类,而无需多重继承   java如何创建动态化的JScrollPane w/JPanel作为客户端?   java如何组织和命名包   在Java中读取属性文件   java无法解释的Android意图行为   在Java中动态执行多个BPEL文件的部署   ssl Java 6 SNI(服务器名称指示)?   java我们可以使用Robot框架自动化web和移动应用程序来执行并行执行   java for star pettern的循环   java为什么BinaryReader在线程中,从netty读取错误的数据包?   在java中将华氏度转换为摄氏度   使用Spark和java处理空值和引号编写CSV文件   Java中已排序日期到块的列表   visual studio代码VSCode Java不是linting或自动完成局部变量,而是自动完成Java快捷方式,如“sysout”