-
ros2 launch fishbot_description gazebo.launch.py file 'gazebo.launch.py' was not found in the share directory of package 'fishbot_description' which is at '/home/zj/fishbot_ws/src/install/fishbot_description/share/fishbot_description'
-
@15014960082 你有在第八章的时候将launch文件夹install吗?
-
@15014960082 加过了,还重新创建和从来过
-
@15014960082 放一下你的setup.py看看
-
此回复已被删除! -
此回复已被删除! -
此回复已被删除! -
from setuptools import setup from glob import glob import os package_name = 'fishbot_description' setup( name=package_name, version='0.0.0', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml']), (os.path.join('share', package_name, 'launch'), glob('launch/display_rviz2.launch.py')), (os.path.join('share', package_name, 'urdf'), glob('urdf/fishbot_base.urdf')), (os.path.join('share', package_name, 'launch'), glob('launch/gazebo.launch.py')) ], install_requires=['setuptools'], zip_safe=True, maintainer='zj', maintainer_email='zj@todo.todo', description='TODO: Package description', license='TODO: License declaration', tests_require=['pytest'], entry_points={ 'console_scripts': [ "rotate_wheel= fishbot_description.rotate_wheel:main" ], }, )
![下面是启片动后的]( )
-
@15014960082 这不是找到了吗
-
@小鱼 解决。感谢大佬带飞,主要还是我自己细节没处理好
-
此回复已被删除! -
-
请问具体是怎么解决的呢?遇到了相同的问题
-
9.2章节
想要启动Gazebo及其插件
输入指令:gazebo --verbose -s libgazebo_ros_factory.so
前面几行正确
Gazebo multi-robot simulator, version 11.11.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org[Msg] Waiting for master.
Gazebo multi-robot simulator, version 11.11.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.0.110
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.0.110
[Msg] Loading world file [/usr/share/gazebo-11/worlds/empty.world]
下面开始报错:
[INFO] [1729773472.917806661] [gazebo_ros_node]: ROS was initialized without arguments.
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.cache"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.clash"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.config"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.dotnet"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.fishros"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.gazebo"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.gnupg"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.ignition"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.local"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.mozilla"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.pip"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.pki"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.ros"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.rviz2"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.sdformat"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.ssh"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.thunderbird"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/.vscode"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Desktop"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Documents"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Downloads"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Music"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Pictures"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Public"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Python-3.10.5"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Share"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Templates"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/Videos"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/build"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/colcon_test_ws"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/examples"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/fishbot_ws"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/fishros2"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/install"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/log"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/sharedStorage"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/snap"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/towm_ws"</b></font>
<font color="#CC0000"><b>[Err] [InsertModelWidget.cc:403] Missing model.config for model "/home/wushengxin/turtle_ws"</b></font>
context mismatch in svga_surface_destroy
context mismatch in svga_surface_destroy
</pre>
求小鱼解答@小鱼