Skip to content

Commit

Permalink
free_gait_rviz_plugin: Skip stance display if no foot is in ground co…
Browse files Browse the repository at this point in the history
…ntact.
  • Loading branch information
remod committed Aug 3, 2017
1 parent 3a08ee8 commit 630436a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions free_gait_rviz_plugin/src/FreeGaitPreviewVisual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ void FreeGaitPreviewVisual::showStances(const float alpha)
stancesMarker_.clear();

for (const auto& stance : stateBatchPtr_->getStances()) {
if (stance.second.empty()) continue;
std_msgs::ColorRGBA color;
getRainbowColor(stateBatchPtr_->getStartTime(), stateBatchPtr_->getEndTime(), stance.first, color);
color.a = alpha;
Expand Down

0 comments on commit 630436a

Please sign in to comment.