Skip to content

Commit

Permalink
Update jsk_recognition_utils/python/jsk_recognition_utils/visualizati…
Browse files Browse the repository at this point in the history
…on_marker/sphere.py


[jsk_perception/lidar_person_detection] Refactor initialization of `visualization_msgs/Marker`

Co-authored-by: Aoi Nakane <[email protected]>
  • Loading branch information
iory and nakane11 authored Jun 26, 2022
1 parent 3a1eb27 commit dfba719
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit dfba719

Please sign in to comment.