Simulating the robotic arm with Xtion Pro

Now that we have learned about the camera plugin definition in Gazebo, we can launch the complete simulation using the following command:

$ roslaunch seven_dof_arm_gazebo seven_dof_arm_with_rgbd_world.launch  

We can see the robot model with a sensor on the top of the arm, as shown here:

Figure 2: Simulation of seven-DOF arm with Asus Xtion Pro in Gazebo

We can now work with the simulated rgb-d sensor as if it were directly plugged into our computer. So we can check whether it provides the correct image output.

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.