Skip to content

Commit

Permalink
Re-add leading character to node name (#109)
Browse files Browse the repository at this point in the history
The ROS 2 API is giving us the node name without a leading slash.
  • Loading branch information
cottsay authored Jun 3, 2020
1 parent 54f79ff commit ad8da88
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,7 @@ class Updater : public DiagnosticTaskVector
status_vec.begin();
iter != status_vec.end(); iter++)
{
// see https://github.com/ros/diagnostics/pull/109
iter->name = node_name_.substr(1) + std::string(": ") + iter->name;
iter->name = node_name_ + std::string(": ") + iter->name;
}
diagnostic_msgs::msg::DiagnosticArray msg;
msg.status = status_vec;
Expand Down

0 comments on commit ad8da88

Please sign in to comment.