Skip to content

Commit

Permalink
feat(nebula_ros): support launch_hw parameter in console again to m…
Browse files Browse the repository at this point in the history
…ake replaying rosbags easier
  • Loading branch information
mojomex committed Sep 4, 2024
1 parent 1df487e commit 089e9d5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nebula_ros/launch/continental_launch_all_hw.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?xml version="1.0"?>
<launch>
<arg name="sensor_model" default="ARS548"/>
<arg name="launch_hw" default="true" description="Whether to connect to a real sensor (true) or to accept packet messages (false).">
<choice value="true" />
<choice value="false" />
</arg>
<arg name="config_file" default="$(find-pkg-share nebula_ros)/config/radar/continental/$(var sensor_model).param.yaml"/>

<arg name="odometry_topic" default="odometry_input"/>
Expand All @@ -11,6 +15,7 @@

<node pkg="nebula_ros" exec="continental_ars548_ros_wrapper_node" name="nebula_continental_ars548" output="screen">
<param from="$(var config_file)" allow_substs="true"/>
<param name="launch_hw" value="$(var launch_hw)"></param>
<remap from="/diagnostics" to="diagnostics"/>
<remap from="odometry_input" to="$(var odometry_topic)"/>
<remap from="acceleration_input" to="$(var acceleration_topic)"/>
Expand All @@ -21,7 +26,8 @@
<group if="$(eval &quot;'$(var sensor_model)' == 'SRR520' &quot;)" >

<node pkg="nebula_ros" exec="continental_srr520_ros_wrapper_node" name="nebula_continental_srr520" output="screen">
<param from="$(var config_file)" allow_substs="true"/>
<param from="$(var config_file)" allow_substs="true"/>
<param name="launch_hw" value="$(var launch_hw)"></param>
<remap from="/diagnostics" to="diagnostics"/>
<remap from="odometry_input" to="$(var odometry_topic)"/>
<remap from="acceleration_input" to="$(var acceleration_topic)"/>
Expand Down
5 changes: 5 additions & 0 deletions nebula_ros/launch/hesai_launch_all_hw.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?xml version="1.0"?>
<launch>
<arg name="sensor_model" description="Pandar64|Pandar40P|PandarXT32|PandarXT32M|PandarAT128|PandarQT64|PandarQT128|Pandar128E4X"/>
<arg name="launch_hw" default="true" description="Whether to connect to a real sensor (true) or to accept packet messages (false).">
<choice value="true" />
<choice value="false" />
</arg>
<arg name="config_file" default="$(find-pkg-share nebula_ros)/config/lidar/hesai/$(var sensor_model).param.yaml"/>

<node pkg="nebula_ros" exec="hesai_ros_wrapper_node" name="hesai_ros_wrapper_node" output="screen">
<param from="$(var config_file)" allow_substs="true"/>
<param name="launch_hw" value="$(var launch_hw)"></param>
</node>

</launch>
5 changes: 5 additions & 0 deletions nebula_ros/launch/robosense_launch_all_hw.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?xml version="1.0"?>
<launch>
<arg name="sensor_model" description="Helios|Bpearl"/>
<arg name="launch_hw" default="true" description="Whether to connect to a real sensor (true) or to accept packet messages (false).">
<choice value="true" />
<choice value="false" />
</arg>
<arg name="config_file" default="$(find-pkg-share nebula_ros)/config/lidar/robosense/$(var sensor_model).param.yaml"/>

<node pkg="nebula_ros" exec="robosense_ros_wrapper_node" name="robosense_ros_wrapper_node" output="screen">
<param from="$(var config_file)" allow_substs="true"/>
<param name="launch_hw" value="$(var launch_hw)"></param>
</node>

</launch>
5 changes: 5 additions & 0 deletions nebula_ros/launch/velodyne_launch_all_hw.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?xml version="1.0"?>
<launch>
<arg name="sensor_model" description="VLP16|VLP32|VLS128"/>
<arg name="launch_hw" default="true" description="Whether to connect to a real sensor (true) or to accept packet messages (false).">
<choice value="true" />
<choice value="false" />
</arg>
<arg name="config_file" default="$(find-pkg-share nebula_ros)/config/lidar/velodyne/$(var sensor_model).param.yaml"/>

<node pkg="nebula_ros" exec="velodyne_ros_wrapper_node" name="velodyne_ros_wrapper_node" output="screen">
<param from="$(var config_file)" allow_substs="true"/>
<param name="launch_hw" value="$(var launch_hw)"></param>
</node>

</launch>

0 comments on commit 089e9d5

Please sign in to comment.