@@ -56,7 +56,7 @@ Vec3 OpenSim::ConstantCurvatureJoint::clamp(const SimTK::Vec3& q) {
56
56
" to unphysical behavior. Please adjust your model "
57
57
" or simulation to avoid this state." ,
58
58
pos (0 ), bound));
59
- OPENSIM_ASSERT_FRMOBJ (false );
59
+ OPENSIM_ASSERT (false );
60
60
pos (0 ) = bound;
61
61
}
62
62
if (pos (0 ) < -bound) {
@@ -67,7 +67,7 @@ Vec3 OpenSim::ConstantCurvatureJoint::clamp(const SimTK::Vec3& q) {
67
67
" to unphysical behavior. Please adjust your model "
68
68
" or simulation to avoid this state." ,
69
69
pos (0 ), -bound));
70
- OPENSIM_ASSERT_FRMOBJ (false );
70
+ OPENSIM_ASSERT (false );
71
71
pos (0 ) = -bound;
72
72
}
73
73
if (pos (1 ) > bound) {
@@ -78,7 +78,7 @@ Vec3 OpenSim::ConstantCurvatureJoint::clamp(const SimTK::Vec3& q) {
78
78
" to unphysical behavior. Please adjust your model "
79
79
" or simulation to avoid this state." ,
80
80
pos (1 ), bound));
81
- OPENSIM_ASSERT_FRMOBJ (false );
81
+ OPENSIM_ASSERT (false );
82
82
pos (1 ) = bound;
83
83
}
84
84
if (pos (1 ) < -bound) {
@@ -89,7 +89,7 @@ Vec3 OpenSim::ConstantCurvatureJoint::clamp(const SimTK::Vec3& q) {
89
89
" to unphysical behavior. Please adjust your model "
90
90
" or simulation to avoid this state." ,
91
91
pos (1 ), -bound));
92
- OPENSIM_ASSERT_FRMOBJ (false );
92
+ OPENSIM_ASSERT (false );
93
93
pos (1 ) = -bound;
94
94
}
95
95
if (pos (2 ) > bound) {
@@ -100,7 +100,7 @@ Vec3 OpenSim::ConstantCurvatureJoint::clamp(const SimTK::Vec3& q) {
100
100
" to unphysical behavior. Please adjust your model "
101
101
" or simulation to avoid this state." ,
102
102
pos (2 ), bound));
103
- OPENSIM_ASSERT_FRMOBJ (false );
103
+ OPENSIM_ASSERT (false );
104
104
pos (2 ) = bound;
105
105
}
106
106
if (pos (2 ) < -bound) {
@@ -111,7 +111,7 @@ Vec3 OpenSim::ConstantCurvatureJoint::clamp(const SimTK::Vec3& q) {
111
111
" to unphysical behavior. Please adjust your model "
112
112
" or simulation to avoid this state." ,
113
113
pos (2 ), -bound));
114
- OPENSIM_ASSERT_FRMOBJ (false );
114
+ OPENSIM_ASSERT (false );
115
115
pos (2 ) = -bound;
116
116
}
117
117
return pos;
@@ -205,7 +205,7 @@ Mat33 OpenSim::ConstantCurvatureJoint::eulerXZYToMatrixGrad(
205
205
ret (1 , 2 ) = -(-sy) * sx + cx * (cy)*sz;
206
206
ret (2 , 2 ) = cx * (-sy) + sx * (cy)*sz;
207
207
} else {
208
- OPENSIM_ASSERT_FRMOBJ (false );
208
+ OPENSIM_ASSERT (false );
209
209
}
210
210
211
211
return ret;
@@ -247,7 +247,7 @@ Mat63 OpenSim::ConstantCurvatureJoint::getEulerJacobian(const Vec3& q) {
247
247
248
248
Mat63 OpenSim::ConstantCurvatureJoint::getEulerJacobianDerivWrtPos (
249
249
const Vec3& q, int index) {
250
- OPENSIM_ASSERT_FRMOBJ (index < 3 );
250
+ OPENSIM_ASSERT (index < 3 );
251
251
252
252
Mat63 DJ_Dq;
253
253
DJ_Dq.setToZero ();
@@ -678,10 +678,10 @@ class ConstantCurvatureJointImpl
678
678
OpenSim::ConstantCurvatureJoint::clamp (q + neutralPos), length);
679
679
Vec6 result = J * Vec3 (u[0 ], u[1 ], u[2 ]);
680
680
681
- OPENSIM_ASSERT_FRMOBJ (!q.isNaN ());
682
- OPENSIM_ASSERT_FRMOBJ (!J.isNaN ());
683
- OPENSIM_ASSERT_FRMOBJ (!J.isInf ());
684
- OPENSIM_ASSERT_FRMOBJ (!result.isNaN ());
681
+ OPENSIM_ASSERT (!q.isNaN ());
682
+ OPENSIM_ASSERT (!J.isNaN ());
683
+ OPENSIM_ASSERT (!J.isInf ());
684
+ OPENSIM_ASSERT (!result.isNaN ());
685
685
686
686
return SpatialVec (result.getSubVec <3 >(0 ), result.getSubVec <3 >(3 ));
687
687
}
@@ -699,10 +699,10 @@ class ConstantCurvatureJointImpl
699
699
700
700
Vec3 result = J.transpose () * rawSpatial;
701
701
702
- OPENSIM_ASSERT_FRMOBJ (!q.isNaN ());
703
- OPENSIM_ASSERT_FRMOBJ (!J.isNaN ());
704
- OPENSIM_ASSERT_FRMOBJ (!J.isInf ());
705
- OPENSIM_ASSERT_FRMOBJ (!result.isNaN ());
702
+ OPENSIM_ASSERT (!q.isNaN ());
703
+ OPENSIM_ASSERT (!J.isNaN ());
704
+ OPENSIM_ASSERT (!J.isInf ());
705
+ OPENSIM_ASSERT (!result.isNaN ());
706
706
707
707
Vec3::updAs (f) = result;
708
708
}
@@ -722,11 +722,11 @@ class ConstantCurvatureJointImpl
722
722
dq, length);
723
723
Vec6 result = dJ * Vec3 (u[0 ], u[1 ], u[2 ]);
724
724
725
- OPENSIM_ASSERT_FRMOBJ (!q.isNaN ());
726
- OPENSIM_ASSERT_FRMOBJ (!dq.isNaN ());
727
- OPENSIM_ASSERT_FRMOBJ (!dJ.isNaN ());
728
- OPENSIM_ASSERT_FRMOBJ (!dJ.isInf ());
729
- OPENSIM_ASSERT_FRMOBJ (!result.isNaN ());
725
+ OPENSIM_ASSERT (!q.isNaN ());
726
+ OPENSIM_ASSERT (!dq.isNaN ());
727
+ OPENSIM_ASSERT (!dJ.isNaN ());
728
+ OPENSIM_ASSERT (!dJ.isInf ());
729
+ OPENSIM_ASSERT (!result.isNaN ());
730
730
731
731
return SpatialVec (result.getSubVec <3 >(0 ), result.getSubVec <3 >(3 ));
732
732
}
@@ -748,24 +748,24 @@ class ConstantCurvatureJointImpl
748
748
749
749
Vec3 result = dJ.transpose () * rawSpatial;
750
750
751
- OPENSIM_ASSERT_FRMOBJ (!q.isNaN ());
752
- OPENSIM_ASSERT_FRMOBJ (!dq.isNaN ());
753
- OPENSIM_ASSERT_FRMOBJ (!dJ.isNaN ());
754
- OPENSIM_ASSERT_FRMOBJ (!dJ.isInf ());
755
- OPENSIM_ASSERT_FRMOBJ (!result.isNaN ());
751
+ OPENSIM_ASSERT (!q.isNaN ());
752
+ OPENSIM_ASSERT (!dq.isNaN ());
753
+ OPENSIM_ASSERT (!dJ.isNaN ());
754
+ OPENSIM_ASSERT (!dJ.isInf ());
755
+ OPENSIM_ASSERT (!result.isNaN ());
756
756
757
757
Vec3::updAs (f) = result;
758
758
}
759
759
760
760
void setQToFitTransform (
761
761
const State&, const Transform& X_FM, int nq, Real* q) const {
762
- OPENSIM_ASSERT_FRMOBJ (false );
762
+ OPENSIM_ASSERT (false );
763
763
Vec3::updAs (q) = X_FM.p ();
764
764
}
765
765
766
766
void setUToFitVelocity (
767
767
const State&, const SpatialVec& V_FM, int nu, Real* u) const {
768
- OPENSIM_ASSERT_FRMOBJ (false );
768
+ OPENSIM_ASSERT (false );
769
769
Vec3::updAs (u) = V_FM[1 ];
770
770
}
771
771
0 commit comments