Change the launch arguments for the vehicle and sensor models #7111
Replies: 3 comments 1 reply
|
This would be a great simplification for the Autoware project. A single issue is enough, all PRs in all side-repositories can be linked to this issue. Also could you list the repositories that needs to be refactored to accommodate this change in the issue? (including autoware-documentation) I'll help reviewing and testing the changes. |
|
I agree with that sensor_model and vehicle_model are coupled and better convention is wanted. But I'm curious if we really need another I think these two are isomorphic:
For different configurations, sensors and vehicle models might not be the only changes. ML models, configurations, object merge modes, DP/rule-based settings are different. |
|
My understand is that |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Autoware is launched by providing vehicle_model and sensor_model arguments to autoware.launch.xml, but this introduces several restrictions. One is that it forces the creation of four corresponding packages. Furthermore, since these packages do not appear in the depend section of package.xml, they cannot benefit from dependency resolution via rosdep. Another is that the file structure of the package is restricted. It's not possible to switch between configuration variations using argument. A new package must be created for each configuration.
The initial concept for Autoware was to manage vehicles and sensor kits separately, allowing for various combinations. However, in reality, vehicles and sensors are often integrated. As a result, Autoware's launch file has become unnecessarily complex. This is an overview of the current dependencies.
Approach
To resolve this, I propose combining the sensor and vehicle into a single platform_launch as follows. Additionally, reverse the dependency by having autoware_launch accept the paths to the individual files required, rather than the model names of the vehicle or sensor. The package.xml file in platform_launch lists all the necessary packages, making dependencies clear. The platform_launch also launches vehicle_interface.launch.xml and sensing.launch.xml directly. Since the vehicle.launch.xml and sensing.xml files in autoware_universe are almost empty, it's simpler to launch them directly. Alternatively, reverse the include direction and reference
sensing.launchandvehicle.launchfrom the platform package.This does not prohibit the existing package structure. You can still create packages as before and share them across multiple platform_launch packages. While it is necessary to prepare a platform_launch package for each configuration, we consider this a necessary cost. We must not allow the execution of sensor and vehicle combinations other than those provided as platform_launch packages.
Interface changes
$(var sensor_model)_launch/config/dummy_diag_publisher/sensor_kit.param.yamldummy_diag_publisher_extra_config_file$(var sensor_model)_launch/config/diagnostic_aggregator/sensor_kit.param.yamldiagnostic_aggregator_extra_config_file$(var sensor_model)_launch/launch/sensing.launch.xml$(var sensor_model)_description/urdf/sensors.xacro/joint_statesand/robot_descriptiontopics.$(var vehicle_model)_description/urdf/vehicle.xacro/joint_statesand/robot_descriptiontopics.$(var vehicle_model)_description/config/mirror.param.yaml$(var vehicle_model)_description/config/vehicle_info.param.yamlvehicle_info_param_file$(var vehicle_model)_description/config/simulator_model.param.yamlsimulator_model_param_file$(var vehicle_model)_launch/launch/vehicle_interface.launch.xml$(var vehicle_model)_launch/config/raw_vehicle_cmd_converter.param.yaml$(var data_path)/lidar_frnet/ml_package_$(var model_name)_$(var sensor_model).param.yamlml_package_param_pathRelated PRs
All reactions