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(tier4_vehicle_launch): remove unnecessary config_dir #436

Merged
merged 4 commits into from
Feb 24, 2022
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
10 changes: 4 additions & 6 deletions launch/tier4_vehicle_launch/launch/vehicle.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@

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


<!-- vehicle description -->
<group>
<include file="$(find-pkg-share tier4_vehicle_launch)/launch/vehicle_description.launch.xml">
<arg name="vehicle_model" value="$(var vehicle_model)"/>
<arg name="sensor_model" value="$(var sensor_model)"/>
<arg name="vehicle_id" value="$(var vehicle_id)"/>
</include>
<arg name="model_file" default="$(find-pkg-share tier4_vehicle_launch)/urdf/vehicle.xacro" description="path to the file of model settings (*.xacro)"/>
<node name="robot_state_publisher" pkg="robot_state_publisher" exec="robot_state_publisher">
<param name="robot_description" value="$(command 'xacro $(var model_file) vehicle_model:=$(var vehicle_model) sensor_model:=$(var sensor_model)')"/>
</node>
</group>

<!-- vehicle interface -->
Expand Down
15 changes: 0 additions & 15 deletions launch/tier4_vehicle_launch/launch/vehicle_description.launch.xml

This file was deleted.

5 changes: 1 addition & 4 deletions launch/tier4_vehicle_launch/urdf/vehicle.xacro
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0"?>
<robot name="vehicle"
xmlns:xacro="http://ros.org/wiki/xacro">

<robot name="vehicle" xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:arg name="vehicle_model" default=""/>
<xacro:arg name="sensor_model" default=""/>

Expand All @@ -12,5 +10,4 @@
<!-- sensors -->
<xacro:property name="sensor_model_property" value="$(arg sensor_model)"/>
<xacro:include filename="$(find ${sensor_model_property}_description)/urdf/sensors.xacro"/>

</robot>