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

fix(raw_vehicle_cmd_converter): csv paths are resolved in param.yaml #6476

Merged
merged 3 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/**:
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,9 +1,5 @@
<?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 @@ -13,9 +9,6 @@

<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,6 +6,21 @@
"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 Expand Up @@ -142,6 +157,9 @@
}
},
"required": [
"csv_path_accel_map",
"csv_path_brake_map",
"csv_path_steer_map",
"convert_accel_cmd",
"convert_brake_cmd",
"convert_steer_cmd",
Expand Down
Loading