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

depthimage_to_laserscan contains tf?

asked 2015-07-04 21:54:05 -0500

SamTew gravatar image

I am using kinect to publish laserscan data for mapping. I used depthimage_to_laserscan package to convert it. When running mapping, rviz showed no tf was found for the laserscan. Is depthimage_to_laserscan contains tf when it publishs /scan? If no, then how to fuse tf into it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-07-05 03:37:29 -0500

updated 2015-07-05 03:38:20 -0500

You need the tf link for rviz that it knows, where the laserscanner/kinect is in his coordinate system to display measured points in 3D space.

Check the frame_id in the laserscan message and set Fixed frame (rviz) to the frame_id and you should see your laserscan centered in rviz. It will stay there and any tf connected to will move arround, if it changes. Inside the laserscan message there is no tf. You just have arrays to show in which angle you messure which distance.

Maybe you will need to generate a tf from your robot to the kinect later.

Regards

Christian

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-04 21:54:05 -0500

Seen: 550 times

Last updated: Jul 05 '15