File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -5481,18 +5481,16 @@ B3_SHARED_API b3SharedMemoryCommandHandle b3ProfileTimingCommandInit(b3PhysicsCl
5481
5481
b3Assert (command);
5482
5482
5483
5483
int len = name ? strlen (name) : 0 ;
5484
+ command->m_type = CMD_PROFILE_TIMING;
5484
5485
if (len > 0 && len < (MAX_FILENAME_LENGTH + 1 ))
5485
5486
{
5486
- command-> m_type = CMD_PROFILE_TIMING;
5487
+
5487
5488
strcpy (command->m_profile .m_name , name);
5488
5489
command->m_profile .m_name [len] = 0 ;
5489
5490
}
5490
5491
else
5491
5492
{
5492
- const char * invalid = " InvalidProfileTimingName" ;
5493
- int len = strlen (invalid);
5494
- strcpy (command->m_profile .m_name , invalid);
5495
- command->m_profile .m_name [len] = 0 ;
5493
+ command->m_profile .m_name [0 ] = 0 ;
5496
5494
}
5497
5495
command->m_profile .m_type = -1 ;
5498
5496
command->m_profile .m_durationInMicroSeconds = 0 ;
Original file line number Diff line number Diff line change @@ -2363,7 +2363,12 @@ struct ProgrammaticUrdfInterface : public URDFImporterInterface
2363
2363
jointType = URDFFixedJoint;
2364
2364
break ;
2365
2365
}
2366
- // case eSphericalType:
2366
+ case eSphericalType:
2367
+ {
2368
+ isValid = true ;
2369
+ jointType = URDFSphericalJoint;
2370
+ break ;
2371
+ }
2367
2372
// case ePlanarType:
2368
2373
// case eFixedType:
2369
2374
// case ePoint2PointType:
You can’t perform that action at this time.
0 commit comments