![Mastering ROS for Robotics Programming(Second Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/200/36700200/b_36700200.jpg)
上QQ阅读APP看书,第一时间看更新
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:
![](https://epubservercos.yuewen.com/1D30EC/19470397401586306/epubprivate/OEBPS/Images/baa638cd-6821-4d9d-b0ee-33f7c63c0760.jpg?sign=1739314005-9ofuWvwBneiEScX8udnwkAfq1m2d4jOh-0-0ceb5e263974a0e086710f5903c474b0)
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.