diff --git a/src/dynamic.cpp b/src/dynamic.cpp index 5cae3eeecd121899975e6ee8404f15c0d99d7cd8..5d017be8d84f6f781b161c4b96a6aa827f348b09 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -622,9 +622,10 @@ destroyAccelerationSignal( const std::string& signame ) if(! deletable ) { SOT_THROW ExceptionDynamic( ExceptionDynamic::CANT_DESTROY_SIGNAL, - "Cannot destroy signal", - " (while trying to remove generic acc signal <%s>).", - signame.c_str() ); + getName() + ":cannot destroy signal", + " (while trying to remove generic acc " + "signal <%s>).", + signame.c_str() ); } signalDeregistration( signame ); @@ -1043,26 +1044,32 @@ computeNewtonEuler( int& dummy,int time ) if(! m_HDR->currentConfiguration(pos.accessToMotherLib())) { SOT_THROW ExceptionDynamic( ExceptionDynamic::JOINT_SIZE, - "Position vector size uncorrect", - " (Vector size is %d, should be %d).", - pos.size(),m_HDR->currentConfiguration().size() ); + getName() + + ": position vector size incorrect", + " (Vector size is %d, should be %d).", + pos.size(), + m_HDR->currentConfiguration().size() ); } if(! m_HDR->currentVelocity(vel.accessToMotherLib()) ) { SOT_THROW ExceptionDynamic( ExceptionDynamic::JOINT_SIZE, - "Velocity vector size uncorrect", - " (Vector size is %d, should be %d).", - vel.size(),m_HDR->currentVelocity().size() ); + getName() + + ": velocity vector size incorrect", + " (Vector size is %d, should be %d).", + vel.size(), + m_HDR->currentVelocity().size() ); } if(! m_HDR->currentAcceleration(acc.accessToMotherLib()) ) { SOT_THROW ExceptionDynamic( ExceptionDynamic::JOINT_SIZE, - "Acceleration vector size uncorrect", - " (Vector size is %d, should be %d).", - acc.size(),m_HDR->currentAcceleration().size() ); + getName() + + ": acceleration vector size incorrect", + " (Vector size is %d, should be %d).", + acc.size(), + m_HDR->currentAcceleration().size() ); } m_HDR->computeForwardKinematics();