Rosanswers logo


I'm publishing some interactive markers to be able to select different objects from a scene in rviz (see screenshot below. I'm using an InteractiveMarkerControl.MENU type.

Interactive Marker

I'm now able to select the marker, but only by clicking on the "CLICK" text, which is the description of the InteractiveMarkerControl() associated.

Is it possible to have a marker which react when we click directly on the sphere?

Thanks in advance.


Originally posted by Ugo on ROS Answers with karma: 1620 on 2011-11-14

Post score: 0


1 Answer 1


Rosanswers logo

Yes, in fact you are very close already. Simply set interaction_mode = InteractiveMarkerControl.BUTTON in the control which has the sphere shape, then in your feedback message, look for event_type == InteractiveMarkerFeedback::BUTTON_CLICK.

Originally posted by hersh with karma: 1351 on 2011-11-16

This answer was ACCEPTED on the original site

Post score: 1

Original comments

Comment by Ugo on 2011-11-21:
thanks for that


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.