Skip to content
Snippets Groups Projects
Commit 1108d266 authored by Francois Keith's avatar Francois Keith
Browse files

Add an assertion to avoid nul size of the sole.

parent 56486498
No related branches found
No related tags found
No related merge requests found
......@@ -171,6 +171,7 @@ RelativeFeetInequalities::set_feet_dimensions( CjrlHumanoidDynamicRobot *aHS )
}
LeftFoot->getSoleSize( WidthHalf,HeightHalf );
assert(WidthHalf > 0);
LeftFootSize_.setHalfSizeInit( WidthHalf, HeightHalf, DSFeetDistance_ );
LeftFootSize_.setConstraints( SecurityMarginX_, SecurityMarginY_, DSFeetDistance_ );
RightFootSize_.setHalfSizeInit( WidthHalf, HeightHalf, DSFeetDistance_ );
......
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