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

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  
主站蜘蛛池模板: 东明县| 浦江县| 榕江县| 兴义市| 惠来县| 道孚县| 新泰市| 镇江市| 津市市| 光泽县| 吉林市| 科技| 双牌县| 建瓯市| 新源县| 龙口市| 临汾市| 天柱县| 鹰潭市| 肃北| 福安市| 开封县| 湘乡市| 安西县| 阳高县| 百色市| 肃南| 怀安县| 永定县| 石台县| 宾阳县| 云阳县| 丘北县| 施秉县| 兰西县| 无为县| 项城市| 蒙山县| 库伦旗| 北票市| 洮南市|