Skip to content

This is the virtual sensor package to be included in the src file if you want fake cone detection and mapping data

Notifications You must be signed in to change notification settings

UOA-FSAE/virtual-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

virtual-sensor

This is the virtual sensor package to be included in the src file if you want fake cone detection and mapping data

Installation guide

Copy and paste this entire folder under src file of the autonomous repo

Initial setup

1: Go to virtual_sensor/virtual_sensor/publisher_member_function.py 2: Find line 43, change the path to the path of "TESTDATA.txt" in your computer. For me, it is the one shown below. But for you it depends on how you arrange your files. If you are using docker, make sure that you use the directory that is under the docker container (for example: /ws/src/....) image

How to run it

1: colcon build 2: run: ros2 run virtual_sensor talker You should be able to see bunch of message popping out like this image

3: run: ros2 run cone_mapping listener You should be able to see the terminal that you running cone_mapping node showing up bunch of "Listened" like this image

How to generate track

1: Go to virtual_sensor/virtual_sensor/Testcase_Generation image

2: Open testcase_generator_track.py

3: If you want to customize your track, you can change the following parameters (don't change anything else, you should not need to). image

4: Click Run to generate tracks. You should be able to see the following when it is running image

5: You should have your test data stored in a txt file, before you replace this file to TESTDATA.txt that is stored in the parent folder, please ensure that you delete these sections. image Your TESTDATA.txt should look like this: image (I will update the program to automatically remove these sections for you) Note:

  • Change radius to larger radius if you want you track to be more flat (Use large number to simulate a straight track
  • Change file_name if you want your test data being stored in a txt file with a different name.

About

This is the virtual sensor package to be included in the src file if you want fake cone detection and mapping data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages