@@ -82,6 +82,7 @@ TEST_F(UsdStageFixture, Link)
82
82
std::string groundPlanePath = worldPath + " /" + " ground_plane" ;
83
83
auto groundPlane = this ->stage ->GetPrimAtPath (pxr::SdfPath (groundPlanePath));
84
84
ASSERT_TRUE (groundPlane);
85
+ EXPECT_FALSE (groundPlane.HasAPI <pxr::UsdPhysicsRigidBodyAPI>());
85
86
sdf::usd::testing::CheckPrimPose (groundPlane,
86
87
ignition::math::Pose3d (
87
88
ignition::math::Vector3d (0 , 0 , -0.125 ),
@@ -98,6 +99,7 @@ TEST_F(UsdStageFixture, Link)
98
99
std::string boxPath = worldPath + " /" + " box" ;
99
100
auto box = this ->stage ->GetPrimAtPath (pxr::SdfPath (boxPath));
100
101
ASSERT_TRUE (box);
102
+ EXPECT_TRUE (box.HasAPI <pxr::UsdPhysicsRigidBodyAPI>());
101
103
sdf::usd::testing::CheckPrimPose (box,
102
104
ignition::math::Pose3d (
103
105
ignition::math::Vector3d (0 , 0 , 2.5 ),
@@ -116,6 +118,7 @@ TEST_F(UsdStageFixture, Link)
116
118
std::string cylinderPath = worldPath + " /" + " cylinder" ;
117
119
auto cylinder = this ->stage ->GetPrimAtPath (pxr::SdfPath (cylinderPath));
118
120
ASSERT_TRUE (cylinder);
121
+ EXPECT_TRUE (cylinder.HasAPI <pxr::UsdPhysicsRigidBodyAPI>());
119
122
sdf::usd::testing::CheckPrimPose (cylinder,
120
123
ignition::math::Pose3d (
121
124
ignition::math::Vector3d (2 , 0 , 2.5 ),
@@ -135,6 +138,7 @@ TEST_F(UsdStageFixture, Link)
135
138
std::string spherePath = worldPath + " /" + " sphere" ;
136
139
auto sphere = this ->stage ->GetPrimAtPath (pxr::SdfPath (spherePath));
137
140
ASSERT_TRUE (sphere);
141
+ EXPECT_TRUE (sphere.HasAPI <pxr::UsdPhysicsRigidBodyAPI>());
138
142
sdf::usd::testing::CheckPrimPose (sphere,
139
143
ignition::math::Pose3d (
140
144
ignition::math::Vector3d (4 , 0 , 2.5 ),
@@ -153,6 +157,7 @@ TEST_F(UsdStageFixture, Link)
153
157
std::string capsulePath = worldPath + " /" + " capsule" ;
154
158
auto capsule = this ->stage ->GetPrimAtPath (pxr::SdfPath (capsulePath));
155
159
ASSERT_TRUE (capsule);
160
+ EXPECT_TRUE (capsule.HasAPI <pxr::UsdPhysicsRigidBodyAPI>());
156
161
sdf::usd::testing::CheckPrimPose (capsule,
157
162
ignition::math::Pose3d (
158
163
ignition::math::Vector3d (6 , 0 , 2.5 ),
@@ -171,6 +176,7 @@ TEST_F(UsdStageFixture, Link)
171
176
std::string meshPath = worldPath + " /" + " mesh" ;
172
177
auto mesh = this ->stage ->GetPrimAtPath (pxr::SdfPath (meshPath));
173
178
ASSERT_TRUE (mesh);
179
+ EXPECT_TRUE (mesh.HasAPI <pxr::UsdPhysicsRigidBodyAPI>());
174
180
sdf::usd::testing::CheckPrimPose (mesh,
175
181
ignition::math::Pose3d (
176
182
ignition::math::Vector3d (8 , 0 , 2.5 ),
0 commit comments