Difference between revisions of "Simulator"

From Elcano Project Wiki
Jump to navigation Jump to search
(Elcano Carla Simulation External Specification)
(Elcano Carla Simulation External Specification)
Line 6: Line 6:
 
A go-between circuit board will transfer data from vehicle systems to CARLA under a variety of test conditions, enabling the software to replicate responses and return sensor data to be reevaluated for accuracy. Connecting the simulation software to components on both the high and low level boards of the Elcano trike including lidar, sonar, throttle, and brake systems, will allow users to immediately see the results of adjustments to vehicle parameters and highlight physical aspects of the trike within the virtual simulation. This project will enable users to efficiently implement improvements and track the immediate effects of design changes without spending the time and resources it would take to transport or operate the trike in real world test scenarios.
 
A go-between circuit board will transfer data from vehicle systems to CARLA under a variety of test conditions, enabling the software to replicate responses and return sensor data to be reevaluated for accuracy. Connecting the simulation software to components on both the high and low level boards of the Elcano trike including lidar, sonar, throttle, and brake systems, will allow users to immediately see the results of adjustments to vehicle parameters and highlight physical aspects of the trike within the virtual simulation. This project will enable users to efficiently implement improvements and track the immediate effects of design changes without spending the time and resources it would take to transport or operate the trike in real world test scenarios.
  
[[File:Full_Block_Diagram.jpg|1000px]]
+
[[File:Full_Block_Diagram.JPG|1000px]]
  
 
== How to Set-up ==
 
== How to Set-up ==

Revision as of 03:50, 29 July 2019

Elcano Carla Simulation External Specification

The CARLA simulator portion of the Elcano project utilizes a unique go-between circuit board to transfer data between test environments within CARLA simulations and various sensor components within the physical vehicle. The CARLA software allows users to emulate trike parameters under controlled conditions within a virtual world, providing an efficient system for testing sensor accuracy, design implementation, and benchmarking overall vehicle progression. The CARLA software can simulate a variety of road conditions such as traffic patterns, incline, and weather as well as provide users control over vehicle parameters including weight, engine power, and aerodynamic properties.


A go-between circuit board will transfer data from vehicle systems to CARLA under a variety of test conditions, enabling the software to replicate responses and return sensor data to be reevaluated for accuracy. Connecting the simulation software to components on both the high and low level boards of the Elcano trike including lidar, sonar, throttle, and brake systems, will allow users to immediately see the results of adjustments to vehicle parameters and highlight physical aspects of the trike within the virtual simulation. This project will enable users to efficiently implement improvements and track the immediate effects of design changes without spending the time and resources it would take to transport or operate the trike in real world test scenarios.

Full Block Diagram.JPG

How to Set-up

The components involved in the simulation of the Elcano trike vehicle will be a computer running an instance of CARLA along with our framework and any additional user scripts along with a go-between board to direct data from the trike system to CARLA and back. The flow of data between components can be seen in the project block diagram. The following is an overview of the simulation equipment and necessary connections to be made.


Hardware

  • A computer with a mid level graphics card and a display monitor.
  • The computer should have the latest stable version of CARLA installed and be able to run it at an acceptable level of performance.
  • The computer should have Elcano test framework installed.
  • Parallel cable
  • Go-between board (Type of board TBD)
  • Wires.

Software

  • CARLA Simulator
  • Framework to manage the trike model along with manipulating and transporting data between the board and the simulator.
  • User scripts defining whatever conditions will be added to the simulation

CARLA User Guide

  • Connect the parallel port on the computer to the one on the go between board
  • Connect the go between board to the can bus and whatever sensors you would like to replace with simulation input
  • Attach the output from the low level board to the go between board
  • Run CARLAUE4.exe to spawn a new instance of the CARLA Simulator
  • (Optional) open trike.py and under the line “##TRIKE ATTRIBUTES” adjust or add any of the attributes in the CARLA Trike Model on the wiki to the object assigned to the “trikeControl” object
  • Open a new command window
  • Run framework.py
  • Follow the prompt to insert the trike into the simulation
  • (Optional) Provide a logging file that will contain the output sensor data from the simulation
  • The trike will now await actuating control inputs from the parallel port while outputting the sensor data along the same port as well as to the log file if enabled
  • Open a new command window and run whatever CARLA scripts you would like to test the trike with for example “dynamic_weather.py” included in the CARLA examples will enable different dynamic weather patterns at random within the simulation