Robotics StackExchange | Archived questions

A question about using tf .

Hello ! I have a LIDAR HDL-32E on my car , and I load a car model in the rviz and display the point cloud . The "frame_id" of the LIDAR is "velodyne" and the car base's is "base_link" . Then I do these steps :

  1. launch the LIDAR and publish the topic velodyne_pointclouds whose type is sensor_msg::PointCloud2 ;
  2. run the tf_broadcaster , transform the frame between velodyne and base_link;
  3. launch the car model and display in rviz .

But point cloud did not show out ater I add the PointCloud2 in the left window . And it informs an Error :

For frame [velodyne]:Frame [velodyne] dose not exist .

Maybe I misunderstand the tf and the relationship between reality and simulation . Can tell me what should I do ?

Asked by Lau on 2014-08-11 08:24:50 UTC

Comments

Have you tried visualizing or echoing your tf tree to verify that the transforms are actually being broadcast?

Asked by Tom Moore on 2014-08-11 08:32:49 UTC

How to do this step ?

Asked by Lau on 2014-08-11 09:39:30 UTC

add tf in rviz left window or use rosrun tf view_frames (http://wiki.ros.org/tf#view_frames)

Asked by bvbdort on 2014-08-11 10:08:42 UTC

I ran the tf view_frames and it does broadcast . But still no point cloud displayed in rviz .

Asked by Lau on 2014-08-11 10:38:34 UTC

still the same error or different ?

Asked by bvbdort on 2014-08-11 10:58:01 UTC

What have you set as fixed frame in RVIZ? I don't know the tf_broadcaster, but stuff like that is usually done with the static_transform_publisher: http://wiki.ros.org/tf#static_transform_publisher

Asked by BennyRe on 2014-08-12 00:55:09 UTC

DId you figure this out? We'll need some more info to help you further.

Asked by tfoote on 2014-09-22 19:34:25 UTC

Answers