How to visualize using rviz on gazebo
Hello, i want to do simulation on turtlebot3 using gazebo, i do succesfully run the world on gazebo. But if i want to visualizing on the rviz, using : rosrun rviz rviz
, there is always error, (eg: on Robot Model, etc..). But if i run the rviz using roslaunch turtlebot3_gazebo turtlebot3_gazebo_rviz.launch
, there is no error.
Error on robot model: No transform from [base_link] to [odom]
Error on laserScan: For frame [base_scan]: Frame [base_scan] does not exist
I want to ask about that, what is the most important setting that the robot can visualize from the gazebo ? Because i want to do it manually from rosrun rviz rviz...
Thank you.
Please edit your question and show the error message...
Done, Thank you..
try adding robot model from rviz.Maybe your rviz is searching for robots in a different topic.
You say you
How do you do that? What are the commands you launch? The launch file you point to loads, among other things, the robot description from the urdf file to the parameter server and launches the
robot_state_publisher
. Those things provide the frames that are needed to transform the respective data into the correct frames. Those are the error messages you are seeing. They are all about non-existent transforms or frames, which are a requirement for rviz to properly visualize all the data.