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

feat(nebula_ros): support launch_hw parameter in console again to make replaying rosbags easier #190

Merged
merged 3 commits into from
Sep 9, 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
8 changes: 7 additions & 1 deletion nebula_ros/launch/continental_launch_all_hw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<choice value="ARS548" />
<choice value="SRR520" />
</arg>
<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 @@ -14,6 +18,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)"/>
<remap from="/diagnostics" to="diagnostics"/>
<remap from="odometry_input" to="$(var odometry_topic)"/>
<remap from="acceleration_input" to="$(var acceleration_topic)"/>
Expand All @@ -24,7 +29,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"/>
knzo25 marked this conversation as resolved.
Show resolved Hide resolved
<param from="$(var config_file)" allow_substs="true"/>
<param name="launch_hw" value="$(var launch_hw)"/>
<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
Expand Up @@ -10,10 +10,15 @@
<choice value="PandarXT32" />
<choice value="PandarXT32M" />
</arg>
<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)"/>
</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
Expand Up @@ -4,10 +4,15 @@
<choice value="Helios" />
<choice value="Bpearl" />
</arg>
<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)"/>
</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
Expand Up @@ -5,10 +5,15 @@
<choice value="VLP32" />
<choice value="VLS128" />
</arg>
<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)"/>
</node>

</launch>
Loading