Is it possible to reset Rviz through python script?

asked 2019-02-08 08:41:03 -0500

disha gravatar image

I am writing a python publisher that publishes pointcloud data. I wish to reset the Rviz scene after a while. How can this be done?

edit retag flag offensive close merge delete


What do you want to reset in RVIZ? The point clouds the camera position?

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-02-08 10:26:24 -0500 )edit

I want to reset the point clouds. I am publishing a point cloud scene and trying to highlight some part of it using another topic(say /change_point). I wish to publish /change_point for specific time and then reset rviz scene so that only original data is visible. How do I do this?Thanks in advance!

disha gravatar image disha  ( 2019-02-09 08:29:38 -0500 )edit

If you want to hide the highlight you could simply publish an empty point cloud to the /change_point topic. This should achieve what you want.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-02-09 10:19:03 -0500 )edit