PyBullet Quickstart Guide
Erwin Coumans, Yunfei Bai, 2016-2022
Visit desktop doc, forums, github discussions and star Bullet!
Introduction 2
Hello PyBullet World 3
connect, disconnect, bullet_client 3
setGravity 7
loadURDF, loadSDF, loadMJCF 7
saveState, saveBullet, restoreState 11
createCollisionShape/VisualShape 12
createMultiBody 15
stepSimulation 16
getBasePositionAndOrientation 18
resetBasePositionAndOrientation 18
Transforms: Position and Orientation 19
Controlling a robot 21
Base, Joints, Links 21
getNumJoints, getJointInfo 22
setJointMotorControl2/Array 23
getJointState(s), resetJointState 28
enableJointForceTorqueSensor 29
getLinkState(s) 30
getBaseVelocity, resetBaseVelocity 32
applyExternalForce/Torque 32
getNumBodies, getBodyInfo, getBodyUniqueId,
removeBody 33
createConstraint, removeConstraint,
changeConstraint 33
getNumConstraints, getConstraintUniqueId 35
getConstraintInfo/State 35
getDynamicsInfo/changeDynamics 36
setTimeStep 39
setPhysicsEngineParameter 40
resetSimulation 42
startStateLogging/stopStateLogging 42
Deformables and Cloth (FEM, PBD) 44
loadSoftBody/loadURDF 45
createSoftBodyAnchor 46
Synthetic Camera Rendering 47
computeView/ProjectionMatrix 47
getCameraImage 48
getVisualShapeData 51
changeVisualShape, loadTexture 52
Collision Detection Queries 52
getOverlappingObjects, getAABB 52
getContactPoints, getClosestPoints 53
rayTest, rayTestBatch 55
getCollisionShapeData 56
Enable/Disable Collisions 57
Inverse Dynamics, Kinematics 60
calculateInverseDynamics(2) 60
calculateJacobian, MassMatrix 60
calculateInverseKinematics(2) 62
Reinforcement Learning Gym Envs 65
Environments and Data 65
Stable Baselines & ARS, ES,... 69
Virtual Reality 72
getVREvents,setVRCameraState 72
Debug GUI, Lines, Text, Parameters 74
addUserDebugLine, Text, Parameter 74
addUserData 77
configureDebugVisualizer 78
get/resetDebugVisualizerCamera 78
getKeyboardEvents, getMouseEvents 80
Plugins 81
loadPlugin,executePluginCommand 81
Build and install PyBullet 82
Support, Tips, Citation 85
评论0