A question about using tf . [closed]
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 :
- launch the LIDAR and publish the topic
velodyne_pointclouds
whose type is sensor_msg::PointCloud2 ; - run the
tf_broadcaster
, transform the frame betweenvelodyne
andbase_link
; - 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 ?
Have you tried visualizing or echoing your tf tree to verify that the transforms are actually being broadcast?
How to do this step ?
add tf in rviz left window or use rosrun tf view_frames ( http://wiki.ros.org/tf#view_frames )
I ran the tf view_frames and it does broadcast . But still no point cloud displayed in rviz .
still the same error or different ?
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_transfo...
DId you figure this out? We'll need some more info to help you further.