From dfba719a5b01b3c868fbf7976dbc91691e3df523 Mon Sep 17 00:00:00 2001 From: Iori Yanokura Date: Sun, 26 Jun 2022 22:42:11 +0900 Subject: [PATCH] Update jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/sphere.py [jsk_perception/lidar_person_detection] Refactor initialization of `visualization_msgs/Marker` Co-authored-by: Aoi Nakane --- .../jsk_recognition_utils/visualization_marker/sphere.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/sphere.py b/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/sphere.py index bb034fff11..01fe674fbe 100644 --- a/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/sphere.py +++ b/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/sphere.py @@ -16,9 +16,7 @@ def make_sphere(radius=0.1, header.frame_id = frame_id header.stamp = stamp - mesh_marker = Marker(type=Marker.ARROW, header=header, id=id) - - mesh_marker.type = visualization_msgs.msg.Marker.SPHERE + mesh_marker = Marker(type=Marker.SPHERE, header=header, id=id) mesh_marker.pose.position.x = pos[0] mesh_marker.pose.position.y = pos[1] mesh_marker.pose.position.z = pos[2]