This video post explains how to integrate Camera plugin with a ROS robot simulated by Gazebo. Learn how to simulate camera capture in Gazebo & visualize camera images in Rviz is also demonstrated.
The code discussed is yet another simple stand-alone example. It was tested with ROS Kinetic & Gazebo 7 running on Ubuntu 16.04.
Instructions
First, clone or pull the example code from my git repository. And create ROS package files on top of source files.
1 2 3 4 | git checkout https://bitbucket.org/kiranpalla/learn-ros cd learn-ros/using-gazebo-camera/src catkin_create_pkg mybot cd .. |
Build ROS package and add it to ROS search path.
1 2 | catkin_make source devel/setup.sh |
Launch the example.
1 | roslaunch mybot mybot.launch |