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

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  
主站蜘蛛池模板: 乌恰县| 静安区| 辉南县| 东阿县| 江陵县| 郯城县| 灯塔市| 梁河县| 田林县| 辽宁省| 朝阳县| 姚安县| 芦溪县| 营山县| 德令哈市| 岳池县| 大兴区| 萨嘎县| 绍兴县| 望谟县| 龙井市| 保山市| 朝阳县| 扎赉特旗| 舞钢市| 石渠县| 武宣县| 昂仁县| 正安县| 高青县| 东阿县| 嵊州市| 永春县| 连城县| 北票市| 澎湖县| 汉沽区| 长武县| 鲁甸县| 冷水江市| 松滋市|