Ask Your Question
2

Rviz Interactive Marker Control Scaling

asked 2014-08-05 12:52:14 -0500

atp gravatar image

How can I change the scaling of the controls (i.e., the rings and arrows) of an interactive marker (in C++)? They are much larger than the marker itself. I want them to be at about the size of the marker.image description

edit retag flag offensive close merge delete

Comments

Why did you flag this question as "off-topic" in the end?

courrier gravatar imagecourrier ( 2014-09-15 12:47:34 -0500 )edit

I actually flagged it as "off-topic or not relevant" because it is not relevant for me anymore (I found the answer) ;-)

atp gravatar imageatp ( 2014-09-15 13:31:56 -0500 )edit
6

Please don't forget people googling your question, and getting frustrated by finding a... closed topic! Be community-friendly, answer your own question ;)

courrier gravatar imagecourrier ( 2014-09-15 14:29:37 -0500 )edit
1

Seriously did you find a way to scale these controls without scaling the meshes themselves? I really don't find how, there is no scale anywhere. Thanks by advance!

courrier gravatar imagecourrier ( 2014-09-30 06:00:09 -0500 )edit

Ditto to @courrier. I reopened and posted an answer.

130s gravatar image130s ( 2014-09-30 17:25:40 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-10-03 03:38:26 -0500

courrier gravatar image

updated 2014-10-03 03:38:56 -0500

Ok, in fact you won't find that inside the control but this is directly the visualization_msgs/InteractiveMarker.scale field!

edit flag offensive delete link more
0

answered 2014-09-30 17:24:41 -0500

130s gravatar image

visualization_msgs/InteractiveMarkerControl.markers[i].scale.{ x, y, z } should do the work.

http://wiki.ros.org/rviz/DisplayTypes...

scale
    Scale of the marker. Applied before the position/orientation. A scale of [1,1,1] means the object will be 1m by 1m by 1m.

InteractiveMarkerControl

edit flag offensive delete link more

Comments

1

Hmmm, but when you display the default rings/arrows for a control you have no element in this "markers" vector.

courrier gravatar imagecourrier ( 2014-10-01 11:26:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-08-05 12:52:14 -0500

Seen: 1,241 times

Last updated: Oct 03 '14