Before you run gazebo and rviz, make sure to add source ~/mybot_ws/devel/setup.bash in the .bashrc file
- in
~/mybot_wsrunrun_gazebo.shfirst => this should open Gazebo - After that you could start
run_cmd.shorrun_rviz.shin any order. - In the rviz, in the left panel Display
- change the
Fixed Frametoodom(the red check mark should turn green) - then add the robot model by clicking the add button. SelectRobotModeland click okay - then add the camera by clickind add and selecting camera- for camera: change
Image Topicto/mybot/camera1/image_raw
- for camera: change
In the bottom of the right panel you should see the camera view.