Allow to load a urdf file in the testplugin.cpp, as first quick test, example pybullet script:
import pybullet as p
p.connect(p.GUI)
pluginUid = p.loadPlugin("E:/develop/bullet3/bin/pybullet_testplugin_vs2010_x64_debug.dll")
commandUid = 0
argument = "plane.urdf"
p.executePluginCommand(pluginUid,commandUid,argument)
p.unloadPlugin(pluginUid)
This commit is contained in:
@@ -1516,8 +1516,8 @@ struct PhysicsServerCommandProcessorInternalData
|
||||
|
||||
b3HashMap<b3HashString, char*> m_profileEvents;
|
||||
|
||||
PhysicsServerCommandProcessorInternalData()
|
||||
:
|
||||
PhysicsServerCommandProcessorInternalData(PhysicsCommandProcessorInterface* proc)
|
||||
:m_pluginManager(proc),
|
||||
m_allowRealTimeSimulation(false),
|
||||
m_commandLogger(0),
|
||||
m_logPlayback(0),
|
||||
@@ -1647,8 +1647,9 @@ void PhysicsServerCommandProcessor::setGuiHelper(struct GUIHelperInterface* guiH
|
||||
|
||||
|
||||
PhysicsServerCommandProcessor::PhysicsServerCommandProcessor()
|
||||
:m_data(0)
|
||||
{
|
||||
m_data = new PhysicsServerCommandProcessorInternalData();
|
||||
m_data = new PhysicsServerCommandProcessorInternalData(this);
|
||||
|
||||
createEmptyDynamicsWorld();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user