ros3djs icon indicating copy to clipboard operation
ros3djs copied to clipboard

Marker cannot be deleted

Open oka1125 opened this issue 6 years ago • 2 comments

I can't delete the marker by publishing Marker message (action=Marker.DELETE) in ROS(Ubuntu). On the other hand, it is confirmed that the marker was deleted in ROS (Ubuntu).

note

  • I use ROS3D.MarkerClient in ros3djs.
    • The marker is deleted successufully in rviz in ROS(Ubuntu).
  • When I use MarkerArray, I can both add and delete it.

oka1125 avatar Aug 12 '19 04:08 oka1125

I found a bug in MarkerClient.process function in ros3d.js. This function always add a new marker regardless of action (Marker.ADD, Marker.DELETE, etc.).

On the other hand, MarkerArrayClient class does not have such a bug.

oka1125 avatar Aug 12 '19 05:08 oka1125

It also doesn't support "DELETEALL" yet. I will create a pull-request after testing my code.

peterrw avatar Mar 29 '21 20:03 peterrw

Has been fixed in the meantime

MatthijsBurgh avatar Feb 10 '23 14:02 MatthijsBurgh