Skip to content

Commit

Permalink
fix: fix vehicle_id reflection (#166)
Browse files Browse the repository at this point in the history
* fix: fix vehicle_id reflection

Signed-off-by: kminoda <[email protected]>

* fix

Signed-off-by: kminoda <[email protected]>

* revert radar

Signed-off-by: kminoda <[email protected]>

---------

Signed-off-by: kminoda <[email protected]>
  • Loading branch information
kminoda authored and tkimura4 committed Sep 27, 2023
1 parent 4b0994b commit fd7fcd7
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion aip_x1_launch/launch/imu.launch.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<launch>

<arg name="launch_driver" default="true" />
<arg name ="vehicle_id" default="$(env VEHICLE_ID default)" />

<group>
<push-ros-namespace namespace="imu"/>

<include file="$(find-pkg-share imu_corrector)/launch/imu_corrector.launch.xml">
<arg name="input_topic" value="/sensing/lidar/front_center/livox/imu" />
<arg name="output_topic" value="/sensing/imu/imu_data" />
<arg name="param_file" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_x1/imu_corrector.param.yaml" />
<arg name="param_file" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_x1/imu_corrector.param.yaml" />
</include>

</group>
Expand Down
3 changes: 2 additions & 1 deletion aip_x1_launch/launch/sensing.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<arg name="vehicle_mirror_param_file" description="path to the file of vehicle mirror position yaml"/>
<arg name="use_pointcloud_container" default="false" description="launch pointcloud container"/>
<arg name="pointcloud_container_name" default="pointcloud_container"/>
<arg name ="vehicle_id" default="$(env VEHICLE_ID default)" />

<group>

Expand Down Expand Up @@ -34,7 +35,7 @@
<include file="$(find-pkg-share vehicle_velocity_converter)/launch/vehicle_velocity_converter.launch.xml">
<arg name="input_vehicle_velocity_topic" value="/vehicle/status/velocity_status"/>
<arg name="output_twist_with_covariance" value="/sensing/vehicle_velocity_converter/twist_with_covariance"/>
<arg name="config_file" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_x1/vehicle_velocity_converter.param.yaml" />
<arg name="config_file" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_x1/vehicle_velocity_converter.param.yaml" />
</include>
</group>

Expand Down
3 changes: 2 additions & 1 deletion aip_x2_launch/launch/imu.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<arg name="launch_driver" default="true" />
<arg name="interface" default="pcan1"/>
<arg name="receiver_interval_sec" default="0.01"/>
<arg name ="vehicle_id" default="$(env VEHICLE_ID default)" />

<group>
<push-ros-namespace namespace="tamagawa"/>
Expand All @@ -23,7 +24,7 @@
<include file="$(find-pkg-share imu_corrector)/launch/imu_corrector.launch.xml">
<arg name="input_topic" value="tamagawa/imu_raw" />
<arg name="output_topic" value="imu_data" />
<arg name="param_file" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_x2/imu_corrector.param.yaml" />
<arg name="param_file" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_x2/imu_corrector.param.yaml" />
</include>
</group>

Expand Down
3 changes: 2 additions & 1 deletion aip_x2_launch/launch/sensing.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<arg name="vehicle_mirror_param_file" description="path to the file of vehicle mirror position yaml"/>
<arg name="use_pointcloud_container" default="false" description="launch pointcloud container"/>
<arg name="pointcloud_container_name" default="pointcloud_container"/>
<arg name ="vehicle_id" default="$(env VEHICLE_ID default)" />

<group>

Expand Down Expand Up @@ -34,7 +35,7 @@
<include file="$(find-pkg-share vehicle_velocity_converter)/launch/vehicle_velocity_converter.launch.xml">
<arg name="input_vehicle_velocity_topic" value="/vehicle/status/velocity_status"/>
<arg name="output_twist_with_covariance" value="/sensing/vehicle_velocity_converter/twist_with_covariance"/>
<arg name="config_file" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_x2/vehicle_velocity_converter.param.yaml" />
<arg name="config_file" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_x2/vehicle_velocity_converter.param.yaml" />
</include>
</group>

Expand Down
3 changes: 2 additions & 1 deletion aip_xx1_launch/launch/imu.launch.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<launch>

<arg name="launch_driver" default="true" />
<arg name ="vehicle_id" default="$(env VEHICLE_ID default)" />

<group>
<push-ros-namespace namespace="imu"/>
Expand All @@ -17,7 +18,7 @@
<include file="$(find-pkg-share imu_corrector)/launch/imu_corrector.launch.xml">
<arg name="input_topic" value="tamagawa/imu_raw" />
<arg name="output_topic" value="imu_data" />
<arg name="param_file" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_xx1/imu_corrector.param.yaml" />
<arg name="param_file" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_xx1/imu_corrector.param.yaml" />
</include>
</group>

Expand Down
4 changes: 2 additions & 2 deletions aip_xx1_launch/launch/lidar.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<push-ros-namespace namespace="front_left"/>
<include file="$(find-pkg-share common_sensor_launch)/launch/livox_horizon.launch.py">
<arg name="sensor_frame" value="livox_front_left" />
<arg name="bd_code_param_path" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_xx1/livox_front_left_bd_code.param.yaml" />
<arg name="bd_code_param_path" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_xx1/livox_front_left_bd_code.param.yaml" />
<arg name="launch_driver" value="$(var launch_driver)" />
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)" />
</include>
Expand All @@ -90,7 +90,7 @@
<push-ros-namespace namespace="front_right"/>
<include file="$(find-pkg-share common_sensor_launch)/launch/livox_horizon.launch.py">
<arg name="sensor_frame" value="livox_front_right" />
<arg name="bd_code_param_path" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_xx1/livox_front_right_bd_code.param.yaml" />
<arg name="bd_code_param_path" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_xx1/livox_front_right_bd_code.param.yaml" />
<arg name="launch_driver" value="$(var launch_driver)" />
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)" />
</include>
Expand Down
3 changes: 2 additions & 1 deletion aip_xx1_launch/launch/sensing.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<arg name="perception_mode" default="camera_lidar_fusion" description="select perception mode. camera_lidar_fusion, lidar, camera"/>
<arg name="use_pointcloud_container" default="false" description="launch pointcloud container"/>
<arg name="pointcloud_container_name" default="pointcloud_container"/>
<arg name ="vehicle_id" default="$(env VEHICLE_ID default)" />

<group>

Expand Down Expand Up @@ -40,7 +41,7 @@
<include file="$(find-pkg-share vehicle_velocity_converter)/launch/vehicle_velocity_converter.launch.xml">
<arg name="input_vehicle_velocity_topic" value="/vehicle/status/velocity_status"/>
<arg name="output_twist_with_covariance" value="/sensing/vehicle_velocity_converter/twist_with_covariance"/>
<arg name="config_file" value="$(find-pkg-share individual_params)/config/$(env VEHICLE_ID default)/aip_xx1/vehicle_velocity_converter.param.yaml" />
<arg name="config_file" value="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_xx1/vehicle_velocity_converter.param.yaml" />
</include>

</group>
Expand Down

0 comments on commit fd7fcd7

Please sign in to comment.