From b9c1f4b0aea868cbff372734c67d959f5eddf29b Mon Sep 17 00:00:00 2001 From: Masanori-Konishi Date: Thu, 13 Jun 2024 18:48:41 +0900 Subject: [PATCH] fix print_urdf_info.py --- hrpsys_ros_bridge_tutorials/scripts/print_urdf_info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hrpsys_ros_bridge_tutorials/scripts/print_urdf_info.py b/hrpsys_ros_bridge_tutorials/scripts/print_urdf_info.py index 816a7174..807b7fc1 100644 --- a/hrpsys_ros_bridge_tutorials/scripts/print_urdf_info.py +++ b/hrpsys_ros_bridge_tutorials/scripts/print_urdf_info.py @@ -50,7 +50,8 @@ def parse_urdf(file_path): def main(): if len(sys.argv) != 2: - print("Usage: python script.py path_to_your_urdf_file.urdf") + print("Usage: python print_urdf_info.py path_to_your_urdf_file.urdf") + print("with python2") sys.exit(1) file_path = sys.argv[1] @@ -85,5 +86,6 @@ def main(): limits = joint[1] print("{:<20} {:<10.2f} {:<10.2f} {:<10.2f} {:<10.2f} {:<10.2f} {:<10.2f}".format(name, limits[0], limits[1], limits[0]*180/math.pi, limits[1]*180/math.pi, limits[2], limits[3])) + print("-" * 120) if __name__ == "__main__": main()