Import and Replay Logfile Data

This article was written for version 2.0.9 of Core. Click here for the most recent version of the help center.

PolySync Studio allows you to visualize and manage the different kinds of data that sensors have captured in logfile sessions. This article will introduce you to the most commonly used workflow within the PolySync ecosystem.

PolySync Core has the ability to replay prerecorded sensor data stored in a PolySync logfile session.

This article shows you how to import and replay the logfile session 1000 that ships with PolySync Core, but this workflow is used to import and replay any logfile session.

1. Run PolySync manager

Start the PolySync manager as a service before any other PolySync nodes.

$ sudo service polysync-core-manager start

Note that while in the replay state, the system is referencing the replay SDF .

2. Import the logfile session using Studio

Studio provides an interface to export recorded logfile sessions, from a single-host or a distributed system, and import the logfile session to any other PolySync system.

Follow these steps to import a previously exported logfile session.

  1. Start PolySync manager.

    polysync-core-manager
    
  2. Start Studio with the desktop icon, or the command.

    polysync-core-studio
    
  3. Click the icon. Studio landing screen

  4. Right-click within the logfile manager section, or select the icon. Logfile manager area

  5. Navigate to and select the extracted and decompressed logfile session folder 1000 located in /usr/local/polysync/rnr_logs/1000, click the Import button. Logfile manager import window

  6. Allow the logfile session to fully import. Importing In-progress

Studio will begin importing the files to the logfile management section. The import status is shown with a loading bar. A textual status and description of the file transfer is provided in the console debug log messages.

Once the session is visible within the logfile manager, it can be selected for playback by dragging the folder to the playlist and double-clicking the playlist entry.

3. 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:

$ polysync-core-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

4. 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 replay SDF for this logfile session.

5. 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.

Conclusion

Congratulations! You have successfully replayed and visualized the sample data.