官术网_书友最值得收藏!

Testing Gazebo with the ROS interface

Assuming that the ROS environment is properly set up, we can start roscore before starting Gazebo using the following command:

    $ roscore  

The following command will run Gazebo using ROS:

    $ rosrun gazebo_ros gazebo  

Gazebo runs two executables-the Gazebo server and the Gazebo client. The Gazebo server will execute the simulation process and the Gazebo client can be the Gazebo GUI. Using the previous command, the Gazebo client and server will run in parallel.

The Gazebo GUI is shown in the following screenshot:

The Gazebo simulator

After starting Gazebo, the following topics will be generated:

$ rostopic list  
/gazebo/link_states  
/gazebo/model_states  
/gazebo/parameter_descriptions  
/gazebo/parameter_updates  
/gazebo/set_link_state  
/gazebo/set_model_state  

We can run the server and client separately using the following commands:

  • Run the Gazebo server using the following command:
    $ rosrun gazebo_ros gzserver  
  • Run the Gazebo client using the following command:
    $ rosrun gazebo_ros gzclient  
主站蜘蛛池模板: 天门市| 迭部县| 莒南县| 襄樊市| 文化| 京山县| 三原县| 怀来县| 开化县| 通城县| 惠东县| 体育| 溧水县| 仪征市| 屯留县| 文水县| 监利县| 中阳县| 昔阳县| 龙游县| 昌黎县| 盖州市| 明光市| 盘山县| 静宁县| 浪卡子县| 麟游县| 开封市| 高淳县| 两当县| 建始县| 都江堰市| 汤原县| 湄潭县| 伊金霍洛旗| 长白| 咸丰县| 海晏县| 辛集市| 三门峡市| 策勒县|