File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ namespace pinocchio
40
40
#else
41
41
false ;
42
42
#endif
43
+
44
+ bp::scope ().attr (" WITH_SDFORMAT" ) =
45
+ #ifdef PINOCCHIO_WITH_SDFORMAT
46
+ true ;
47
+ #else
48
+ false ;
49
+ #endif
43
50
}
44
51
45
52
} // namespace python
Original file line number Diff line number Diff line change @@ -57,13 +57,15 @@ def test_urdf_with_root_joint_and_root_joint_name(self):
57
57
)
58
58
self .assertEqual (robot .model .names [1 ], name_ )
59
59
60
+ @unittest .skipUnless (pin .WITH_SDFORMAT , "Needs SDFORMAT" )
60
61
def test_sdf_with_root_joint (self ):
61
62
model_path = os .path .abspath (
62
63
os .path .join (self .current_file , "../../models/simple_humanoid.sdf" )
63
64
)
64
65
robot = pin .RobotWrapper .BuildFromSDF (model_path , [], pin .JointModelFreeFlyer ())
65
66
self .assertEqual (robot .model .names [1 ], "root_joint" )
66
67
68
+ @unittest .skipUnless (pin .WITH_SDFORMAT , "Needs SDFORMAT" )
67
69
def test_sdf_with_root_joint_and_root_joint_name (self ):
68
70
model_path = os .path .abspath (
69
71
os .path .join (self .current_file , "../../models/simple_humanoid.sdf" )
You can’t perform that action at this time.
0 commit comments