Skip to content

Commit

Permalink
Merge pull request #95 from marrts/reset_marker_counter
Browse files Browse the repository at this point in the history
Add ability to reset marker counter without clearing
  • Loading branch information
marrts authored Apr 4, 2024
2 parents c37a56f + 464f899 commit ae3e9f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tesseract_rosutils/include/tesseract_rosutils/plotting.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ class ROSPlotting : public tesseract_visualization::Visualization

const std::string& getRootLink() const;

void resetCounter();

static visualization_msgs::msg::MarkerArray getMarkerAxisMsg(int& id_counter,
const std::string& frame_id,
const std::string& ns,
Expand Down
2 changes: 2 additions & 0 deletions tesseract_rosutils/src/plotting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ void ROSPlotting::waitForInput(std::string message)

const std::string& ROSPlotting::getRootLink() const { return root_link_; }

void ROSPlotting::resetCounter() { marker_counter_ = 0; }

visualization_msgs::msg::Marker ROSPlotting::getMarkerArrowMsg(int& id_counter,
const std::string& frame_id,
const std::string& ns,
Expand Down

0 comments on commit ae3e9f0

Please sign in to comment.