Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Interactive Marker Server: Update marker

Is there any way to update the markers in a c++ InteractiveMarkerServer? I see an updatePose method in the code API for InteractiveMarkerServer but nothing else. There are certain cases where it would be useful to update attributes of a marker such as its color, size, or description but I can't find a way to do this. I have seen it done though in packages such as moveit where indicators change color to indicate a change of state. A hacky solution would be removing the marker from the server, then re-adding it back with the desired changes, but this is not elegant. Can I trigger an update using something like topics or must I resort to the delete and re-add method?