写在最前面,在windows系统使用Gazebo,个人使用时虽然可行,但是bug有些,并不推荐。
通过极其复杂的环境配置和排错,不断努力尝试,源码编译和功能包同步,勉强使win10可以使用ROS1和ROS2的入门全部教程。
但是,由于配置过于麻烦,不同电脑,有些细节上一些小差异,导致无法撰写统一的博文。
比如:
后期通过各种途径解决,当然不要上网查阅,没用的,基本没有类似问题的解决方案,都是在Gazebo默认系统下使用。
几乎所有的bug都搞定后:
太魔幻了,色彩显示完全不对嘛……
还是尽量在ubuntu下使用吧。
d:\catkin_ws\src\racetrack>roslaunch aws_robomaker_racetrack_world view_racetrack.launch
... logging to C:\Users\Administrator\.ros\log\74e28170-8a8b-11ea-989a-9439e58f9605\roslaunch-MICRO-904151047-8216.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://MICRO-904151047:52707/
SUMMARY
========
PARAMETERS
* /gazebo/enable_ros_network: True
* /rosdistro: melodic
* /rosversion: 1.14.3
* /use_sim_time: True
NODES
/
gazebo (gazebo_ros/gzserver)
gazebo_gui (gazebo_ros/gzclient)
auto-starting new master
process[master]: started with pid [9760]
ROS_MASTER_URI=http://127.0.0.1:11311
setting /run_id to 74e28170-8a8b-11ea-989a-9439e58f9605
process[rosout-1]: started with pid [11048]
started core service [/rosout]
process[gazebo-2]: started with pid [10212]
process[gazebo_gui-3]: started with pid [10704]
Gazebo multi-robot simulator, version 9.5.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[Wrn] [..\gazebo\gui\GuiIface.cc:209] g/gui-plugin is really loading a SystemPlugin. To load a GUI plugin please use --gui-client-plugin
[ INFO] [1588214223.854582800]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1588214223.858313500]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.17.185.129
Gazebo multi-robot simulator, version 9.5.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[ INFO] [1588214224.924721800]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1588214224.928601400]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.17.185.129
[Wrn] [..\gazebo\common\ModelDatabase.cc:212] Unable to connect to model database using [http://models.gazebosim.org//database.config]. Only locally installed models will be available.
[ INFO] [1588214237.252306600]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1588214237.506616800, 7212.429000000]: Physics dynamic reconfigure ready.