ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can't find laser_scan_matcher parameters

asked 2018-04-10 10:44:09 -0500

anonymous user

Anonymous

updated 2018-04-10 12:13:55 -0500

jayess gravatar image

Kinetic

Ubuntu 16.04

Goal

I'm trying to launch a Laser_Scan_Matcher node (from scan_tools package) that takes in sensor_msgs/PointCloud2 messages and outputs geometry_msgs/PoseStamped.

The package is correctly installed. demo.launch works.

In the node.cpp file I see

if(use_cloud_input=True)

but can't find

set.Param("use_cloud_input", True/False)

anywhere in any file in any folder inside the laser_scan_matcher package! How do I launch this node specifying cloud input?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-04-10 16:18:22 -0500

stevejp gravatar image

updated 2018-04-10 16:19:25 -0500

The true / false value for the use_cloud_input_ param is initialized on line 148 in laser_scan_matcher.cpp (Indigo branch) with the following code:

if (!nh_private_.getParam ("use_cloud_input", use_cloud_input_))
use_cloud_input_= false;

So in your launch file you just need to specify the parameter to true. Also, by default laser_scan_matcher looks for the pointcloud on the "cloud" topic (verify this), so you'll also want to remap to whatever your pointcloud topic is. An example launch file might look something like this:

<launch>
<node pkg="laser_scan_matcher" type="laser_scan_matcher_node" name="matcher_node">
<remap from="cloud" to="pointcloud_topic" />
<param name="use_cloud_input" value="true"/>
</node>
</launch>

Hope this helps!

edit flag offensive delete link more

Comments

Thank you!

anonymous userAnonymous ( 2018-04-12 04:53:48 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-04-10 10:44:09 -0500

Seen: 159 times

Last updated: Apr 10 '18