No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 0.0.1
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/automotiveaichallenge/aichallenge2023-integ.git
VCS Type git
VCS Version main
Last Updated 2023-12-18
Dev Status UNKNOWN
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The aichallenge_scoring package is responsible for calculating participant scores for the AI Challenge.

Additional Links

No additional links.

Maintainers

  • Yu Asabe

Authors

No additional authors.

aichallenge_scoring

This package is responsible for tasks that are necessary for the scoring and ranking of participants of the AI Challenge.

It consists of the following features:

  • Calculates the distance_score of the vehicle.
  • Checks whether the current vehicle footprint is inside the lanelet.
  • Measures the time it takes for the vehicle to complete Task 3 of the AI Challenge 2023 tasks.

How to run

$ cd ws
$ mkdir tmp
$ vcs import tmp < test.repos
$ rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO -r
$ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to aichallenge_scoring

$ ros2 launch aichallenge_scoring aichallenge_scoring.launch.xml

Interface

Input

  • /localization/kinematic_state [nav_msgs::msg::Odometry]
  • /map/vector_map [autoware_auto_mapping_msgs::msg::HADMapBin]

Output

  • output/footprint_marker [visualization_msgs::msg::Marker] : Vehicle footprint visualization
  • output/score [aichallenge_scoring_msgs::msg::Score] : Resulting score

Parameters

Node Parameters

Name Type Description Default value
task1_start_distance double Distance of the start line for Task 3 10.0
task1_end_distance double Distance of the end line for Task 3 20.0
task3_start_distance double Distance of the start line for Task 3 10.0
task3_end_distance double Distance of the end line for Task 3 20.0

Visualization

The vehicle footprint calculated in this node can be visualized by displaying the output/footprint_marker topic in Rviz2.

When the vehicle footprint is inside the lane, the polygon is shown in green.

footprint_in_lane

when the vehicle footprint leaves the lane, the polygon turns red.

footprint_out_lane

aichallenge_scoring_msgs

Message Definition

Name Type Description
distance_score double Distance Score (as defined in the competition) (meters)
task3_duration double Duration of time it took to complete Task 3 (seconds)
is_stopped bool Returns true while ego-vehicle is stationary
is_outside_lane bool Returns true while ego-vehicle is outside lane
is_doing_task3 bool Returns true while ego-vehicle is in the middle of doing Task 3
has_finished_task1 bool Returns true once Task 1 is completed
has_finished_task2 bool Returns true once Task 2 is completed
has_finished_task3 bool Returns true once Task 3 is completed

How the score output can be processed

  • At any point during the run, if the ego-vehicle leaves the lane for even a moment (if is_outside_lane returns true even once), then the distance_score is recorded for that moment and the run is over.
  • If ego-vehicle completes Task 3 (has_finished_task3 returns true), then the distance_score and task3_duration for that moment is recorded.

Examples of the score output

The score topic output/score shows output like the ones below.

When the vehicle leaves the lane, the is_outside_lane shows true.

output_1

When the vehicle enters the Task 3 area defined by the task3_start_distance and task3_end_distance parameters, the is_doing_task3 is set to true.

output_2

After Task 3 is finished, the is_doing_task3 returns back to false, and the task3_duration is filled in with the time it took for Task 3 to be completed in milliseconds.

output_3

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

  • launch/aichallenge_scoring.launch.xml
      • vehicle_info_param_file [default: $(find-pkg-share golfcart_description)/config/vehicle_info.param.yaml]
      • aichallenge_scoring_param_path [default: $(find-pkg-share aichallenge_scoring)/config/aichallenge_scoring.param.yaml]
      • vehicle_footprint_marker_topic [default: vehicle_footprint]
      • result_score_topic [default: score]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged aichallenge_scoring at Robotics Stack Exchange

No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.