Skip to content

Commit

Permalink
Merge pull request #39 from leggedrobotics/fix/do_not_display_empty_s…
Browse files Browse the repository at this point in the history
…tances

free_gait_rviz_plugin: Skip stance display if no foot is in ground contact.
  • Loading branch information
pfankhauser authored Aug 3, 2017
2 parents 3a08ee8 + 630436a commit 517eb1c
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 517eb1c

Please sign in to comment.