Skip to main content
  1. Blog Posts/

Week 06 Progress Report

·2 mins·
GSoC 2024 AGL The Linux Foundation GSoC '24 WPR
Suchinton Chakravarty
Author
Suchinton Chakravarty
Welcome to my Blog Post Website!
Table of Contents

Tasks Completed:
#

During the sixth week of my Google Summer of Code (GSoC) project, I made significant strides in implementing the CARLA-CAN-File playback feature within the Automotive Grade Linux (AGL) ecosystem. Below, I provide detailed information about the tasks completed, documentation updates, and plans for the upcoming week.

# CARLA Playback
#

I submitted code changes to Gerrit for review and integration into the AGL demo control panel repository. The specific change can be found here :- 30049: Add Python Script to Convert CARLA data into CAN messages

Conversion of CARLA data to CAN messages
#

The carla_to_CAN.py script can be run run alongside an existing CARLA simulation to fetch data and convert it into CAN messages based on the agl-vcar.dbc file.

NOTE: This does not require the CARLA server to be running.

To convert CARLA data into CAN messages, follow these steps:

$ python -u carla_to_CAN.py
# OR
$ python -u carla_to_CAN.py --host <carla_server_ip> --port <carla_server_port>

Implemented Recording of CAN messages and File Playback
#

The record_playback.py script is responsible for recording amd playing back the CAN data for later sessions.

To use the recording and playback features, execute the script:

$ python -u record_playback.py
# OR
$ python -u record_playback.py --interface (or) -i can0 # default vcan0

CLI Options:

  • 1: Captures CAN messages and writes them into ‘can_messages.txt’
  • 2: Replays captured CAN messages
  • 3: Exit

# Updated Documentation
#

In addition to code contributions, I focused on enhancing the AGL documentation related to CARLA and the demo control panel. The following updates were made:

  1. AGL Demo Control Panel Documentation:
    • I revised the existing documentation to reflect the transition to Qt6.
    • Clarified usage instructions and provided examples for better understanding.
  2. CARLA Integration with AGL Documentation:
    • I created new documentation specifically addressing the integration of CARLA with AGL.
    • Highlighted use cases and provided step-by-step setup instructions.

The code changes related to documentation updates can be found here :- 30097: GSoC ‘24 Add and Update Documentation for CARLA and Demo Control Panel

Next Week Tasks:
#

  • Continue Adding support in AGL Demo Control Panel to Playback CAN Dump files.
  • Continue working on New Page to display tyre pressure data.
  • Test CARLA Playback on AGL Apps.

Related

Week 05 Progress Report
·1 min
GSoC 2024 AGL The Linux Foundation GSoC '24 WPR
Week 04 Progress Report
·2 mins
GSoC 2024 AGL The Linux Foundation GSoC '24 WPR
Week 03 Progress Report
·2 mins
GSoC 2024 AGL The Linux Foundation GSoC '24 WPR