rviz scale text while zooming

asked 2017-05-15 06:54:40 -0600

Markus gravatar image

updated 2017-05-17 00:56:02 -0600

Hey there,

I am quite new to rviz and I would like to scale the text size(text.scale.z) of a text marker ( visualization_msgs::Marker::TEXT_VIEW_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 <orbit_camera.h> failes also include rviz/orbit_camera failes ....

Hope you can help me on that.

Best Markus

edit retag flag offensive close merge delete