diff --git a/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/cylinder.py b/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/cylinder.py index 1ce3ca2735..f39b2b8486 100644 --- a/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/cylinder.py +++ b/jsk_recognition_utils/python/jsk_recognition_utils/visualization_marker/cylinder.py @@ -17,9 +17,7 @@ def make_cylinder(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.CYLINDER + mesh_marker = Marker(type=Marker.CYLINDER, 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]