Skip to content

Commit

Permalink
Jett's Onboarding Pull Request, Take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jett Vanbrocklin committed Sep 30, 2024
1 parent 78e7017 commit df258df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 10_Examples/jett-onboarding/src/publisher_member_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class MinimalPublisher : public rclcpp::Node
{
publisher_ = this->create_publisher<std_msgs::msg::String>("topic", 10);
timer_ = this->create_wall_timer(
500ms, std::bind(&MinimalPublisher::timer_callback, this));
500ms, std::bind(&MinimalPublisher::timer_callback, this));
}

private:
void timer_callback()
{
auto message = int[];
auto message = std_msgs::msg::String();
message.data = "Hello, world! " + std::to_string(count_++);
RCLCPP_INFO(this->get_logger(), "Publishing: '%s'", message.data.c_str());
publisher_->publish(message);
Expand Down

0 comments on commit df258df

Please sign in to comment.