Skip to content

Commit

Permalink
Separate strings for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood committed Mar 8, 2017
1 parent 97445dd commit a264625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion image_tools/src/cam2image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int main(int argc, char * argv[])
// parameter.
custom_camera_qos_profile.history = history_policy;

printf("Publishing data on topic %s\n", topic.c_str());
printf("Publishing data on topic: %s\n", topic.c_str());
// Create the image publisher with our custom QoS profile.
auto pub = node->create_publisher<sensor_msgs::msg::Image>(
topic, custom_camera_qos_profile);
Expand Down
2 changes: 1 addition & 1 deletion image_tools/src/showimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int main(int argc, char * argv[])
show_image(msg, show_camera);
};

std::cout << "Subscribing to topic " << topic << std::endl;
std::cout << "Subscribing to topic: " << topic << std::endl;
// Initialize a subscriber that will receive the ROS Image message to be displayed.
auto sub = node->create_subscription<sensor_msgs::msg::Image>(
topic, callback, custom_qos_profile);
Expand Down

0 comments on commit a264625

Please sign in to comment.