Skip to content

Commit

Permalink
Update source/Tutorials/Intermediate/RViz/RViz-Custom-Panel/RViz-Cust…
Browse files Browse the repository at this point in the history
…om-Panel.rst

Signed-off-by: Katherine Scott <[email protected]>
  • Loading branch information
kscottz authored Nov 21, 2024
1 parent 21fad13 commit ef1ae71
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ Update ``demo_panel.cpp`` to have the following contents:

// When the subscriber gets a message, this callback is triggered,
// and then we copy its data into the widget's label
// When our node interface gets a message on its input topic this callback
// gets called and we copy the message text to our button label.
void DemoPanel::topicCallback(const std_msgs::msg::String & msg)
{
label_->setText(QString(msg.data.c_str()));
Expand Down

0 comments on commit ef1ae71

Please sign in to comment.