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:
@@ -29,7 +29,12 @@ struct ZipFileIO : public CommonFileIOInterface
|
||||
|
||||
virtual ~ZipFileIO()
|
||||
{
|
||||
for (int i=0;i<B3_ZIP_FILEIO_MAX_FILES;i++)
|
||||
{
|
||||
fileClose(i);
|
||||
}
|
||||
}
|
||||
|
||||
virtual int fileOpen(const char* fileName, const char* mode)
|
||||
{
|
||||
//search a free slot
|
||||
@@ -88,6 +93,9 @@ struct ZipFileIO : public CommonFileIOInterface
|
||||
slot=-1;
|
||||
}
|
||||
}
|
||||
} else
|
||||
{
|
||||
slot=-1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user