Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: random_test_runner_node throw Unexpected architecture_type "awf/universe" #1374

Open
felixf4xu opened this issue Sep 12, 2024 · 1 comment
Assignees

Comments

@felixf4xu
Copy link

felixf4xu commented Sep 12, 2024

Describe the bug
I'm trying to follow the instructions from https://autowarefoundation.github.io/autoware-documentation/main/tutorials/scenario-simulation/planning-simulation/random-test-simulation/ to run the scenario simulator:

ros2 launch random_test_runner random_test.launch.py   architecture_type:=awf/universe   sensor_model:=sample_sensor_kit   vehicle_model:=sample_vehicle

I got this error message:

[random_test_runner_node-1] terminate called after throwing an instance of 'common::scenario_simulator_exception::SemanticError'
[random_test_runner_node-1] what(): Unexpected architecture_type "awf/universe" given for V2I traffic lights simulation.

I check the code a little bit, it's from

#if __has_include(<autoware_perception_msgs/msg/traffic_signal_array.hpp>)
    if (architecture_type == "awf/universe/20230906") {
      return std::make_shared<
        TrafficLightPublisher<autoware_perception_msgs::msg::TrafficSignalArray>>(
        std::forward<decltype(xs)>(xs)...);
      has_made_publisher = true;
    }
#endif
#if __has_include(<autoware_perception_msgs/msg/traffic_light_group_array.hpp>)
    if (architecture_type == "awf/universe/20240605") {
      return std::make_shared<
        TrafficLightPublisher<autoware_perception_msgs::msg::TrafficLightGroupArray>>(
        std::forward<decltype(xs)>(xs)...);
      has_made_publisher = true;
    }
#endif

    if (not has_made_publisher) {
      throw common::SemanticError(
        "Unexpected architecture_type ", std::quoted(architecture_type),
        " given for V2I traffic lights simulation.");
    }
  • Ubuntu Version [e.g. 22.04]
  • ROS 2 version humble
@HansRobo
Copy link
Member

@felixf4xu Thank you for your report!
The latest Autoware-oriented scenario_simulator_v2 should use awf/universe/20240605 for architecture_type , but this was not reflected in the documentation.
Thank you for noticing.
I'll try to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants