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

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  
主站蜘蛛池模板: 祥云县| 巫溪县| 信宜市| 鄢陵县| 炎陵县| 体育| 榆树市| 留坝县| 淮阳县| 陇川县| 河南省| 齐河县| 新建县| 苏尼特左旗| 界首市| 芦溪县| 定边县| 东莞市| 敦化市| 溧阳市| 兴国县| 长丰县| 祁连县| 固镇县| 万山特区| 乌审旗| 正安县| 乌鲁木齐县| 安化县| 田阳县| 陈巴尔虎旗| 沾化县| 西盟| 九江县| 井研县| 台江县| 拜城县| 宁波市| 集贤县| 安溪县| 桐城市|