Robotics StackExchange | Archived questions

rviz scale text while zooming

Hey there,

I am quite new to rviz and I would like to scale the text size(text.scale.z) of a text marker ( visualizationmsgs::Marker::TEXTVIEW_FACING ) when I zoom in or out in Rviz.

If there is an easy solution for that I would appreciate some help.

I however just had a look into the Orbit(rviz) -> distance value. I think this value can be used to increase your text size while the distance value is increasing. That means you adapt the text size of a text marker while your Cpp Ros node is running.

Unfortunately I did not get it how to read out this distance value in my while(ros::ok()){...} loop. Problem: #include failes also include rviz/orbit_camera failes ....

Hope you can help me on that.

Best Markus

Asked by Markus on 2017-05-15 06:54:40 UTC

Comments

Answers