@@ -721,16 +721,16 @@ void Jacobian::sTranslateJacobian(const Eigen::MatrixXd & jac,
721
721
if (jac.cols () != jac_.cols () || jac.rows () != jac_.rows ())
722
722
{
723
723
std::ostringstream str;
724
- str << " jac matrix size mismatch: expected size (" << jac_.rows () << " x " << jac_.cols () << " )"
725
- << " gived ( " << jac.rows () << " x " << jac.cols () << " )" ;
724
+ str << " jac matrix size mismatch: expected size (" << jac_.rows () << " x " << jac_.cols () << " )" << " gived ( "
725
+ << jac.rows () << " x " << jac.cols () << " )" ;
726
726
throw std::domain_error (str.str ());
727
727
}
728
728
729
729
if (res.cols () != jac_.cols () || res.rows () != jac_.rows ())
730
730
{
731
731
std::ostringstream str;
732
- str << " res matrix size mismatch: expected size (" << jac_.rows () << " x " << jac_.cols () << " )"
733
- << " gived ( " << res.rows () << " x " << res.cols () << " )" ;
732
+ str << " res matrix size mismatch: expected size (" << jac_.rows () << " x " << jac_.cols () << " )" << " gived ( "
733
+ << res.rows () << " x " << res.cols () << " )" ;
734
734
throw std::domain_error (str.str ());
735
735
}
736
736
@@ -748,17 +748,16 @@ void Jacobian::sFullJacobian(const MultiBody & mb, const Eigen::MatrixXd & jac,
748
748
if (jac.cols () != jac_.cols () || jac.rows () != jac_.rows ())
749
749
{
750
750
std::ostringstream str;
751
- str << " jac matrix size mismatch: expected size (" << jac_.rows () << " x " << jac_.cols () << " )"
752
- << " gived ( " << jac.rows () << " x " << jac.cols () << " )" ;
751
+ str << " jac matrix size mismatch: expected size (" << jac_.rows () << " x " << jac_.cols () << " )" << " gived ( "
752
+ << jac.rows () << " x " << jac.cols () << " )" ;
753
753
throw std::domain_error (str.str ());
754
754
}
755
755
756
756
if (res.cols () != mb.nrDof () || res.rows () != 6 )
757
757
{
758
758
std::ostringstream str;
759
- str << " res matrix size mismatch: expected size (" << mb.nrDof () << " x "
760
- << " 6 )"
761
- << " gived (" << res.rows () << " x " << res.cols () << " )" ;
759
+ str << " res matrix size mismatch: expected size (" << mb.nrDof () << " x " << " 6 )" << " gived (" << res.rows ()
760
+ << " x " << res.cols () << " )" ;
762
761
throw std::domain_error (str.str ());
763
762
}
764
763
0 commit comments