I have this code which shows the data visualization on rerun [code] I already have the…
- User
I have this code which shows the data visualization on rerun``` import logging import rerun as rr from pathlib import Path import time
Set up logging
logging.basicConfig(level=logging.INFO)
Path to your .rrd file (ensure this points to the correct .rrd file)
rrd_file_path = Path("/workspace/lerobot/output/lerobot_pusht_episode_0.rrd")
def visualize_rrd(rrd_file_path: Path): # Initialize Rerun rr.init("RRD Visualization", spawn=True)
code# Load and visualize the .rrd file if rrd_file_path.exists(): rr.load(rrd_file_path) logging.info(f"Visualizing RRD file: {rrd_file_path}") # Keep the script running to maintain the connection try: while True: time.sleep(1) except KeyboardInterrupt: print("Exiting visualization.") else: logging.error(f"File not found: {rrd_file_path}")Run the visualization
if name == "main": visualize_rrd(rrd_file_path)
codeI already have the rerun running on port 9090 I want to render that `.rrd file` there. So, modify the code accordingly. - Assistant