Functions | Variables
relay_screenshot Namespace Reference

Functions

def callback (msg)
 

Variables

int counter = 0
 
 file_format = rospy.get_param('~file_format', 'rviz_screenshot_{0:0>5}.png')
 
 screenshot_srv = rospy.ServiceProxy('/rviz/screenshot', Screenshot)
 
 sub = rospy.Subscriber('~input', rospy.msg.AnyMsg, callback)
 

Detailed Description

Call snapshot service of rviz (provided by ScreenshotListener tool)
when a topic is published.

This script is useful to automatically record result of ros processing.

NOTE:
  rviz should be in fron of other windows because 

Function Documentation

◆ callback()

def relay_screenshot.callback (   msg)

Definition at line 15 of file relay_screenshot.py.

Variable Documentation

◆ counter

int relay_screenshot.counter = 0

Definition at line 26 of file relay_screenshot.py.

◆ file_format

relay_screenshot.file_format = rospy.get_param('~file_format', 'rviz_screenshot_{0:0>5}.png')

Definition at line 29 of file relay_screenshot.py.

◆ screenshot_srv

relay_screenshot.screenshot_srv = rospy.ServiceProxy('/rviz/screenshot', Screenshot)

Definition at line 28 of file relay_screenshot.py.

◆ sub

relay_screenshot.sub = rospy.Subscriber('~input', rospy.msg.AnyMsg, callback)

Definition at line 30 of file relay_screenshot.py.



jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Aug 2 2024 08:50:15