-
Notifications
You must be signed in to change notification settings - Fork 0
/
pybullet.pyi
986 lines (712 loc) · 47.2 KB
/
pybullet.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
# encoding: utf-8
# module pybullet
# from C:\Users\User\PycharmProjects\Test_Project\venv\lib\site-packages\pybullet.cp38-win_amd64.pyd
# by generator 1.147
""" Python bindings for Bullet Physics Robotics API (also known as Shared Memory API) """
# no imports
# Variables with simple values
from os import lseek
ACTIVATION_STATE_DISABLE_SLEEPING = 2
ACTIVATION_STATE_DISABLE_WAKEUP = 32
ACTIVATION_STATE_ENABLE_SLEEPING = 1
ACTIVATION_STATE_ENABLE_WAKEUP = 16
ACTIVATION_STATE_SLEEP = 8
ACTIVATION_STATE_WAKE_UP = 4
AddFileIOAction = 1024
B3G_ALT = 65308
B3G_BACKSPACE = 65305
B3G_CONTROL = 65307
B3G_DELETE = 65304
B3G_DOWN_ARROW = 65298
B3G_END = 65301
B3G_F1 = 65280
B3G_F10 = 65289
B3G_F11 = 65290
B3G_F12 = 65291
B3G_F13 = 65292
B3G_F14 = 65293
B3G_F15 = 65294
B3G_F2 = 65281
B3G_F3 = 65282
B3G_F4 = 65283
B3G_F5 = 65284
B3G_F6 = 65285
B3G_F7 = 65286
B3G_F8 = 65287
B3G_F9 = 65288
B3G_HOME = 65302
B3G_INSERT = 65303
B3G_LEFT_ARROW = 65295
B3G_PAGE_DOWN = 65300
B3G_PAGE_UP = 65299
B3G_RETURN = 65309
B3G_RIGHT_ARROW = 65296
B3G_SHIFT = 65306
B3G_SPACE = 32
B3G_UP_ARROW = 65297
CNSFileIO = 3
CONSTRAINT_SOLVER_LCP_DANTZIG = 3
CONSTRAINT_SOLVER_LCP_PGS = 2
CONSTRAINT_SOLVER_LCP_SI = 1
CONTACT_RECOMPUTE_CLOSEST = 1
CONTACT_REPORT_EXISTING = 0
COV_ENABLE_DEPTH_BUFFER_PREVIEW = 14
COV_ENABLE_GUI = 1
COV_ENABLE_KEYBOARD_SHORTCUTS = 9
COV_ENABLE_MOUSE_PICKING = 10
COV_ENABLE_PLANAR_REFLECTION = 16
COV_ENABLE_RENDERING = 7
COV_ENABLE_RGB_BUFFER_PREVIEW = 13
COV_ENABLE_SEGMENTATION_MARK_PREVIEW = 15
COV_ENABLE_SHADOWS = 2
COV_ENABLE_SINGLE_STEP_RENDERING = 17
COV_ENABLE_TINY_RENDERER = 12
COV_ENABLE_VR_PICKING = 5
COV_ENABLE_VR_RENDER_CONTROLLERS = 6
COV_ENABLE_VR_TELEPORTING = 4
COV_ENABLE_WIREFRAME = 3
COV_ENABLE_Y_AXIS_UP = 11
DIRECT = 2
ER_BULLET_HARDWARE_OPENGL = 131072
ER_NO_SEGMENTATION_MASK = 4
ER_SEGMENTATION_MASK_OBJECT_AND_LINKINDEX = 1
ER_TINY_RENDERER = 65536
ER_USE_PROJECTIVE_TEXTURE = 2
GEOM_BOX = 3
GEOM_CAPSULE = 7
GEOM_CONCAVE_INTERNAL_EDGE = 2
GEOM_CYLINDER = 4
GEOM_FORCE_CONCAVE_TRIMESH = 1
GEOM_HEIGHTFIELD = 9
GEOM_MESH = 5
GEOM_PLANE = 6
GEOM_SPHERE = 2
GRAPHICS_CLIENT = 14
GRAPHICS_SERVER = 15
GRAPHICS_SERVER_MAIN_THREAD = 17
GRAPHICS_SERVER_TCP = 16
GUI = 1
GUI_MAIN_THREAD = 8
GUI_SERVER = 7
IK_DLS = 0
IK_HAS_JOINT_DAMPING = 128
IK_HAS_NULL_SPACE_VELOCITY = 64
IK_HAS_TARGET_ORIENTATION = 32
IK_HAS_TARGET_POSITION = 16
IK_SDLS = 1
JOINT_FEEDBACK_IN_JOINT_FRAME = 2
JOINT_FEEDBACK_IN_WORLD_SPACE = 1
JOINT_FIXED = 4
JOINT_GEAR = 6
JOINT_PLANAR = 3
JOINT_POINT2POINT = 5
JOINT_PRISMATIC = 1
JOINT_REVOLUTE = 0
JOINT_SPHERICAL = 2
KEY_IS_DOWN = 1
KEY_WAS_RELEASED = 4
KEY_WAS_TRIGGERED = 2
LINK_FRAME = 1
MAX_RAY_INTERSECTION_BATCH_SIZE = 16384
MESH_DATA_SIMULATION_MESH = 1
MJCF_COLORS_FROM_FILE = 512
PD_CONTROL = 3
POSITION_CONTROL = 2
PosixFileIO = 1
RemoveFileIOAction = 1025
RESET_USE_DEFORMABLE_WORLD = 1
RESET_USE_DISCRETE_DYNAMICS_WORLD = 2
RESET_USE_SIMPLE_BROADPHASE = 4
SENSOR_FORCE_TORQUE = 1
SHARED_MEMORY = 3
SHARED_MEMORY_GUI = 14
SHARED_MEMORY_KEY = 12347
SHARED_MEMORY_KEY2 = 12348
SHARED_MEMORY_SERVER = 9
STABLE_PD_CONTROL = 4
STATE_LOGGING_ALL_COMMANDS = 7
STATE_LOGGING_CONTACT_POINTS = 5
STATE_LOGGING_CUSTOM_TIMER = 9
STATE_LOGGING_GENERIC_ROBOT = 1
STATE_LOGGING_MINITAUR = 0
STATE_LOGGING_PROFILE_TIMINGS = 6
STATE_LOGGING_VIDEO_MP4 = 3
STATE_LOGGING_VR_CONTROLLERS = 2
STATE_LOG_JOINT_MOTOR_TORQUES = 1
STATE_LOG_JOINT_TORQUES = 3
STATE_LOG_JOINT_USER_TORQUES = 2
STATE_REPLAY_ALL_COMMANDS = 8
TCP = 5
TORQUE_CONTROL = 1
UDP = 4
URDF_ENABLE_CACHED_GRAPHICS_SHAPES = 1024
URDF_ENABLE_SLEEPING = 2048
URDF_ENABLE_WAKEUP = 262144
URDF_GLOBAL_VELOCITIES_MB = 256
URDF_GOOGLEY_UNDEFINED_COLORS = 8388608
URDF_IGNORE_COLLISION_SHAPES = 2097152
URDF_IGNORE_VISUAL_SHAPES = 1048576
URDF_INITIALIZE_SAT_FEATURES = 4096
URDF_MAINTAIN_LINK_ORDER = 131072
URDF_MERGE_FIXED_LINKS = 524288
URDF_PRINT_URDF_INFO = 4194304
URDF_USE_IMPLICIT_CYLINDER = 128
URDF_USE_INERTIA_FROM_FILE = 2
URDF_USE_MATERIAL_COLORS_FROM_MTL = 32768
URDF_USE_MATERIAL_TRANSPARANCY_FROM_MTL = 65536
URDF_USE_SELF_COLLISION = 8
URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS = 32
URDF_USE_SELF_COLLISION_EXCLUDE_PARENT = 16
URDF_USE_SELF_COLLISION_INCLUDE_PARENT = 8192
VELOCITY_CONTROL = 0
VISUAL_SHAPE_DATA_TEXTURE_UNIQUE_IDS = 1
VISUAL_SHAPE_DOUBLE_SIDED = 4
VR_BUTTON_IS_DOWN = 1
VR_BUTTON_WAS_RELEASED = 4
VR_BUTTON_WAS_TRIGGERED = 2
VR_CAMERA_TRACK_OBJECT_ORIENTATION = 1
VR_DEVICE_CONTROLLER = 1
VR_DEVICE_GENERIC_TRACKER = 4
VR_DEVICE_HMD = 2
VR_MAX_BUTTONS = 64
VR_MAX_CONTROLLERS = 8
WORLD_FRAME = 2
ZipFileIO = 2
# functions
def addUserData(bodyUniqueId:int, key, value, linkIndex=-1, visualShapeIndex=-1, physicsClientId=0): # real signature unknown; restored from __doc__
"""
addUserData(bodyUniqueId, key, value, linkIndex=-1, visualShapeIndex=-1, physicsClientId=0)
Adds or updates a user data entry. Returns user data identifier.
"""
pass
def addUserDebugLine(lineFromXYZ:list[float],lineToXYZ:list[float],lineColorRGB:list[float],lineWidth:float,lifeTime:float,parentObjectUniqueId:int,parentLinkIndex:int,replaceItemUniqueId:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Add a user debug draw line with lineFrom[3], lineTo[3], lineColorRGB[3], lineWidth, lifeTime. A lifeTime of 0 means permanent until removed. Returns a unique id for the user debug item. """
pass
def addUserDebugParameter(paramName:str,rangeMin:float,rangeMax:float,startValue:float,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Add a user debug parameter, such as a slider, that can be controlled using a GUI. """
pass
def addUserDebugText(text:str,textPosition:list[float],textColorRGB:list[float],textSize:float,lifeTime:float,textOrientation:list[float],parentObjectUniqueId:int,parentLinkIndex:int,replaceItemUniqueId:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Add a user debug draw line with text, textPosition[3], textSize and lifeTime in seconds A lifeTime of 0 means permanent until removed. Returns a unique id for the user debug item. """
pass
def applyExternalForce(objectUniqueId:int,linkIndex:int,forceObj:list[float],posObj:list[float],flags:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" for objectUniqueId, linkIndex (-1 for base/root link), apply a force [x,y,z] at the a position [x,y,z], flag to select FORCE_IN_LINK_FRAME or WORLD_FRAME coordinates """
pass
def applyExternalTorque(objectUniqueId:int,linkIndex:int,forceObj:list[float],posObj:list[float],flags:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" for objectUniqueId, linkIndex (-1 for base/root link), apply a force [x,y,z] at the a position [x,y,z], flag to select FORCE_IN_LINK_FRAME or WORLD_FRAME coordinates """
pass
def calculateInverseDynamics(bodyUniqueId:int,objPositions:list[float],objVelocities:list[float],objAccelerations:list[float],physicsClientId:int,*args, **kwargs): # real signature unknown
""" Given an object id, joint positions, joint velocities and joint accelerations, compute the joint forces using Inverse Dynamics """
pass
def calculateInverseKinematics(bodyUniqueId:int,endEffectorLinkIndex:int,targetPosition:list[float],targetOrientation:list[float],lowerLimits:list[float],upperLimits:list[float],jointRanges:list[float],restPoses:list[float],jointDamping:list[float],solver:int,currentPosition:list[float],maxNumIterations:int,residualThreshold:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Inverse Kinematics bindings: Given an object id, current joint positions and target position for the end effector,compute the inverse kinematics and return the new joint state """
pass
def calculateInverseKinematics2(bodyUniqueId:int,endEffectorLinkIndices:list[int],targetPositions:list[float],targetOrientation:list[float],lowerLimits:list[float],upperLimits:list[float],jointRanges:list[float],restPoses:list[float],jointDamping:list[float],solver:int,currentPosition:list[float],maxNumIterations:int,residualThreshold:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Inverse Kinematics bindings: Given an object id, current joint positions and target positions for the end effectors,compute the inverse kinematics and return the new joint state """
pass
def calculateJacobian(bodyUniqueId:int, linkIndex:int, localPosition:list[float], objPositions:list[float], objVelocities:list[float], objAccelerations:list[float], physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
linearJacobian, angularJacobian = calculateJacobian(bodyUniqueId, linkIndex, localPosition, objPositions, objVelocities, objAccelerations, physicsClientId=0)
Compute the jacobian for a specified local position on a body and its kinematics.
Args:
bodyIndex - a scalar defining the unique object id.
linkIndex - a scalar identifying the link containing the local point.
localPosition - a list of [x, y, z] of the coordinates defined in the link frame.
objPositions - a list of the joint positions.
objVelocities - a list of the joint velocities.
objAccelerations - a list of the joint accelerations.
Returns:
linearJacobian - a list of the partial linear velocities of the jacobian.
angularJacobian - a list of the partial angular velocities of the jacobian.
"""
pass
def calculateMassMatrix(bodyUniqueId:int, objPositions:list[float], physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
massMatrix = calculateMassMatrix(bodyUniqueId, objPositions, physicsClientId=0)
Compute the mass matrix for an object and its chain of bodies.
Args:
bodyIndex - a scalar defining the unique object id.
objPositions - a list of the joint positions.
Returns:
massMatrix - a list of lists of the mass matrix components.
"""
pass
def calculateVelocityQuaternion(*args, **kwargs): # real signature unknown
""" Compute the angular velocity given start and end quaternion and delta time. """
pass
def changeConstraint(parentBodyUniqueId:int,parentLinkIndex:int,childBodyUniqueId:int,childLinkIndex:int,jointType:int,jointAxis:list[float],parentFramePosition:list[float],childFramePosition:list[float],parentFrameOrientation:list[float],childFrameOrientation:list[float],physicsClientId:int,*args, **kwargs): # real signature unknown
""" Change some parameters of an existing constraint, such as the child pivot or child frame orientation, using its unique id. """
pass
def changeDynamics(bodyUniqueId:int,linkIndex:int,mass:float,lateralFriction:float,spinningFriction:float,rollingFriction:float,restitution:float,linearDamping:float,angularDamping:float,contactStiffness:float,contactDamping:float,frictionAnchor:int,localInertiaDiagnoal:list,ccdSweptSphereRadius:float,contactProcessingThreshold:float,activationState:int,jointDamping:float,anisotropicFriction:float,maxJointVelocity:float,collisionMargin:float,jointLowerLimit:float,jointUpperLimit:float,jointLimitForce:float,physicsClientId:int,*args, **kwargs): # real signature unknown
""" change dynamics information such as mass, lateral friction coefficient. """
pass
def changeTexture(*args, **kwargs): # real signature unknown
""" Change a texture file. """
pass
def changeVisualShape(objectUniqueId:int,linkIndex:int,shapeIndex:int,textureUniqueId:int,rgbaColor:list[float],specularColor:list[float],physicsClientId:int,*args, **kwargs): # real signature unknown
""" Change part of the visual shape information for one object. """
pass
def computeDofCount(*args, **kwargs): # real signature unknown
""" computeDofCount returns the number of degrees of freedom, including 7 degrees of freedom for the base in case of floating base """
pass
def computeProjectionMatrix(left:float,right:float,bottom:float,up:float,near:float,far:float,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Compute a camera projection matrix from screen left/right/bottom/top/near/far values """
pass
def computeProjectionMatrixFOV(fov:float,aspect:float,nearVal:float,farVal:float,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Compute a camera projection matrix from fov, aspect ratio, near, far values """
pass
def computeViewMatrix(cameraEyePosition:list[float],cameraTargetPosition:list[float],cameraUpVector:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Compute a camera viewmatrix from camera eye, target position and up vector """
pass
def computeViewMatrixFromYawPitchRoll(cameraTargetPosition:list[float],distance:float,yaw:float,pitch:float,roll:float,upAxisIndex:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Compute a camera viewmatrix from camera eye, target position and up vector """
pass
def configureDebugVisualizer(flag:int,enable:int,lightPosition:list[float],shadowMapResolution:int,shadowMapWorldSize:int,shadowMapIntensity:float,rgbBackground:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" For the 3D OpenGL Visualizer, enable/disable GUI, shadows. """
pass
def connect(method, key=None, options=''): # real signature unknown; restored from __doc__
"""
connect(method, key=SHARED_MEMORY_KEY, options='')
options='--background_color_red=1.0 --background_color_green=0.0 --background_color_blue=0.0'
connect(method, hostname='localhost', port=1234, options='')
Connect to an existing physics server (using shared memory by default).
"""
pass
def createCollisionShape(shapeType:int,radius:float,halfExtents:list[float],height:float,fileName:list[float],meshScale:list[float],planeNormal:list[float],flags:int,collisionFramePosition:list[float],collisionFrameOrientationosition:list[float],vertices:list[float],indices:list[int],heightfieldTextureScaling:float,numHeightfieldRows:int,numHeightfieldColumns:int,replaceHeightfieldIndex:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Create a collision shape. Returns a non-negative (int) unique id, if successfull, negative otherwise. """
pass
def createCollisionShapeArray(*args, **kwargs): # real signature unknown
""" Create collision shapes. Returns a non-negative (int) unique id, if successfull, negative otherwise. """
pass
def createConstraint(parentBodyUniqueId:int,parentLinkIndex:int,childBodyUniqueId:int,childLinkIndex:int,jointType:int,jointAxis:list[float],parentFramePosition:list[float],childFramePosition:list[float],parentFrameOrientation:list[float],childFrameOrientation:list[float],physicsClientId:int,*args, **kwargs): # real signature unknown
""" Create a constraint between two bodies. Returns a (int) unique id, if successfull. """
pass
def createMultiBody(baseMass:float,baseCollisionShapeIndex:int,baseVisualShapeIndex:int,basePosition:list[float],baseOrientation:list[float],baseInertialFramePosition:list[float],baseInertialFrameOrientation:list[float],linkMasses:list[float],linkCollisionShapeIndices:list[int],linkVisualShapeIndices:list[int],linkPositions:list[float],linkOrientations:list[float],linkInertialFramePositions:list[float],linkInertialFrameOrientations:list[float],linkParentIndices:list[int],linkJointTypes:list[int],linkJointAxis:list[float],useMaximalCoordinates:int,flags:int,batchPositions:list[float],physicsClientId:int=0,*args, **kwargs) -> int : # real signature unknown
""" Create a multi body. Returns a non-negative (int) unique id, if successfull, negative otherwise. """
pass
def createSoftBodyAnchor(*args, **kwargs): # real signature unknown
""" Create an anchor (attachment) between a soft body and a rigid or multi body. """
pass
def createVisualShape(shapeType:int,radius:float,halfExtents:list[float],height:float,fileName:list[float],meshScale:list[float],planeNormal:list[float],flags:int,visualFramePosition:list[float],visualFrameOrientationosition:list[float],vertices:list[float],indices:list[int],heightfieldTextureScaling:float,numHeightfieldRows:int,numHeightfieldColumns:int,replaceHeightfieldIndex:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Create a visual shape. Returns a non-negative (int) unique id, if successfull, negative otherwise. """
pass
def createVisualShapeArray(*args, **kwargs): # real signature unknown
""" Create visual shapes. Returns a non-negative (int) unique id, if successfull, negative otherwise. """
pass
def disconnect(physicsClientId=0): # real signature unknown; restored from __doc__
"""
disconnect(physicsClientId=0)
Disconnect from the physics server.
"""
pass
def enableJointForceTorqueSensor(bodyUniqueId:int,jointIndex:int,enableSensor:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Enable or disable a joint force/torque sensor measuring the joint reaction forces. """
pass
def executePluginCommand(pluginUniqueId:int,textArgument:str,intArgs:list[int],floatArgs:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Execute a command, implemented in a plugin. """
pass
def getAABB(bodyUniqueId:int,linkIndex:int,physicsClientId:int=0,*args, **kwargs) -> list[float]: # real signature unknown
""" Get the axis aligned bound box min and max coordinates in world space. """
pass
def getAPIVersion(physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get version of the API. Compatibility exists for connections using the same API version. Make sure both client and server use the same number of bits (32-bit or 64bit). """
pass
def getAxisAngleFromQuaternionquaternion(quaternion:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Compute the quaternion from axis and angle representation. """
pass
def getAxisDifferenceQuaternion(*args, **kwargs): # real signature unknown
""" Compute the velocity axis difference from two quaternions. """
pass
def getBasePositionAndOrientation(objectUniqueId:int,physicsClientId:int,*args, **kwargs) -> list[float]: # real signature unknown
""" Get the world position and orientation of the base of the object. (x,y,z) position vector and (x,y,z,w) quaternion orientation. """
pass
def getBaseVelocity(objectUniqueId:int,physicsClientId:int,*args, **kwargs) -> list[float]: # real signature unknown
""" Get the linear and angular velocity of the base of the object in world space coordinates. (x,y,z) linear velocity vector and (x,y,z) angular velocity vector. """
pass
def getBodyInfo(*args, **kwargs): # real signature unknown
""" Get the body info, given a body unique id. """
pass
def getBodyUniqueId(*args, **kwargs): # real signature unknown
""" getBodyUniqueId is used after connecting to server with existing bodies.Get the unique id of the body, given a integer range [0.. number of bodies). """
pass
def getCameraImage(width:int,height:int,viewMatrix:float,projectionMatrix:float,lightDirection:list[float],lightColor:list[float],lightDistance:float,shadow:int,lightAmbientCoeff:float,lightDiffuseCoeff:float,lightSpecularCoeff:float,renderer:int,flags:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Render an image (given the pixel resolution width, height, camera viewMatrix , projectionMatrix, lightDirection, lightColor, lightDistance, shadow, lightAmbientCoeff, lightDiffuseCoeff, lightSpecularCoeff, and renderer), and return the 8-8-8bit RGB pixel data and floating point depth values """
pass
def getClosestPoints(bodyA:int,bodyB:int,distance:float,linkIndexA:int,linkIndexB:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Compute the closest points between two objects, if the distance is below a given threshold.Input is two objects unique ids and distance threshold. """
pass
def getCollisionShapeData(objectUniqueId:int,linkIndex:int,physicsClientId:int,*args, **kwargs): # real signature unknown
""" Return the collision shape information for one object. """
pass
def getConnectionInfo(physicsClientId=0): # real signature unknown; restored from __doc__
"""
getConnectionInfo(physicsClientId=0)
Return if a given client id is connected, and using what method.
"""
pass
def getConstraintInfo(constraintUniqueId:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the user-created constraint info, given a constraint unique id. """
pass
def getConstraintState(constraintUniqueId:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the user-created constraint state (applied forces), given a constraint unique id. """
pass
def getConstraintUniqueId(*args, **kwargs): # real signature unknown
""" Get the unique id of the constraint, given a integer index in range [0.. number of constraints). """
pass
def getContactPoints(*args, **kwargs): # real signature unknown
""" Return existing contact points after the stepSimulation command. Optional arguments one or two object unique ids, that need to be involved in the contact. """
pass
def getDebugVisualizerCamera(*args, **kwargs): # real signature unknown
""" Get information about the 3D visualizer camera, such as width, height, view matrix, projection matrix etc. """
pass
def getDifferenceQuaternion(quaternionStart:list[float],quaternionEnd:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Compute the quaternion difference from two quaternions. """
pass
def getDynamicsInfo(bodyUniqueId:int,linkIndex:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get dynamics information such as mass, lateral friction coefficient. """
pass
def getEulerFromQuaternion(quaternion:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Convert quaternion [x,y,z,w] to Euler [roll, pitch, yaw] as in URDF/SDF convention """
pass
def getJointInfo(bodyUniqueId:int,jointIndex:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the name and type info for a joint on a body. """
pass
def getJointState(bodyUniqueId:int,jointIndex:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the state (position, velocity etc) for a joint on a body. """
pass
def getJointStateMultiDof(bodyUniqueId:int,jointIndex:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the state (position, velocity etc) for a joint on a body. (supports planar and spherical joints) """
pass
def getJointStates(bodyUniqueId:int,jointIndices:list[int],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the state (position, velocity etc) for multiple joints on a body. """
pass
def getJointStatesMultiDof(bodyUniqueId:int,jointIndex:list[int],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the states (position, velocity etc) for multiple joint on a body. (supports planar and spherical joints) """
pass
def getKeyboardEvents(physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get keyboard events, keycode and state (KEY_IS_DOWN, KEY_WAS_TRIGGERED, KEY_WAS_RELEASED) """
pass
def getLinkState(bodyUniqueId:int, linkIndex:int, computeLinkVelocity:int=0, computeForwardKinematics:int=0, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
position_linkcom_world, world_rotation_linkcom,
position_linkcom_frame, frame_rotation_linkcom,
position_frame_world, world_rotation_frame,
linearVelocity_linkcom_world, angularVelocity_linkcom_world
= getLinkState(bodyUniqueId, linkIndex, computeLinkVelocity=0,
computeForwardKinematics=0, physicsClientId=0)
Provides extra information such as the Cartesian world coordinates center of mass (COM) of the link, relative to the world reference frame.
"""
pass
def getLinkStates(bodyUniqueId:int, linkIndices:list[int], computeLinkVelocity:int=0, computeForwardKinematics:int=0, physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" same as getLinkState except it takes a list of linkIndices """
pass
def getMatrixFromQuaternion(quaternion:list[float],*args, **kwargs): # real signature unknown
""" Compute the 3x3 matrix from a quaternion, as a list of 9 values (row-major) """
pass
def getMeshData(bodyUniqueId:int,linkIndex:int,collisionShapeIndex:int,flags:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get mesh data. Returns vertices etc from the mesh. """
pass
def getMouseEvents(physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get mouse events, event type and button state (KEY_IS_DOWN, KEY_WAS_TRIGGERED, KEY_WAS_RELEASED) """
pass
def getNumBodies(*args, **kwargs): # real signature unknown
""" Get the number of bodies in the simulation. """
pass
def getNumConstraints(*args, **kwargs): # real signature unknown
""" Get the number of user-created constraints in the simulation. """
pass
def getNumJoints(bodyUniqueId:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get the number of joints for an object. """
pass
def getNumUserData(bodyUniqueId_physicsClientId=0): # real signature unknown; restored from __doc__
"""
getNumUserData(bodyUniqueId physicsClientId=0)
Retrieves the number of user data entries in a body.
"""
pass
def getOverlappingObjects(aabbMin:list[float],aabbMax:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Return all the objects that have overlap with a given axis-aligned bounding box volume (AABB).Input are two vectors defining the AABB in world space [min_x,min_y,min_z],[max_x,max_y,max_z]. """
pass
def getPhysicsEngineParameters(*args, **kwargs): # real signature unknown
""" Get the current values of internal physics engine parameters """
pass
def getQuaternionFromAxisAngle(*args, **kwargs): # real signature unknown
""" Compute the quaternion from axis and angle representation. """
pass
def getQuaternionFromEuler(eulerAngle:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Convert Euler [roll, pitch, yaw] as in URDF/SDF convention, to quaternion [x,y,z,w] """
pass
def getQuaternionSlerp(*args, **kwargs): # real signature unknown
""" Compute the spherical interpolation given a start and end quaternion and an interpolation value in range [0..1] """
pass
def getUserData(userDataId, physicsClientId=0): # real signature unknown; restored from __doc__
"""
getUserData(userDataId, physicsClientId=0)
Returns the user data value.
"""
pass
def getUserDataId(bodyUniqueId, key, linkIndex=-1, visualShapeIndex=-1, physicsClientId=0): # real signature unknown; restored from __doc__
"""
getUserDataId(bodyUniqueId, key, linkIndex=-1, visualShapeIndex=-1, physicsClientId=0)
Retrieves the userDataId given the key and optionally link and visual shape index.
"""
pass
def getUserDataInfo(bodyUniqueId, userDataIndex, physicsClientId=0): # real signature unknown; restored from __doc__
"""
getUserDataInfo(bodyUniqueId, userDataIndex, physicsClientId=0)
Retrieves the key and the identifier of a user data as (userDataId, key, bodyUniqueId, linkIndex, visualShapeIndex).
"""
pass
def getVisualShapeData(objectUniqueId:int,flags:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Return the visual shape information for one object. """
pass
def getVREvents(deviceTypeFilter:int,allAnalogAxes:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Get Virtual Reality events, for example to track VR controllers position/buttons """
pass
def invertTransform(position:list[float],orientation:list[float],*args, **kwargs): # real signature unknown
""" Invert a transform, provided as [position], [quaternion]. """
pass
def isConnected(physicsClientId=0): # real signature unknown; restored from __doc__
"""
isConnected(physicsClientId=0)
Return if a given client id is connected.
"""
pass
def isNumpyEnabled(*args, **kwargs): # real signature unknown
""" return True if PyBullet was compiled with NUMPY support. This makes the getCameraImage API faster """
pass
def loadBullet(*args, **kwargs): # real signature unknown
""" Load a world from a .bullet file. """
pass
def loadMJCF(fileName:str,useMaximalCoordinates:int,globalScaling:float,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Load multibodies from an MJCF file. """
pass
def loadPlugin(pluginPath:str,postFix:str,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Load a plugin, could implement custom commands etc. """
pass
def loadSDF(fileName:str,useMaximalCoordinates:int,globalScaling:float,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Load multibodies from an SDF file. """
pass
def loadSoftBody(fileName:str,basePosition:list[float],baseOrientation:list[float],scale:float,mass:float,collisionMargin,useMassSpring:bool,useBendingSprings:bool,useNeoHookean:bool,springElasticStiffness:float,springDampingStiffness:float,springDampingAllDirections:float,springBendingStiffness:float,NeoHookeanMu:float,NeoHookeanLambda:float,NeoHookeanDamping:float,frictionCoeff:float,useFaceContact:bool,useSelfCollision:bool,repulsionStiffness:float,*args, **kwargs): # real signature unknown
""" Load a softbody from an obj file. """
pass
def loadTexture(*args, **kwargs): # real signature unknown
""" Load texture file. """
pass
def loadURDF(fileName:str, basePosition:list[float]=None, baseOrientation:list[float]=None, useMaximalCoordinates:int=0, useFixedBase:bool=0, flags:int=0, globalScaling:float=1.0, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
bodyUniqueId = loadURDF(fileName, basePosition=[0.,0.,0.], baseOrientation=[0.,0.,0.,1.], useMaximalCoordinates=0, useFixedBase=0, flags=0, globalScaling=1.0, physicsClientId=0)
Create a multibody by loading a URDF file.
"""
pass
def multiplyTransforms(positionA:list[float],orientationA:list[float],positionB:list[float],orientationB:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Multiply two transform, provided as [position], [quaternion]. """
pass
def performCollisionDetection(physicsClientId=0): # real signature unknown; restored from __doc__
"""
performCollisionDetection(physicsClientId=0)
Update AABBs, compute overlapping pairs and contact points. stepSimulation also includes this already.
"""
pass
def rayTest(rayFromPosition:list[float],rayToPosition:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Cast a ray and return the first object hit, if any. Takes two arguments (from_position [x,y,z] and to_position [x,y,z] in Cartesian world coordinates """
pass
def rayTestBatch(rayFromPosition:list[float],rayToPosition:list[float],parentObjectUniqueId:int,parentLinkIndex:int,numThreads:int,reportHitNumber:int,collisionFilterMask:int,fractionEpsilon:float,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Cast a batch of rays and return the result for each of the rays (first object hit, if any. or -1) Takes two required arguments (list of from_positions [x,y,z] and a list of to_positions [x,y,z] in Cartesian world coordinates) and one optional argument numThreads to specify the number of threads to use to compute the ray intersections for the batch. Specify 0 to let Bullet decide, 1 (default) for single core execution, 2 or more to select the number of threads to use. """
pass
def readUserDebugParameter(itemUniqueId:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Read the current value of a user debug parameter, given the user debug item unique id. """
pass
def removeAllUserDebugItems(*args, **kwargs): # real signature unknown
""" remove all user debug draw items """
pass
def removeAllUserParameters(physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" remove all user debug parameters (sliders, buttons) """
pass
def removeBody(bodyUniqueId:int,*args, **kwargs): # real signature unknown
""" Remove a body by its body unique id. """
pass
def removeCollisionShape(*args, **kwargs): # real signature unknown
""" Remove a collision shape. Only useful when the collision shape is not used in a body (to perform a getClosestPoint query). """
pass
def removeConstraint(userConstraintUniqueId:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Remove a constraint using its unique id. """
pass
def removeState(*args, **kwargs): # real signature unknown
""" Remove a state created using saveState by its state unique id. """
pass
def removeUserData(userDataId, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
removeUserData(userDataId, physicsClientId=0)
Removes a user data entry.
"""
pass
def removeUserDebugItem(itemUniqueId:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" remove a user debug draw item, giving its unique id """
pass
def renderImage(*args, **kwargs): # real signature unknown
""" obsolete, please use getCameraImage and getViewProjectionMatrices instead """
pass
def resetBasePositionAndOrientation(bodyUniqueId:int,posObj:list[float],ornObj:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Reset the world position and orientation of the base of the object instantaneously, not through physics simulation. (x,y,z) position vector and (x,y,z,w) quaternion orientation. """
pass
def resetBaseVelocity(objectUniqueId:int,linearVelocity:list[float],angularVelocity:list[float],physicsClientId:int,*args, **kwargs): # real signature unknown
""" Reset the linear and/or angular velocity of the base of the object in world space coordinates. linearVelocity (x,y,z) and angularVelocity (x,y,z). """
pass
def resetDebugVisualizerCamera(cameraDistance:float,cameraYaw:float,cameraPitch:float,cameraTargetPosition:list[float],physicsClientId:int=0) -> None: # real signature unknown
""" For the 3D OpenGL Visualizer, set the camera distance, yaw, pitch and target position.
Example: pybullet.resetDebugVisualizerCamera( cameraDistance=3, cameraYaw=30,cameraPitch=52, cameraTargetPosition=[0,0,0])"""
pass
def resetJointState(objectUniqueId:int, jointIndex:int, targetValue:float, targetVelocity:int=0, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
resetJointState(objectUniqueId, jointIndex, targetValue, targetVelocity=0, physicsClientId=0)
Reset the state (position, velocity etc) for a joint on a body instantaneously, not through physics simulation.
"""
pass
def resetJointStateMultiDof(objectUniqueId:int, jointIndex:int, targetValue:int, targetVelocity=0, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
resetJointStateMultiDof(objectUniqueId, jointIndex, targetValue, targetVelocity=0, physicsClientId=0)
Reset the state (position, velocity etc) for a joint on a body instantaneously, not through physics simulation.
"""
pass
def resetJointStatesMultiDof(objectUniqueId:int, jointIndices:list[int], targetValues:list[int], targetVelocities:list[int]=0, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
resetJointStatesMultiDof(objectUniqueId, jointIndices, targetValues, targetVelocities=0, physicsClientId=0)
Reset the states (position, velocity etc) for multiple joints on a body instantaneously, not through physics simulation.
"""
pass
def resetMeshData(*args, **kwargs): # real signature unknown
""" Reset mesh data. Only implemented for deformable bodies. """
pass
def resetSimulation(flags:int,physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
resetSimulation(physicsClientId=0)
Reset the simulation: remove all objects and start from an empty world.
"""
pass
def resetVisualShapeData(*args, **kwargs): # real signature unknown
""" Obsolete method, kept for backward compatibility, use changeVisualShapeData instead. """
pass
def restoreState(fileName:str,stateId:int,clientServerId:int,*args, **kwargs): # real signature unknown
""" Restore the full state of an existing world. """
pass
def rotateVector(*args, **kwargs): # real signature unknown
""" Rotate a vector using a quaternion. """
pass
def saveBullet(fileName:str,stateId:int,clientServerId:int,*args, **kwargs): # real signature unknown
""" Save the full state of the world to a .bullet file. """
pass
def saveState(fileName:str,stateId:int,clientServerId:int,*args, **kwargs): # real signature unknown
""" Save the full state of the world to memory. """
pass
def saveWorld(filename:str,clientServerId:int): # real signature unknown; restored from __doc__
""" Save a approximate Python file to reproduce the current state of the world: saveWorld(filename). (very preliminary and approximately) """
pass
def setAdditionalSearchPath(*args, **kwargs): # real signature unknown
""" Set an additional search path, used to load URDF/SDF files. """
pass
def setCollisionFilterGroupMask(bodyUniqueId:int,linkIndexA:int,collisionFilterGroup:int,collisionFilterMask:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Set the collision filter group and the mask for a body. """
pass
def setCollisionFilterPair(bodyUniqueIdA:int,bodyUniqueIdB:int,linkIndexA:int,linkIndexB:int,enableCollision:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Enable or disable collision detection between two object links.Input are two object unique ids and two link indices and an enumto enable or disable collisions. """
pass
def setDebugObjectColor(objectUniqueId:int,linkIndex:int,objectDebugColorRGB:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Override the wireframe debug drawing color for a particular object unique id / link index.If you ommit the color, the custom color will be removed. """
pass
def setDefaultContactERP(defaultContactERP, physicsClientId=0): # real signature unknown; restored from __doc__
"""
setDefaultContactERP(defaultContactERP, physicsClientId=0)
Set the amount of contact penetration Error Recovery Paramater (ERP) in each time step. This is an tuning parameter to control resting contact stability. This value depends on the time step.
"""
pass
def setGravity(gravX:float, gravY:float, gravZ:float, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
setGravity(gravX, gravY, gravZ, physicsClientId=0)
Set the gravity acceleration (x,y,z).
"""
pass
def setInternalSimFlags(*args, **kwargs): # real signature unknown
""" This is for experimental purposes, use at own risk, magic may or not happen """
pass
def setJointMotorControl(this_is_obsolete_use_motorctrl_2,*args, **kwargs): # real signature unknown
""" This (obsolete) method cannot select non-zero physicsClientId, use setJointMotorControl2 instead.Set a single joint motor control mode and desired target value. There is no immediate state change, stepSimulation will process the motors. """
pass
def setJointMotorControl2(bodyIndex:int,jointIndex:int,controlMode:int,targetPosition:float,targetVelocity:float,force:float,positionGain:float,velocityGain:float,maxVelocity:float,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Set a single joint motor control mode and desired target value. There is no immediate state change, stepSimulation will process the motors. """
pass
def setJointMotorControlArray(bodyIndex:int,jointIndices:list[int],controlMode:int,targetPositions:list[float],targetVelocities:list[float],forces:list[float],positionGains:list[float],velocityGains:list[float],maxVelocities:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Set an array of motors control mode and desired target value. There is no immediate state change, stepSimulation will process the motors.This is similar to setJointMotorControl2, with jointIndices as a list, and optional targetPositions, targetVelocities, forces, kds and kps as listsUsing setJointMotorControlArray has the benefit of lower calling overhead. """
pass
def setJointMotorControlMultiDof(bodyUniqueId:int,jointIndex:int,controlMode:int,targetPosition:list[float],targetVelocity:list[float],force:list[float],positionGain:float,velocityGain:float,maxVelocity:float,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Set a single joint motor control mode and desired target value. There is no immediate state change, stepSimulation will process the motors.This method sets multi-degree-of-freedom motor such as the spherical joint motor. """
pass
def setJointMotorControlMultiDofArray(bodyUniqueId:int,jointIndices:list[int],controlMode:int,targetPositions:list[float],targetVelocities:list[float],forces:list[float],positionGains:list[float],velocityGains:list[float],maxVelocities:list[float],physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Set control mode and desired target values for multiple motors. There is no immediate state change, stepSimulation will process the motors.This method sets multi-degree-of-freedom motor such as the spherical joint motor. """
pass
def setPhysicsEngineParameter(fixedTimeStep:float,numSolverIterations:int,useSplitImpulse:int,splitImpulsePenetrationThreshold:float,numSubSteps:int,collisionFilterMode:int,contactBreakingThreshold:float,maxNumCmdPer1ms:int,enableFileCaching:int,restitutionVelocityThreshold:float,erp:float,contactERP:float,frictionERP:float,enableConeFriction:int,deterministicOverlappingPairs:int,allowedCcdPenetration:float,jointFeedbackMode:int,solverResidualThreshold:float,contactSlop:float,enableSAT:int,constraintSolverType:int,globalCFM:float,minimumSolverIslandSize:int,reportSolverAnalytics:int,warmStartingFactor:float,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Set some internal physics engine parameter, such as cfm or erp etc. """
pass
def setRealTimeSimulation(enableRealTimeSimulation:int, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
setRealTimeSimulation(enableRealTimeSimulation, physicsClientId=0)
Enable or disable real time simulation (using the real time clock, RTC) in the physics server. Expects one integer argument, 0 or 1
"""
pass
def setTimeOut(*args, **kwargs): # real signature unknown
""" Set the timeOut in seconds, used for most of the API calls. """
pass
def setTimeStep(timestep:float, physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
setTimeStep(timestep, physicsClientId=0)
Set the amount of time to proceed at each call to stepSimulation. (unit is seconds, typically range is 0.01 or 0.001)
"""
pass
def setVRCameraState(rootPosition:list[float],rootOrientation:list[float],trackObject:list[float],trackObjectFlag:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Set properties of the VR Camera such as its root transform for teleporting or to track objects (camera inside a vehicle for example). """
pass
def startStateLogging(loggingType:int,fileName:str,objectUniqueIds:list[int],maxLogDof:int,bodyUniqueIdA:int,bodyUniqueIdB:int,linkIndexA:int,linkIndexB:int,deviceTypeFilter:int,logFlags:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Start logging of state, such as robot base position, orientation, joint positions etc. Specify loggingType (STATE_LOGGING_MINITAUR, STATE_LOGGING_GENERIC_ROBOT, STATE_LOGGING_VR_CONTROLLERS, STATE_LOGGING_CONTACT_POINTS, etc), fileName, optional objectUniqueId, maxLogDof, bodyUniqueIdA, bodyUniqueIdB, linkIndexA, linkIndexB. Function returns int loggingUniqueId """
pass
def stepSimulation(physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
stepSimulation(physicsClientId=0)
Step the simulation using forward dynamics.
"""
pass
def stopStateLogging(*args, **kwargs): # real signature unknown
""" Stop logging of robot state, given a loggingUniqueId. """
pass
def submitProfileTiming(*args, **kwargs): # real signature unknown
""" Add a custom profile timing that will be visible in performance profile recordings on the physics server.On the physics server (in GUI and VR mode) you can press 'p' to start and/or stop profile recordings """
pass
def syncBodyInfo(physicsClientId=0): # real signature unknown; restored from __doc__
"""
syncBodyInfo(physicsClientId=0)
Update body and constraint/joint information, in case other clients made changes.
"""
pass
def syncUserData(bodyUniqueIds=list[int], physicsClientId:int=0): # real signature unknown; restored from __doc__
"""
syncUserData(bodyUniqueIds=[], physicsClientId=0)
Update user data, in case other clients made changes.
"""
pass
def unloadPlugin(*args, **kwargs): # real signature unknown
""" Unload a plugin, given the pluginUniqueId. """
pass
def unsupportedChangeScaling(*args, **kwargs): # real signature unknown
""" Change the scaling of the base of an object.Warning: unsupported rudimentary feature that has many limitations. """
pass
def vhacd(fileNameIn:str,fileNameOut:str,fileNameLog:str,concavity:float,alpha:float,beta:float,gamma:float,minVolumePerCH:float,resolution:int,maxNumVerticesPerCH:int,depth:int,planeDownsampling:int,convexhullDownsampling:int,pca:int,mode:int,convexhullApproximation:int,physicsClientId:int=0,*args, **kwargs): # real signature unknown
""" Compute volume hierarchical convex decomposition of an OBJ file. """
pass
# classes
class error(Exception):
# no doc
def __init__(self, *args, **kwargs): # real signature unknown
pass
__weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""list of weak references to the object (if defined)"""
# variables with complex values
__loader__ = None # (!) real value is '<_frozen_importlib_external.ExtensionFileLoader object at 0x000001D8BC7CE2E0>'
__spec__ = None # (!) real value is "ModuleSpec(name='pybullet', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000001D8BC7CE2E0>, origin='C:\\\\Users\\\\Rohit\\\\PycharmProjects\\\\Test_Project\\\\venv\\\\lib\\\\site-packages\\\\pybullet.cp38-win_amd64.pyd')"