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

How to use laser_assembler correctly

asked 2011-09-30 07:44:09 -0500

tyler258 gravatar image

Hello, I am trying to use the laser_assembler node but have had no luck getting it to work. I am using this tutorial on How to assemble laser scan lines into a composite point cloud. I'm reading in the laser scan data provided by ROS which can be found on the same page as the tutorial.

So far I have moved all of the laser_assembler files into there own folder in my ros_workspace. I have also copied the launch file (found on the tutorial page) and placed it within the "Example" folder within the laser_assembler node, making changes to the package name. I then launch the laser_scan_assembler.launch file along wit the periodic_snapshotter file. I then run rosbag play laser.bag and open up Rviz. I subscribe to the correct topic but nothing shows up in Rviz.

Can anyone help he clarify what I'm doing wrong and point me in the right direction?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-09-30 09:12:17 -0500

DimitriProsser gravatar image

The first thing that you should do would be to make sure that if you moved the laser_assembler files into your own folder you also changed the package names in the launch files. The next step would be to make sure that all nodes are running properly. For this, you can use:

rosnode list

Also, I noticed that you issued the command "rosbag play laser.bag", but you need to use the command "rosbag play --clock laser.bag" instead. This will replace the system time used by the laser assembler with the system time that was used during the recording of the rosbag. Otherwise, tf will be unable to re-create the correct transforms and no scans will be displayed.

edit flag offensive delete link more

Comments

That fixed the problem. Thank you so much for helping me with all of my laser_pipeline node questions.
tyler258 gravatar image tyler258  ( 2011-10-03 04:30:03 -0500 )edit

Question Tools

Stats

Asked: 2011-09-30 07:44:09 -0500

Seen: 1,228 times

Last updated: Sep 30 '11