How to delete markers from a ros3djs viewer?
Could anyone share an example of how to delete markers in a ros3djs
viewer?
From the docs here I can see that a method is available called eraseIntMarker()
however I cannot work out how to use it. In particular, it expects the marker name to be provided but I’m am not sure how to specify this. For example, I publish my marker using the following code snippet but a marker name is not specified as such - just a topic.
let imClient = new ROS3D.InteractiveMarkerClient({
ros : this.ros,
tfClient : tfClient,
topic : '/my_interactive_marker_topic',
camera : viewer.camera,
rootObject : viewer.selectableObjects
});
Does this mean that I specify imClient
as the name or do I extract the individual namespace
and marker_id
and provide that to the function somehow?
I’m really unsure how to go about this so it’d be great to see a code snippet.