[Robot] remove unnecessary Boolean comparisons
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user