From 9cf4e53cf1bab1948cf30a089a51bf873f1faa78 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Wed, 6 Oct 2021 21:59:13 +0000 Subject: [PATCH] Minor cleanups. Signed-off-by: Chris Lalancette --- tf2_ros/src/static_transform_broadcaster_program.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tf2_ros/src/static_transform_broadcaster_program.cpp b/tf2_ros/src/static_transform_broadcaster_program.cpp index 008d0a48a..3ef8ec6e1 100644 --- a/tf2_ros/src/static_transform_broadcaster_program.cpp +++ b/tf2_ros/src/static_transform_broadcaster_program.cpp @@ -290,7 +290,7 @@ static std::string parse_args( return ""; } -static void _print_usage() +static void print_usage() { const char * usage = "usage: static_transform_publisher [--x X] [--y Y] [--z Z] [--qx QX] [--qy QY] " @@ -330,11 +330,11 @@ int main(int argc, char ** argv) std::string ret = parse_args(args, help, rotation, translation, frame_id, child_frame_id); if (ret != "") { RCUTILS_LOG_ERROR("error parsing command line arguments: %s", ret.c_str()); - _print_usage(); + print_usage(); return 1; } if (help) { - _print_usage(); + print_usage(); return 0; } @@ -359,7 +359,7 @@ int main(int argc, char ** argv) RCLCPP_INFO( node->get_logger(), - "Spinning until killed publishing transform\ntranslation: ('%lf', '%lf', '%lf')\n" + "Spinning until stopped - publishing transform\ntranslation: ('%lf', '%lf', '%lf')\n" "rotation: ('%lf', '%lf', '%lf', '%lf')\nfrom '%s' to '%s'", translation.x(), translation.y(), translation.z(), rotation.x(), rotation.y(), rotation.z(), rotation.w(),