Skip to content

Commit

Permalink
fix(raw_vehicle_cmd_converter): fix parameter files to parse path to …
Browse files Browse the repository at this point in the history
…csv files (autowarefoundation#6136) (#1139)

Signed-off-by: Fumiya Watanabe <[email protected]>
Co-authored-by: Fumiya Watanabe <[email protected]>
  • Loading branch information
h-ohta and rej55 authored Feb 13, 2024
1 parent 07e919b commit 604848f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
2 changes: 2 additions & 0 deletions launch/tier4_vehicle_launch/launch/vehicle.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<arg name="vehicle_id" default="$(env VEHICLE_ID default)" description="vehicle specific ID"/>
<arg name="initial_engage_state" default="false" description="/vehicle/engage state after starting Autoware"/>
<arg name="config_dir" default="$(find-pkg-share $(var sensor_model)_description)/config" description="path to dir where sensors_calibration.yaml, etc. are located"/>
<arg name="raw_vehicle_cmd_converter_param_path" default="$(find-pkg-share raw_vehicle_cmd_converter)/config/raw_vehicle_cmd_converter.param.yaml"/>

<let name="vehicle_launch_pkg" value="$(find-pkg-share $(var vehicle_model)_launch)"/>

Expand All @@ -21,6 +22,7 @@
<group if="$(var launch_vehicle_interface)">
<include file="$(var vehicle_launch_pkg)/launch/vehicle_interface.launch.xml">
<arg name="vehicle_id" value="$(var vehicle_id)"/>
<arg name="raw_vehicle_cmd_converter_param_path" value="$(var raw_vehicle_cmd_converter_param_path)"/>
<arg name="initial_engage_state" value="$(var initial_engage_state)"/>
</include>
</group>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/**:
ros__parameters:
csv_path_accel_map: "$(find-pkg-share raw_vehicle_cmd_converter)/data/default/accel_map.csv"
csv_path_brake_map: "$(find-pkg-share raw_vehicle_cmd_converter)/data/default/brake_map.csv"
csv_path_steer_map: "$(find-pkg-share raw_vehicle_cmd_converter)/data/default/steer_map.csv"
convert_accel_cmd: true
convert_brake_cmd: true
convert_steer_cmd: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0"?>
<launch>
<arg name="csv_path_accel_map" default="$(find-pkg-share raw_vehicle_cmd_converter)/data/default/accel_map.csv"/>
<arg name="csv_path_brake_map" default="$(find-pkg-share raw_vehicle_cmd_converter)/data/default/brake_map.csv"/>
<arg name="csv_path_steer_map" default="$(find-pkg-share raw_vehicle_cmd_converter)/data/default/steer_map.csv"/>

<arg name="input_control_cmd" default="/control/command/control_cmd"/>
<arg name="input_odometry" default="/localization/kinematic_state"/>
<arg name="input_steering" default="/vehicle/status/steering_status"/>
Expand All @@ -9,6 +13,9 @@

<node pkg="raw_vehicle_cmd_converter" exec="raw_vehicle_cmd_converter_node" name="raw_vehicle_cmd_converter" output="screen">
<param from="$(var config_file)" allow_substs="true"/>
<param name="csv_path_accel_map" value="$(var csv_path_accel_map)"/>
<param name="csv_path_brake_map" value="$(var csv_path_brake_map)"/>
<param name="csv_path_steer_map" value="$(var csv_path_steer_map)"/>
<remap from="~/input/control_cmd" to="$(var input_control_cmd)"/>
<remap from="~/input/odometry" to="$(var input_odometry)"/>
<remap from="~/input/steering" to="$(var input_steering)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@
"raw_vehicle_cmd_converter": {
"type": "object",
"properties": {
"csv_path_accel_map": {
"type": "string",
"description": "path for acceleration map csv file",
"default": "$(find-pkg-share raw_vehicle_cmd_converter)/data/default/accel_map.csv"
},
"csv_path_brake_map": {
"type": "string",
"description": "path for brake map csv file",
"default": "$(find-pkg-share raw_vehicle_cmd_converter)/data/default/brake_map.csv"
},
"csv_path_steer_map": {
"type": "string",
"description": "path for steer map csv file",
"default": "$(find-pkg-share raw_vehicle_cmd_converter)/data/default/steer_map.csv"
},
"convert_accel_cmd": {
"type": "boolean",
"description": "use accel or not",
Expand Down

0 comments on commit 604848f

Please sign in to comment.