Replay Logs And Visualize Sample Data

PolySync has the ability to replay prerecorded sensor data stored in a PolySync logfile session. This article shows you how to replay the logfile session `1000` that ships with PolySync, but this workflow is used to replay any logfile session that exists in the Studio logfile manager. ### 1. Run PolySync manager Start the PolySync manager before any other PolySync nodes. ```bash $ polysync-manager 2033-08-10 17:57:34 DEBUG [8854:src/polysync_core.c:884] manager_daemon : created daemon process ``` ### 2. Visualize sample data Studio visualizes data being published to the PolySync bus , and provides an interface to record and replay PolySync logfile sessions. Start PolySync Studio from the Ubuntu icon, or from the command line: ```bash $ polysync-studio ``` Studio will open in standby mode, signifying it is ready to replay a logfile session or enter hardware mode. Click the green [system state]( indicator in the bottom-left for more details about the system mode and status. ![System state selection]( ### 3. Load the logfile session Open the logfile manager. ![Setup]( Logfile sessions that are available for replay show up in the logfile manager pane. Select the logfile session that ships with PolySync releases─"Session 1000"─and drag it to the playlist pane on the right. Click on the arrow to dropdown and list the nodes associated with the logfile session. These are the same nodes defined in the System Design File (SDF) for this logfile session. ### 4. Replay Before selecting a logfile session for replay, open the 3D View plugin in preparation to visualize data. To replay a logfile session, double click the session Name in the playlist pane. Each nodes status is shown in the playlist dropdown menu, where you can watch nodes change as they each load an individual `plog` file. ![Ready for Logfile Session Replay]( When the selected logfile session has been loaded by all nodes, it will begin playback automatically. The 3D View plugin will begin displaying RADAR and LiDAR data. The Xsens data is visible in the trace plugin, as a `ps_platform_motion_msg`. The system state indicator at the bottom-left changes from green to blue to indicate a session is being replayed. ![Logfile Session 1000 Playback]( If there is an error in loading, the system state indicator at the bottom-left will change to red. Click it for more details, and see solutions to common problems [here](/articles/?p=2237). ### Conclusion Congratulations! You have successfully replayed and visualized the sample data.