q版设计网站,北恩uc3客户管理软件,凡科平台盲审,房地产最新消息房价会涨吗系统ubuntu22.04 ros2 humble 
按照如下视频教程学习的#xff1a;【古月居】古月ROS2入门21讲 | 带你认识一个全新的机器人操作系统 
此处仅记录我报错的地方#xff0c;以及相应的解决方案#xff0c;没有出错的略过#xff01; 
对应的古月居ROS2入门21讲源码下载地址【古月居】古月·ROS2入门21讲 | 带你认识一个全新的机器人操作系统 
此处仅记录我报错的地方以及相应的解决方案没有出错的略过 
对应的古月居ROS2入门21讲源码下载地址 
Giteehttps://gitee.com/guyuehome/ros2_21_tutorials
Githubhttps://github.com/guyuehome/ros2_21_tutorials1. 第3讲3. ROS2安装我没有问题 ^_^ 
视频教程安装过程参照【古月居】古月·ROS2入门21讲 | 带你认识一个全新的机器人操作系统 
或者一键安装古月居的ROS安利 | ROS一键安装脚本 或者小鱼工具【ROS2】Ubuntu22.04安装ROS humble都可以。 
我在这一步没有问题 ^_^ 
2. 第6讲6.工作空间与功能包开发过程的大本营 
我在6.工作空间与功能包开发过程的大本营这一步出错 
2.1 rosdepc install报错Cannot locate rosdep definition for [rospy] 
rosdepc install -i --from-path src --rosdistro humble -y运行上面的指令时报错 
xjxj:~/dev_ws$ rosdep install -i --from-path src --rosdistro humble -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
learning_service: Cannot locate rosdep definition for [rospy]
learning_topic: Cannot locate rosdep definition for [rospy]
learning_parameter: Cannot locate rosdep definition for [rospy]
learning_launch: Cannot locate rosdep definition for [catkin]
learning_tf: Cannot locate rosdep definition for [tf]
xjxj:~/dev_ws$ 直接安装缺失的包我按照下面的指令安装后就可以colcon build了 
sudo apt-get install python3-rospy确实缺挺多包的 
xjxj:~/dev_ws$ sudo apt-get install python3-rospy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:python3-catkin python3-genmsg python3-genpy python3-roscpp-msg python3-rosgraphpython3-rosgraph-msgs python3-roslib python3-rospkg python3-std-msgs
The following NEW packages will be installed:python3-catkin python3-genmsg python3-genpy python3-roscpp-msg python3-rosgraphpython3-rosgraph-msgs python3-roslib python3-rospkg python3-rospy python3-std-msgs
0 upgraded, 10 newly installed, 0 to remove and 5 not upgraded.
Need to get 248 kB of archives.
After this operation, 1,585 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-catkin all 0.8.10-7 [22.8 kB]
Get:2 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-genmsg all 0.5.16-5 [23.7 kB]
Get:3 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-genpy all 0.6.16-1 [31.4 kB]
Get:4 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-roscpp-msg all 1.15.14ds-2build2 [6,782 B]
Get:5 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-rosgraph all 1.15.14ds-2build2 [30.9 kB]
Get:6 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-std-msgs all 0.5.13-2 [10.7 kB]
Get:7 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-rosgraph-msgs all 1.11.3-2 [7,272 B]
Get:8 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-roslib all 1.15.8-3 [36.8 kB]
Get:9 https://mirrors.xjtu.edu.cn/ubuntu jammy/universe amd64 python3-rospy all 1.15.14ds-2build2 [75.5 kB]
Get:10 http://packages.ros.org/ros2/ubuntu jammy/main amd64 python3-rospkg all 1.5.1-100 [2,524 B]
Fetched 248 kB in 2s (146 kB/s)             
Selecting previously unselected package python3-catkin.
(Reading database ... 300924 files and directories currently installed.)
Preparing to unpack .../0-python3-catkin_0.8.10-7_all.deb ...
Unpacking python3-catkin (0.8.10-7) ...
Selecting previously unselected package python3-genmsg.
Preparing to unpack .../1-python3-genmsg_0.5.16-5_all.deb ...
Unpacking python3-genmsg (0.5.16-5) ...
Selecting previously unselected package python3-genpy.
Preparing to unpack .../2-python3-genpy_0.6.16-1_all.deb ...
Unpacking python3-genpy (0.6.16-1) ...
Selecting previously unselected package python3-roscpp-msg.
Preparing to unpack .../3-python3-roscpp-msg_1.15.14ds-2build2_all.deb ...
Unpacking python3-roscpp-msg (1.15.14ds-2build2) ...
Selecting previously unselected package python3-rospkg.
Preparing to unpack .../4-python3-rospkg_1.5.1-100_all.deb ...
Unpacking python3-rospkg (1.5.1-100) ...
Selecting previously unselected package python3-rosgraph.
Preparing to unpack .../5-python3-rosgraph_1.15.14ds-2build2_all.deb ...
Unpacking python3-rosgraph (1.15.14ds-2build2) ...
Selecting previously unselected package python3-std-msgs.
Preparing to unpack .../6-python3-std-msgs_0.5.13-2_all.deb ...
Unpacking python3-std-msgs (0.5.13-2) ...
Selecting previously unselected package python3-rosgraph-msgs.
Preparing to unpack .../7-python3-rosgraph-msgs_1.11.3-2_all.deb ...
Unpacking python3-rosgraph-msgs (1.11.3-2) ...
Selecting previously unselected package python3-roslib.
Preparing to unpack .../8-python3-roslib_1.15.8-3_all.deb ...
Unpacking python3-roslib (1.15.8-3) ...
Selecting previously unselected package python3-rospy.
Preparing to unpack .../9-python3-rospy_1.15.14ds-2build2_all.deb ...
Unpacking python3-rospy (1.15.14ds-2build2) ...
Setting up python3-genmsg (0.5.16-5) ...
Setting up python3-rospkg (1.5.1-100) ...
Setting up python3-rosgraph (1.15.14ds-2build2) ...
Setting up python3-genpy (0.6.16-1) ...
Setting up python3-std-msgs (0.5.13-2) ...
Setting up python3-catkin (0.8.10-7) ...
Setting up python3-roscpp-msg (1.15.14ds-2build2) ...
Setting up python3-rosgraph-msgs (1.11.3-2) ...
Setting up python3-roslib (1.15.8-3) ...
Setting up python3-rospy (1.15.14ds-2build2) ...
xjxj:~/dev_ws$2.2 colcon build报错 
含泪教训古月居ROS2入门21讲源码下载错了我原来下载的是ros1的教程源码但是在ros2系统里编译而catkin是ros1的编译命令所以在ros2里就报错了  下载ros2的教程源码就可以了 再次 
colcon build源码编译成功 2.3 验证 
上面都没有问题的话再次运行指令 
rosdepc install -i --from-path src --rosdistro humble -y不再报错了  
终端打印全文 
xjxj:~/dev_ws$ rosdepc install -i --from-path src --rosdistro humble -y
您已经成功安装rosdepc,下面提示的用法中请将rosdep替换为rosdepc使用
欢迎使用国内版rosdep之rosdepc我是作者小鱼
学习机器人,就关注《鱼香ROS》公众号|B站|CSDN
小鱼rosdepc正式为您服务
executing command [sudo -H apt-get install -y ros-humble-joint-state-publisher-gui]
[sudo] password for xj: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:ros-humble-joint-state-publisher
The following NEW packages will be installed:ros-humble-joint-state-publisher ros-humble-joint-state-publisher-gui
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 31.6 kB of archives.
After this operation, 136 kB of additional disk space will be used.
Get:1 http://packages.ros.org/ros2/ubuntu jammy/main amd64 ros-humble-joint-state-publisher amd64 2.4.0-1jammy.20241128.030805 [16.1 kB]
Get:2 http://packages.ros.org/ros2/ubuntu jammy/main amd64 ros-humble-joint-state-publisher-gui amd64 2.4.0-1jammy.20241128.033111 [15.5 kB]
Fetched 31.6 kB in 2s (19.9 kB/s)                                
Selecting previously unselected package ros-humble-joint-state-publisher.
(Reading database ... 303527 files and directories currently installed.)
Preparing to unpack .../ros-humble-joint-state-publisher_2.4.0-1jammy.20241128.030805_amd64.deb ...
Unpacking ros-humble-joint-state-publisher (2.4.0-1jammy.20241128.030805) ...
Selecting previously unselected package ros-humble-joint-state-publisher-gui.
Preparing to unpack .../ros-humble-joint-state-publisher-gui_2.4.0-1jammy.20241128.033111_amd64.deb ...
Unpacking ros-humble-joint-state-publisher-gui (2.4.0-1jammy.20241128.033111) ...
Setting up ros-humble-joint-state-publisher (2.4.0-1jammy.20241128.030805) ...
Setting up ros-humble-joint-state-publisher-gui (2.4.0-1jammy.20241128.033111) ...
executing command [sudo -H apt-get install -y ros-humble-xacro]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:ros-humble-xacro
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 36.8 kB of archives.
After this operation, 154 kB of additional disk space will be used.
Get:1 http://packages.ros.org/ros2/ubuntu jammy/main amd64 ros-humble-xacro amd64 2.0.8-1jammy.20241125.233221 [36.8 kB]
Fetched 36.8 kB in 1s (30.2 kB/s)          
Selecting previously unselected package ros-humble-xacro.
(Reading database ... 303571 files and directories currently installed.)
Preparing to unpack .../ros-humble-xacro_2.0.8-1jammy.20241125.233221_amd64.deb ...
Unpacking ros-humble-xacro (2.0.8-1jammy.20241125.233221) ...
Setting up ros-humble-xacro (2.0.8-1jammy.20241125.233221) ...
#All required rosdeps installed successfully
---------------------------------------------------------------------------
---------------------------------------------------------------------------
小鱼科普rosdep干什么用的可以跳过吗https://fishros.org.cn/forum/topic/2124
如果再使用过程中遇到任何问题欢迎通过fishros.org.cn反馈或者加入QQ交流群(139707339)
xjxj:~/dev_ws$ 3. 第18讲. Gazebo三维物理仿真平台 
22点07分开始运行gazebo22点34分还没加载出来gazebo的橘色页面。。。 
注已经按照教程从这个网址https://github.com/osrf/gazebo_models下载文件夹后重命名为models文件夹并保存到了~/.gazebo/models路径下了 3.1. 尝试重启–没用 
重启没用。。。 
3.2. 问chatgpt–解决 
以下操作解决我的问题啦chatgpt详细回复见这个网页 
为 Gazebo 和 ROS 2 进行环境变量设置 编辑 ~/.bashrc 文件 添加以下内容 
# Gazebo 环境变量
export GAZEBO_MODEL_PATH/usr/share/gazebo-${GAZEBO_VERSION}/models
export GAZEBO_PLUGIN_PATH/usr/lib/gazebo-${GAZEBO_VERSION}/plugins
source /usr/share/gazebo/setup.sh
# ROS 2 环境变量
source /opt/ros/humble/setup.bash将 ${GAZEBO_VERSION} 替换为 fortress。我没替换也可以的 执行以下命令使其生效 
source ~/.bashrc我按照第2步操作就解决辣  文章转载自: http://www.morning.hnkkf.cn.gov.cn.hnkkf.cn http://www.morning.xyrss.cn.gov.cn.xyrss.cn http://www.morning.mehrim.com.gov.cn.mehrim.com http://www.morning.pgmyn.cn.gov.cn.pgmyn.cn http://www.morning.frpfk.cn.gov.cn.frpfk.cn http://www.morning.bdgb.cn.gov.cn.bdgb.cn http://www.morning.rqlbp.cn.gov.cn.rqlbp.cn http://www.morning.21r000.cn.gov.cn.21r000.cn http://www.morning.wxckm.cn.gov.cn.wxckm.cn http://www.morning.xkwrb.cn.gov.cn.xkwrb.cn http://www.morning.nhrkl.cn.gov.cn.nhrkl.cn http://www.morning.xflwq.cn.gov.cn.xflwq.cn http://www.morning.rmdsd.cn.gov.cn.rmdsd.cn http://www.morning.qqhfc.cn.gov.cn.qqhfc.cn http://www.morning.ktqtf.cn.gov.cn.ktqtf.cn http://www.morning.oioini.com.gov.cn.oioini.com http://www.morning.qtzqk.cn.gov.cn.qtzqk.cn http://www.morning.mnqg.cn.gov.cn.mnqg.cn http://www.morning.wtcyz.cn.gov.cn.wtcyz.cn http://www.morning.fwnyz.cn.gov.cn.fwnyz.cn http://www.morning.wmdqc.com.gov.cn.wmdqc.com http://www.morning.mytmx.cn.gov.cn.mytmx.cn http://www.morning.kjcfz.cn.gov.cn.kjcfz.cn http://www.morning.jtdrz.cn.gov.cn.jtdrz.cn http://www.morning.dyzbt.cn.gov.cn.dyzbt.cn http://www.morning.nxbkw.cn.gov.cn.nxbkw.cn http://www.morning.wwwghs.com.gov.cn.wwwghs.com http://www.morning.qjfkz.cn.gov.cn.qjfkz.cn http://www.morning.nyqnk.cn.gov.cn.nyqnk.cn http://www.morning.rzmzm.cn.gov.cn.rzmzm.cn http://www.morning.gjlml.cn.gov.cn.gjlml.cn http://www.morning.nbiotank.com.gov.cn.nbiotank.com http://www.morning.lznqb.cn.gov.cn.lznqb.cn http://www.morning.nwnbq.cn.gov.cn.nwnbq.cn http://www.morning.wfzdh.cn.gov.cn.wfzdh.cn http://www.morning.sh-wj.com.cn.gov.cn.sh-wj.com.cn http://www.morning.skbbt.cn.gov.cn.skbbt.cn http://www.morning.skkln.cn.gov.cn.skkln.cn http://www.morning.qclmz.cn.gov.cn.qclmz.cn http://www.morning.wnjbn.cn.gov.cn.wnjbn.cn http://www.morning.jqbmj.cn.gov.cn.jqbmj.cn http://www.morning.sypzg.cn.gov.cn.sypzg.cn http://www.morning.tqldj.cn.gov.cn.tqldj.cn http://www.morning.pxtgf.cn.gov.cn.pxtgf.cn http://www.morning.djxnw.cn.gov.cn.djxnw.cn http://www.morning.hxpff.cn.gov.cn.hxpff.cn http://www.morning.bprsd.cn.gov.cn.bprsd.cn http://www.morning.pmptm.cn.gov.cn.pmptm.cn http://www.morning.clyhq.cn.gov.cn.clyhq.cn http://www.morning.qxwrd.cn.gov.cn.qxwrd.cn http://www.morning.rlfr.cn.gov.cn.rlfr.cn http://www.morning.lnwdh.cn.gov.cn.lnwdh.cn http://www.morning.khpx.cn.gov.cn.khpx.cn http://www.morning.kpcxj.cn.gov.cn.kpcxj.cn http://www.morning.wcft.cn.gov.cn.wcft.cn http://www.morning.tnbsh.cn.gov.cn.tnbsh.cn http://www.morning.rswfj.cn.gov.cn.rswfj.cn http://www.morning.rnfn.cn.gov.cn.rnfn.cn http://www.morning.pswzc.cn.gov.cn.pswzc.cn http://www.morning.xdlwm.cn.gov.cn.xdlwm.cn http://www.morning.rqlbp.cn.gov.cn.rqlbp.cn http://www.morning.qjxxc.cn.gov.cn.qjxxc.cn http://www.morning.wnjrf.cn.gov.cn.wnjrf.cn http://www.morning.fgxnb.cn.gov.cn.fgxnb.cn http://www.morning.jntcr.cn.gov.cn.jntcr.cn http://www.morning.bhjyh.cn.gov.cn.bhjyh.cn http://www.morning.txgjx.cn.gov.cn.txgjx.cn http://www.morning.dppfh.cn.gov.cn.dppfh.cn http://www.morning.yfmwg.cn.gov.cn.yfmwg.cn http://www.morning.mzmqg.cn.gov.cn.mzmqg.cn http://www.morning.tkkjl.cn.gov.cn.tkkjl.cn http://www.morning.ywxln.cn.gov.cn.ywxln.cn http://www.morning.jcfdk.cn.gov.cn.jcfdk.cn http://www.morning.gtwtk.cn.gov.cn.gtwtk.cn http://www.morning.snccl.cn.gov.cn.snccl.cn http://www.morning.mdfxn.cn.gov.cn.mdfxn.cn http://www.morning.amlutsp.cn.gov.cn.amlutsp.cn http://www.morning.wrbx.cn.gov.cn.wrbx.cn http://www.morning.tkcz.cn.gov.cn.tkcz.cn http://www.morning.cpwmj.cn.gov.cn.cpwmj.cn