[Robot] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-19 18:24:36 +02:00
parent ca93124421
commit 19cfe956d1
2 changed files with 3 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ void Trajectory::generateTrajectory(void)
pcRoundComp->Add(Next);
// end a continuous block
}
else if (Cont == false && pcRoundComp) {
else if (!Cont && pcRoundComp) {
// add the last one
pcRoundComp->Add(Next);
pcRoundComp->Finish();
@@ -203,7 +203,7 @@ void Trajectory::generateTrajectory(void)
// normal block
}
else if (Cont == false && !pcRoundComp) {
else if (!Cont && !pcRoundComp) {
KDL::Path* pcPath;
pcPath = new KDL::Path_Line(Last,
Next,

View File

@@ -143,7 +143,7 @@ void TreeIkSolverPos_Online::enforceJointVelLimits()
}
// scales q_out, if one joint exceeds the maximum value
if ( max_exceeded == true )
if (max_exceeded)
{
Multiply(q_dot_, ( 1.0 / ( 1.0 + rel_os_max ) ), q_dot_);
}