s-nakaoka / choreonoid

An integrated graphical robotics application framework
http://choreonoid.org
Other
94 stars 58 forks source link

fix compilation of physx plugin #223

Closed ompugao closed 4 years ago

MiraiHattori commented 4 years ago

こちらのコミットは9/2のもののようですが, 9/16にBodyクラスのインスタンスのコピーコンストラクタがdeleteになった https://github.com/s-nakaoka/choreonoid/commit/d9a9384e6101c6c09e587e9258aa668051556ac6 ため,コンパイルが通らなくなっていそうです. 該当の行は https://github.com/s-nakaoka/choreonoid/blob/master/src/PhysXPlugin/PhysXSimulatorItem.cpp#L712 で,ここを

-    : SimulationBody(new Body(orgBody))
+    : SimulationBody(orgBody.clone())

としたら一旦はコンパイルが通りました.