use a fixed joint instead of crashing for unsupported joint types (planar, floating joint)
This commit is contained in:
1 parent
f090752cbb
commit
e6180ef98a
1 file changed
+6
@@ -362,8 +362,14 @@ void ConvertURDF2BulletInternal(
|
||||
|
||||
switch (jointType)
|
||||
{
|
||||
case URDFFloatingJoint:
|
||||
case URDFPlanarJoint:
|
||||
case URDFFixedJoint:
|
||||
{
|
||||
if ((jointType==URDFFloatingJoint)||(jointType==URDFPlanarJoint))
|
||||
{
|
||||
printf("Warning: joint unsupported, creating a fixed joint instead.");
|
||||
}
|
||||
if (createMultiBody)
|
||||
{
|
||||
//todo: adjust the center of mass transform and pivot axis properly
|
||||
|
||||
Reference in new issue
Block a user