Skip to content

Commit

Permalink
Hotfix lci param loading (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaikrishnaBairamoni authored May 10, 2023
2 parents c7c860e + 9e53d70 commit dea203c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion carma/launch/plugins.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def generate_launch_description():

pure_pursuit_tuning_parameters = [vehicle_calibration_dir, "/pure_pursuit/calibration.yaml"]

lci_plugin_calibration_params = [vehicle_calibration_dir, "/identifiers/UniqueVehicleParams.yaml"]

carma_inlanecruising_plugin_container = ComposableNodeContainer(
package='carma_ros2_utils',
name='carma_lainlanecruising_plugin_container',
Expand Down Expand Up @@ -283,7 +285,8 @@ def generate_launch_description():
],
parameters=[
lci_strategic_plugin_file_path,
vehicle_config_param_file
vehicle_config_param_file,
lci_plugin_calibration_params
]
),
]
Expand Down
2 changes: 1 addition & 1 deletion lci_strategic_plugin/src/lci_strategic_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ LCIStrategicPlugin::LCIStrategicPlugin(const rclcpp::NodeOptions &options)
config_.intersection_transit_plugin_name = declare_parameter<std::string>("intersection_transit_plugin_name", config_.intersection_transit_plugin_name);
config_.enable_carma_streets_connection = declare_parameter<bool>("enable_carma_streets_connection",config_.enable_carma_streets_connection);
config_.mobility_rate = declare_parameter<double>("mobility_rate", config_.mobility_rate);
config_.vehicle_id = declare_parameter("vehicle_id", config_.vehicle_id);
config_.vehicle_id = declare_parameter<std::string>("vehicle_id", config_.vehicle_id);

max_comfort_accel_ = config_.vehicle_accel_limit * config_.vehicle_accel_limit_multiplier;
max_comfort_decel_ = -1 * config_.vehicle_decel_limit * config_.vehicle_decel_limit_multiplier;
Expand Down

0 comments on commit dea203c

Please sign in to comment.