Skip to content

Commit

Permalink
fix velodyne launch (autowarefoundation#73)
Browse files Browse the repository at this point in the history
* fix velodyne launch

* fix bug

* add scan_phase arg
  • Loading branch information
Taichi Higashide authored Mar 2, 2021
1 parent 3331f97 commit aa241cf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sensing_launch/launch/velodyne_VLP16.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<arg name="sensor_frame" default="velodyne" />
<arg name="device_ip" default="192.168.1.201"/>
<arg name="port" default="2368"/>
<arg name="scan_phase" default="0.0"/>
<arg name="vehicle_param_file" />
<arg name="vehicle_mirror_param_file" />

<include file="$(find-pkg-share sensing_launch)/launch/velodyne_node_container.launch.py">
<arg name="launch_driver" value="$(var launch_driver)"/>
Expand All @@ -22,6 +25,9 @@
<arg name="frame_id" value="$(var sensor_frame)"/>
<arg name="device_ip" value="$(var device_ip)"/>
<arg name="port" value="$(var port)"/>
<arg name="scan_phase" value="$(var scan_phase)"/>
<arg name="vehicle_param_file" value="$(var vehicle_param_file)" />
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)" />
</include>

<!-- Velodyne Monitor -->
Expand Down
6 changes: 6 additions & 0 deletions sensing_launch/launch/velodyne_VLP32C.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<arg name="sensor_frame" default="velodyne" />
<arg name="device_ip" default="192.168.1.201"/>
<arg name="port" default="2368"/>
<arg name="scan_phase" default="0.0"/>
<arg name="vehicle_param_file" />
<arg name="vehicle_mirror_param_file" />

<include file="$(find-pkg-share sensing_launch)/launch/velodyne_node_container.launch.py">
<arg name="launch_driver" value="$(var launch_driver)"/>
Expand All @@ -22,6 +25,9 @@
<arg name="frame_id" value="$(var sensor_frame)"/>
<arg name="device_ip" value="$(var device_ip)"/>
<arg name="port" value="$(var port)"/>
<arg name="scan_phase" value="$(var scan_phase)"/>
<arg name="vehicle_param_file" value="$(var vehicle_param_file)" />
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)" />
</include>

<!-- Velodyne Monitor -->
Expand Down
6 changes: 6 additions & 0 deletions sensing_launch/launch/velodyne_VLS128.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<arg name="sensor_frame" default="velodyne" />
<arg name="device_ip" default="192.168.1.201"/>
<arg name="port" default="2368"/>
<arg name="scan_phase" default="0.0"/>
<arg name="vehicle_param_file" />
<arg name="vehicle_mirror_param_file" />

<include file="$(find-pkg-share sensing_launch)/launch/velodyne_node_container.launch.py">
<arg name="launch_driver" value="$(var launch_driver)"/>
Expand All @@ -22,6 +25,9 @@
<arg name="frame_id" value="$(var sensor_frame)"/>
<arg name="device_ip" value="$(var device_ip)"/>
<arg name="port" value="$(var port)"/>
<arg name="scan_phase" value="$(var scan_phase)"/>
<arg name="vehicle_param_file" value="$(var vehicle_param_file)" />
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)" />
</include>

<!-- Velodyne Monitor -->
Expand Down
2 changes: 2 additions & 0 deletions sensing_launch/launch/velodyne_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,6 @@ def add_launch_arg(name: str, default_value=None):
add_launch_arg('gps_time', 'False')
add_launch_arg('input_frame', LaunchConfiguration('base_frame'))
add_launch_arg('output_frame', LaunchConfiguration('base_frame'))
add_launch_arg('vehicle_param_file')
add_launch_arg('vehicle_mirror_param_file')
return launch.LaunchDescription(launch_arguments + [OpaqueFunction(function=launch_setup)])

0 comments on commit aa241cf

Please sign in to comment.