Skip to content
Snippets Groups Projects
Commit 82a37d2d authored by olivier stasse's avatar olivier stasse
Browse files

Remove warnings

parent feaae1a6
No related branches found
No related tags found
1 merge request!1[major][cpp] starting point to integrate pinocchio
......@@ -133,7 +133,7 @@ static void eigenDecomp( const ml::Matrix& M,
{
for( unsigned int j=0;j<SIZE;++j ){ P(i,j)=vr(i,j); }
eig(i)=evals(i).real();
if( fabsf(evals(i).imag())>1e-5 )
if( fabsf(static_cast<float>(evals(i).imag()))>1e-5 )
{
SOT_THROW ExceptionDynamic( ExceptionDynamic::INTEGRATION,
"Error imaginary part not null. ",
......
......@@ -18,7 +18,7 @@
* with sot-dynamic. If not, see <http://www.gnu.org/licenses/>.
*/
int main (int argc, char** argv)
int main (int , char** )
{
}
......@@ -50,7 +50,7 @@ void DisplayDynamicRobotInformation(CjrlDynamicRobot *aDynamicRobot)
}
void DisplayMatrix(MAL_MATRIX(,double) &aJ)
void DisplayMatrix(MAL_MATRIX(&aJ,double))
{
for(unsigned int i=0;i<6;i++)
{
......@@ -175,7 +175,8 @@ int main(int argc, char *argv[])
vector<CjrlJoint *> aVec = aHDR->jointVector();
CjrlJoint * aJoint = aVec[22];
aJoint->computeJacobianJointWrtConfig();
MAL_MATRIX(,double) aJ = aJoint->jacobianJointWrtConfig();
MAL_MATRIX(aJ,double);
aJ = aJoint->jacobianJointWrtConfig();
DisplayMatrix(aJ);
/* Get Waist joint. */
......
......@@ -126,8 +126,6 @@ int main(int argc, char * argv[])
string aValue("true");
aHDR->setProperty(aProperty,aValue);
aHDR2->setProperty(aProperty,aValue);
int NbOfDofs = aHDR->numberDof();
// cout << "NbOfDofs: " << NbOfDofs << endl;
while(!ActualStateFile.eof())
{
for(unsigned int i=0;i<100;i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment