File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ namespace pinocchio
4040#else
4141 false ;
4242#endif
43+
44+ bp::scope ().attr (" WITH_SDFORMAT" ) =
45+ #ifdef PINOCCHIO_WITH_SDFORMAT
46+ true ;
47+ #else
48+ false ;
49+ #endif
4350 }
4451
4552 } // 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):
5757 )
5858 self .assertEqual (robot .model .names [1 ], name_ )
5959
60+ @unittest .skipUnless (pin .WITH_SDFORMAT , "Needs SDFORMAT" )
6061 def test_sdf_with_root_joint (self ):
6162 model_path = os .path .abspath (
6263 os .path .join (self .current_file , "../../models/simple_humanoid.sdf" )
6364 )
6465 robot = pin .RobotWrapper .BuildFromSDF (model_path , [], pin .JointModelFreeFlyer ())
6566 self .assertEqual (robot .model .names [1 ], "root_joint" )
6667
68+ @unittest .skipUnless (pin .WITH_SDFORMAT , "Needs SDFORMAT" )
6769 def test_sdf_with_root_joint_and_root_joint_name (self ):
6870 model_path = os .path .abspath (
6971 os .path .join (self .current_file , "../../models/simple_humanoid.sdf" )
You can’t perform that action at this time.
0 commit comments