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

Launch laser_scan_matcher node

asked 2012-07-21 08:02:41 -0500

Astronaut gravatar image


I tried to launch the laser_scan_matcher package node. This is my launch file, but I can not see nothing on my rviz tool. Is something wrong with my launch file or just a rviz configuration? The launch file is like this


<param name="/use_sim_time" value="true"/>

<node name="rosplay" pkg="rosbag" type="play" args="/home/Daniel/Desktop/Data/test-41.bag           --clock"/>

<node pkg="tf" type="static_transform_publisher" name="baselink_laser" args="0 0 0 0 0 0 /base_link /laser 10"/>
<node pkg="tf" type="static_transform_publisher" name="laser_imu" args="0 0 0 0 0 0 /laser /base_imu 10"/>
<node pkg="tf" type="static_transform_publisher" name="baselink_camera" args="0 0 0 0 0 0 /base_link /camera 10"/>

<node pkg="laser_scan_matcher" type="laser_scan_matcher_node" 
    name="laser_scan_matcher_node" output="screen">
    <param name="use_alpha_beta" value="true"/>
    <param name="max_iterations" value="10"/>

<!-- Start an rviz node with a custom configuration for the viewpoint, map_server, trajectory, laser scans, etc -->
<node pkg="rviz" type="rviz" output="screen" name="rviz" args="-d $(find pow_analyzer)/launch/pow_rviz.vcg"/>


edit retag flag offensive close merge delete


The bag file is 150 sec long. So have to add this loop <node name="rosplay" pkg="rosbag" type="play" args="/home/Daniel/Desktop/Data/test-41.bag --loop --clock"/>. Wright? And the Rviz settings?I mean the target and fixed frame?

Astronaut gravatar image Astronaut  ( 2012-07-22 01:41:09 -0500 )edit

Any help on this?

Astronaut gravatar image Astronaut  ( 2012-07-23 02:28:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-21 10:46:37 -0500

joq gravatar image

rosbag is only going to play the data once. How long is that file?

If you want to play back the file repeatedly, add --loop to the rosbag arguments.

edit flag offensive delete link more

Question Tools


Asked: 2012-07-21 08:02:41 -0500

Seen: 690 times

Last updated: Jul 21 '12