| 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) | |
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
| def relay_screenshot.callback | ( | msg | ) | 
Definition at line 15 of file relay_screenshot.py.
| int relay_screenshot.counter = 0 | 
Definition at line 26 of file relay_screenshot.py.
| relay_screenshot.file_format = rospy.get_param('~file_format', 'rviz_screenshot_{0:0>5}.png') | 
Definition at line 29 of file relay_screenshot.py.
| relay_screenshot.screenshot_srv = rospy.ServiceProxy('/rviz/screenshot', Screenshot) | 
Definition at line 28 of file relay_screenshot.py.
Definition at line 30 of file relay_screenshot.py.