@@ -19,8 +19,6 @@ namespace constraint {
1919namespace dart {
2020namespace detail {
2121
22- using ::dart::common::make_unique;
23-
2422// ==============================================================================
2523using JointStateSpaceTypeList
2624 = common::type_list<const statespace::dart::R0Joint,
@@ -69,15 +67,15 @@ std::unique_ptr<OutputConstraint> createBoxConstraint(
6967
7068 if (properties.isPositionLimited ())
7169 {
72- return make_unique<uniform::RBoxConstraint<N>>(
70+ return ::dart::common:: make_unique<uniform::RBoxConstraint<N>>(
7371 std::move (_stateSpace),
7472 std::move (_rng),
7573 properties.getPositionLowerLimits (),
7674 properties.getPositionUpperLimits ());
7775 }
7876 else
7977 {
80- return make_unique<Satisfied>(std::move (_stateSpace));
78+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
8179 }
8280}
8381
@@ -135,7 +133,7 @@ struct createSampleableFor_impl<const statespace::dart::RJoint<N>>
135133
136134 if (properties.isPositionLimited ())
137135 {
138- return make_unique<uniform::RBoxConstraint<N>>(
136+ return ::dart::common:: make_unique<uniform::RBoxConstraint<N>>(
139137 std::move (_stateSpace),
140138 std::move (_rng),
141139 properties.getPositionLowerLimits (),
@@ -160,7 +158,7 @@ struct createDifferentiableFor_impl<const statespace::dart::SO2Joint>
160158 if (_stateSpace->getProperties ().isPositionLimited ())
161159 throw std::invalid_argument (" SO2Joint must not have limits." );
162160
163- return make_unique<Satisfied>(std::move (_stateSpace));
161+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
164162 }
165163};
166164
@@ -176,7 +174,7 @@ struct createTestableFor_impl<const statespace::dart::SO2Joint>
176174 if (_stateSpace->getProperties ().isPositionLimited ())
177175 throw std::invalid_argument (" SO2Joint must not have limits." );
178176
179- return make_unique<Satisfied>(std::move (_stateSpace));
177+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
180178 }
181179};
182180
@@ -192,7 +190,7 @@ struct createProjectableFor_impl<const statespace::dart::SO2Joint>
192190 if (_stateSpace->getProperties ().isPositionLimited ())
193191 throw std::invalid_argument (" SO2Joint must not have limits." );
194192
195- return make_unique<Satisfied>(std::move (_stateSpace));
193+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
196194 }
197195};
198196
@@ -209,7 +207,7 @@ struct createSampleableFor_impl<const statespace::dart::SO2Joint>
209207 if (_stateSpace->getProperties ().isPositionLimited ())
210208 throw std::invalid_argument (" SO2Joint must not have limits." );
211209
212- return make_unique<uniform::SO2UniformSampler>(
210+ return ::dart::common:: make_unique<uniform::SO2UniformSampler>(
213211 std::move (_stateSpace), std::move (_rng));
214212 }
215213};
@@ -226,7 +224,7 @@ struct createDifferentiableFor_impl<const statespace::dart::SO3Joint>
226224 if (_stateSpace->getProperties ().isPositionLimited ())
227225 throw std::invalid_argument (" SO3Joint must not have limits." );
228226
229- return make_unique<Satisfied>(std::move (_stateSpace));
227+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
230228 }
231229};
232230
@@ -242,7 +240,7 @@ struct createTestableFor_impl<const statespace::dart::SO3Joint>
242240 if (_stateSpace->getProperties ().isPositionLimited ())
243241 throw std::invalid_argument (" SO3Joint must not have limits." );
244242
245- return make_unique<Satisfied>(std::move (_stateSpace));
243+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
246244 }
247245};
248246
@@ -258,7 +256,7 @@ struct createProjectableFor_impl<const statespace::dart::SO3Joint>
258256 if (_stateSpace->getProperties ().isPositionLimited ())
259257 throw std::invalid_argument (" SO3Joint must not have limits." );
260258
261- return make_unique<Satisfied>(std::move (_stateSpace));
259+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
262260 }
263261};
264262
@@ -275,7 +273,7 @@ struct createSampleableFor_impl<const statespace::dart::SO3Joint>
275273 if (_stateSpace->getProperties ().isPositionLimited ())
276274 throw std::invalid_argument (" SO3Joint must not have limits." );
277275
278- return make_unique<uniform::SO3UniformSampler>(
276+ return ::dart::common:: make_unique<uniform::SO3UniformSampler>(
279277 std::move (_stateSpace), std::move (_rng));
280278 }
281279};
@@ -290,15 +288,15 @@ std::unique_ptr<OutputConstraint> createBoxConstraint(
290288
291289 if (properties.isPositionLimited ())
292290 {
293- return make_unique<uniform::SE2BoxConstraint>(
291+ return ::dart::common:: make_unique<uniform::SE2BoxConstraint>(
294292 std::move (_stateSpace),
295293 std::move (_rng),
296294 properties.getPositionLowerLimits ().tail <2 >(),
297295 properties.getPositionUpperLimits ().tail <2 >());
298296 }
299297 else
300298 {
301- return make_unique<Satisfied>(std::move (_stateSpace));
299+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
302300 }
303301}
304302
@@ -381,7 +379,7 @@ struct createSampleableFor_impl<const statespace::dart::SE2Joint>
381379 }
382380 else
383381 {
384- return make_unique<uniform::SE2BoxConstraint>(
382+ return ::dart::common:: make_unique<uniform::SE2BoxConstraint>(
385383 std::move (stateSpace),
386384 std::move (rng),
387385 properties.getPositionLowerLimits ().tail <2 >(),
@@ -451,7 +449,7 @@ std::unique_ptr<OutputConstraint> createBoxConstraint(
451449 std::shared_ptr<const statespace::dart::WeldJoint> _stateSpace,
452450 std::unique_ptr<common::RNG> /* _rng*/ )
453451{
454- return make_unique<Satisfied>(std::move (_stateSpace));
452+ return ::dart::common:: make_unique<Satisfied>(std::move (_stateSpace));
455453}
456454
457455// ==============================================================================
@@ -506,7 +504,7 @@ struct createSampleableFor_impl<const statespace::dart::WeldJoint>
506504 // A WeldJoint has zero DOFs
507505 Eigen::VectorXd positions = Eigen::Matrix<double , 0 , 1 >();
508506
509- return make_unique<uniform::R0ConstantSampler>(
507+ return ::dart::common:: make_unique<uniform::R0ConstantSampler>(
510508 std::move (_stateSpace), positions);
511509 }
512510};
0 commit comments