state 2 of FileIO plugin: adding/removing FileIO types, search through all registered FileIO types.
(not enabled by default yet)
Example:
fileIO = p.loadPlugin("fileIOPlugin")
print("fileIO=",fileIO)
p.executePluginCommand(fileIO,"e:/develop/bullet3/data/plane.zip", [p.AddFileIOAction,p.ZipFileIO])
p.executePluginCommand(fileIO,"e:/develop/bullet3/data/test2.zip", [p.AddFileIOAction,p.ZipFileIO])
planeId = p.loadURDF("plane.urdf")
duckId = p.loadURDF("duck_vhacd.urdf",[0,0,1])
This commit is contained in:
@@ -9911,6 +9911,13 @@ initpybullet(void)
|
||||
PyModule_AddIntConstant(m, "STATE_LOG_JOINT_USER_TORQUES", STATE_LOG_JOINT_USER_TORQUES);
|
||||
PyModule_AddIntConstant(m, "STATE_LOG_JOINT_TORQUES", STATE_LOG_JOINT_USER_TORQUES + STATE_LOG_JOINT_MOTOR_TORQUES);
|
||||
|
||||
PyModule_AddIntConstant(m, "AddFileIOAction", eAddFileIOAction);
|
||||
PyModule_AddIntConstant(m, "RemoveFileIOAction", eRemoveFileIOAction);
|
||||
|
||||
PyModule_AddIntConstant(m, "PosixFileIO", ePosixFileIO );
|
||||
PyModule_AddIntConstant(m, "ZipFileIO", eZipFileIO );
|
||||
PyModule_AddIntConstant(m, "CNSFileIO", eCNSFileIO );
|
||||
|
||||
SpamError = PyErr_NewException("pybullet.error", NULL, NULL);
|
||||
Py_INCREF(SpamError);
|
||||
PyModule_AddObject(m, "error", SpamError);
|
||||
|
||||
Reference in New Issue
Block a user