How to provide a Fixed Frame to Rviz Ignition?
I am trying to get started with RViz and Gazebo Ignition and have a simple two-wheeled robot with a lidar in Gazebo. I now would like to at least see the lidar in RViz but would prefer to see the lidar and have its center move around as my robot is moving in Gazebo. At this point I have tried everything that I can think of and have Google searched for everything that seems likely. I haven't found any demos that I could get to run that could help.
In RViz, I am seeing "Fixed Frame [Warn] No tf data. Frame [world] does not exist."
What can I do to provide a frame of reference so that Rviz will not have this error and will presumably let me see the lidar? I'm assuming that it would be something that I would put in my .sdf file.
Update: I just tried replacing RViz ignition with the older/alternate Rviz and am having the same issue there as well about not finding the fixed frame.
If I were doing this with the older Gazebo, I would add the following within the libgazebo_ros_diff_drive plugin section of my .world file: <odometry_frame>world_frame</odometry_frame> In Rviz, I would select "world_frame" as my fixed frame in Global Options. That would make the lidar's location in RViz track around with the location of my robot.