Skip to content

Commit cba803a

Browse files
committed
Merge pull request ihmcrobotics#256 in ROB/ihmc-open-robotics-software from feature/icp-control-polygon-viz to develop
* commit '8ded45043839f06623af9710346451957c8492bd': maybe fixed the way visualization of the icp control polygons is done
2 parents 0a4b139 + 8ded450 commit cba803a

File tree

1 file changed

+4
-3
lines changed
  • CommonWalkingControlModules/src/us/ihmc/commonWalkingControlModules/instantaneousCapturePoint

1 file changed

+4
-3
lines changed

CommonWalkingControlModules/src/us/ihmc/commonWalkingControlModules/instantaneousCapturePoint/ICPControlPolygons.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public ICPControlPolygons(ICPControlPlane icpControlPlane, ReferenceFrame midFee
6868
artifactList.add(footPolygonArtifact);
6969
}
7070

71+
artifactList.setVisible(VISUALIZE);
72+
7173
if (yoGraphicsListRegistry != null)
7274
{
7375
yoGraphicsListRegistry.registerArtifactList(artifactList);
@@ -121,8 +123,7 @@ public void updateUsingContactStates(SideDependentList<? extends PlaneContactSta
121123

122124
updateSupportPolygon(inDoubleSupport, neitherFootIsSupportingFoot, supportSide);
123125

124-
if (VISUALIZE)
125-
visualize();
126+
updateVisualize();
126127
}
127128

128129
private void updateSupportPolygon(boolean inDoubleSupport, boolean neitherFootIsSupportingFoot, RobotSide supportSide)
@@ -146,7 +147,7 @@ private void updateSupportPolygon(boolean inDoubleSupport, boolean neitherFootIs
146147
controlPolygonInWorld.changeFrameAndProjectToXYPlane(worldFrame);
147148
}
148149

149-
private void visualize()
150+
private void updateVisualize()
150151
{
151152
controlPolygonViz.setFrameConvexPolygon2d(controlPolygonInWorld);
152153

0 commit comments

Comments
 (0)