ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can try something like this: Have a node on the server (viewport host) side. Sample Python code:

from rviz import bindings as rviz
frame = rviz.VisualizationFrame()
vc = frame.getManager().getViewManager().getCurrent()
# only if the current view is Orbital type
if vc.getClassId() == 'rviz/Orbit':
    vc.subProp("Distance").setValue(1.0))
    vc.subProp("Focal Point").setValue(1.0)