KINGBILI 2024-01-13 12:23
浏览 18
已结题

ROS进行roslaunch时无法自动打开gazebo,并出现rviz警告报错的情况

ROS进行roslaunch时无法自动打开gazebo,并出现rviz警告报错的情况
如题,在运行代码

source devel/setup.bash
roslaunch simulation multi_robot.launch map:=map1

时,会卡在界面中并未自动启动gazebo。

img

而若在提前启动gazebo的情况下运行,又会提示已启动了一个gazebo。
全情况如下

s@s-virtual-machine:~$ roslaunch simulation multi_robot.launch map:=map1
... logging to /home/s/.ros/log/4ea0509a-b1ca-11ee-af34-3d70edeb717d/roslaunch-s-virtual-machine-3885.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://s-virtual-machine:44415/

SUMMARY
========

CLEAR PARAMETERS
 * /multi_robot_spawner/

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /multi_robot_spawner/robot_namespace: robot
 * /rosdistro: noetic
 * /rosversion: 1.15.13
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    multi_robot_spawner (simulation/multi_robot_spawner.py)
  /gazebo/
    gz_realtime_factor_node (simulation/gz_realtime_factor_node)

auto-starting new master
process[master]: started with pid [3893]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 4ea0509a-b1ca-11ee-af34-3d70edeb717d
process[rosout-1]: started with pid [3903]
started core service [/rosout]
process[gazebo-2]: started with pid [3907]
process[gazebo/gz_realtime_factor_node-3]: started with pid [3913]
process[multi_robot_spawner-4]: started with pid [3917]
... logging to /home/s/.ros/log/4ea0509a-b1ca-11ee-af34-3d70edeb717d/roslaunch-s-virtual-machine-3917.log
Gazebo multi-robot simulator, version 11.5.1
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[ INFO] [1705119300.024524535]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1705119300.028852038]: 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: 192.168.206.129
[Msg] Loading world file [/home/s/src/simulation/simulation/worlds/map1.world]
[ INFO] [1705119302.501095359]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1705119302.666449899]: occupancy map plugin started
[ INFO] [1705119302.700840599]: Physics dynamic reconfigure ready.
    



  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 1月21日
    • 创建了问题 1月13日