autowarefoundation / autoware-projects

This repository is made to keep track of Non-source code related tasks for AWF projects
8 stars 0 forks source link

Define Test Procedures to check Simulator's Compatibility with Autoware #21

Open sglee-morai opened 2 years ago

sglee-morai commented 2 years ago

Description

To define test procedures (e.g. test codes) to check whether a certain simulator is compatible with Autoware

Needs to define 1) what feature of Autoware should be able to integrate with a certain simulator 2) requirement for the simulator (e.g. a simulator should receive autoware_auto_msgs/VehicleControlCommand and the vehicle model within the simulator should respond accordingly.) 3) test cases for the requirements 4) test codes

Purpose

To ensure that any simulator is compatible with the latest version of Autoware Ultimately, streamlining the development process of Autoware-compatible simulators

Possible approaches

A very simple method to check the compatibility of MORAI SIM: Drive with Autoware is included in this documentation, which can give a very brief idea at least. Link

Discussion needed: how to automate the tests or at least do them in a systematic way.

sglee-morai commented 2 years ago

Proceed in two steps:

1) creating (mostly) manual procedures 2) automate the procedures

Coverage of the test

1) [Initial] cover the interface between the simulator and Autoware 2) [Future] test would cover other requirements defined in the documentation (related discussion link)

sglee-morai commented 2 years ago

Test Procedures to test interfaces between a simulator and Autoware

Requirement overview

link for the interface requirement: link

Related Repository

(WIP)

Detailed Test Procedure

(WIP)

sglee-morai commented 2 years ago

Discussion / Questions

where to put the test codes

location of the msg definition

confused

gitlab

unable to find

https://github.com/autowarefoundation/autoware/blob/main/autoware.repos

https://github.com/tier4/autoware_auto_msgs

creating a specific test map for test automation

how to check frequency & how important it is

use of unit testing framework: python unittest

sglee-morai commented 2 years ago

Test Procedure Draft (WIP)

1) ControlModeCommand & ControlModeReport

2) GearCommand & Report

Case 1-4)

3) AckermannControlCommand-LongitudinalCommand & VelocityReport

Case 1)

Case 2)

4) AckermannControlCommand-AckermannLateralCommand & SteeringReport

5) TurnIndicatorsCommand & TurnIndicatorsReport

6) HazardLightsCommand & HazardLightsReport

7) EmergencyState

[TBD]

sglee-morai commented 2 years ago

Update 22-05-25

Plan

sglee-morai commented 2 years ago

Update 22-06-08

Test code for No.1 to 6 is written (Already some automation features are already implemented)

PR has been delayed since internally we have found things to refactor first, which Soohyeok (MORAI) is doing some refactoring.

WJaworskiRobotec commented 2 years ago

PR with the code created here : link

sglee-morai commented 2 years ago

Update 22-07-06

Want to ask for a review: TierIV to test run the code. However, I have a question regarding this, though. When a certain person (MORAI in this case) asks other members to run the code in their machine, how he or she can do that?

For me to have Soohyuk's code in my machine, I had to do the followings

Is this a typical process for other members as well in case wanting to get the code and run it in his/her local machine?

stale[bot] commented 2 years ago

This pull request has been automatically marked as stale because it has not had recent activity.