From c6b3244b3bc5bb0e926acf956c55ce2ebb5e6952 Mon Sep 17 00:00:00 2001 From: fherrero <fherrero@iri.upc.edu> Date: Tue, 28 Jan 2020 11:44:27 +0100 Subject: [PATCH] Add pointcloud_to_laserscan launch and yaml file --- launch/include/pointcloud_to_laserscan.launch | 26 +++++++++++++++++++ params/pointcloud_to_laserscan.yaml | 18 +++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 launch/include/pointcloud_to_laserscan.launch create mode 100644 params/pointcloud_to_laserscan.yaml diff --git a/launch/include/pointcloud_to_laserscan.launch b/launch/include/pointcloud_to_laserscan.launch new file mode 100644 index 0000000..e6c852b --- /dev/null +++ b/launch/include/pointcloud_to_laserscan.launch @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!-- --> +<launch> + + <arg name="ns" default="robot"/> + <arg name="config_file" default="$(find iri_rosnav)/params/pointcloud_to_laserscan.yaml" /> + <arg name="scan_topic" default="$(arg ns)/scan"/> + <arg name="cloud_topic" default="$(arg ns)/points"/> + <arg name="output" default="screen" /> + <arg name="launch_prefix" default="" /> + + <group ns="$(arg ns)"> + + <node name="pointcloud_to_laserscan" + pkg ="pointcloud_to_laserscan" + type="pointcloud_to_laserscan_node" + output="$(arg output)" + launch-prefix="$(arg launch_prefix)"> + <remap from="/$(arg ns)/scan" to="$(arg scan_topic)"/> + <remap from="/$(arg ns)/cloud_in" to="$(arg cloud_topic)"/> + <rosparam file="$(arg config_file)" command="load" /> + </node> + + </group> + +</launch> diff --git a/params/pointcloud_to_laserscan.yaml b/params/pointcloud_to_laserscan.yaml new file mode 100644 index 0000000..85aae5d --- /dev/null +++ b/params/pointcloud_to_laserscan.yaml @@ -0,0 +1,18 @@ +target_frame: "" +# Leave target_frame disabled to output scan in pointcloud frame +transform_tolerance: 0.1 +min_height: -0.1 +max_height: 0.5 +angle_min: -3.14159 #-1.5708 # -M_PI/2 +angle_max: 3.14159 #1.5708 # M_PI/2 +angle_increment: 0.00335 # M_PI/360.0 +scan_time: 0.3333 +range_min: 0.1 +range_max: 40.0 +use_inf: true + +# Concurrency level, affects number of pointclouds queued for processing and number of threads used +# 0 : Detect number of cores +# 1 : Single threaded +# 2->inf : Parallelism level +concurrency_level: 1 -- GitLab