Ask Your Question
0

Launch laser_scan_matcher node

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

Astronaut gravatar image

Hello

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

<launch>

<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"/>
</node>

<!-- 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"/>

</launch>

edit retag flag offensive close merge delete

Comments

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 489 times

Last updated: Jul 21 '12