我已经购买了全新的树莓派 5,但无法使用 23.10 以外的任何 ubuntu 版本。我需要在 pi 5 中安装 ros 2,但在 23.10 版本中无法安装。那么有什么方法可以在 pi 5 上使用较低的 ubuntu 版本,或者可以在 23.10 版本中安装 ros 2。谢谢
我知道互联网上有很多类似的问题,但我什么都试过了。但是我做错了什么,没有任何效果。
The CMAKE_C_COMPILER:
/usr/local/bin/cc
is not a full path to an existing compiler tool.
我可以在 usr/bin 下找到 gcc、g++ 文件,但在错误中,它会在 usr/local/bin 上搜索编译器。
set(CATKIN_TOPLEVEL TRUE)
set(CMAKE_C_COMPILER "/usr/bin/cc")
即使我更改了编译器的 CMake 列表中的路径。仍然没有运气,顺便说一句,我正在使用 ros1 和 ubuntu。当我尝试 catkin_make 我的工作区时,我遇到了这个错误。
我是 ubuntu 的新手,我正在尝试添加
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
然后我重新加载了.bashrc
source ~/.bashrc
现在我被这个困住了 - 每次我启动终端时,我都会首先得到这个:截图 #1
bash: /catkin_ws/devel/setup.bash: No such file or directory
bash: /home/ros/Home/catkin_ws/devel/setup.bash: No such file or directory
编辑:在cat ~/.bashrc
我得到以下(文件的最后几行)之后:
else
if [ -f "/home/ros/anaconda3/etc/profile.d/conda.sh" ]; then
."/home/ros/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/ros/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
source /opt/ros/noetic/setup.bash
source /catkin_ws/devel/setup.bash
source ~/catkin_ws/devel/setup.bash
source ~/catkin_ws/devel/setup.bash
source ~/catkin_ws/devel/setup.bash
source ~/Home/catkin_ws/devel/setup.bash
source ~/catkin_ws/devel/setup.bash
source ~/catkin_ws/devel/setup.bash
source ~/catkin_ws/devel/setup.bash
并ls ~/catkin_ws/devel
给出:
cmake.lock local_setup.bash setup.bash setup.zsh
env.sh local_setup.sh setup.sh share
lib local_setup.zsh _setup_util.py
在我的 Ubuntu 18.0.4 LTS 上安装 ROS Melodic,我按照一些安装说明进行操作,之后,每当我启动终端或更改为 root 时,我都会收到此消息sudo -s
Reading: command not found
Building: command not found
Reading: command not found
请问我该如何解决?
我正在尝试在 Ubuntu 19.04 上安装 ROS Melodic,并已完成所有适当的准备工作,我正在使用以下命令:
sudo apt install ros-melodic-desktop-full
我收到以下错误:
Unable to locate package ros-melodic-desktop-full
关于我应该做什么的任何想法?
我应该使用什么命令来更改描述(第 5 行)
cat package.xml<?xml version="1.0"?>
<package format="2">
<name>beginner_tutorials</name>
<version>0.0.0</version>
<description>The beginner_tutorials package</description>
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
<maintainer email="[email protected]">adriel</maintainer>
<!-- One license tag required, multiple allowed, one license per tag -->
<!-- Commonly used license strings: -->
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
<license>TODO</license>
<!-- Url tags are optional, but multiple are allowed, one per tag -->
<!-- Optional attribute type can be: website, bugtracker, or repository -->
<!-- Example: -->
<!-- <url type="website">http://wiki.ros.org/beginner_tutorials</url> -->
<!-- Author tags are optional, multiple are allowed, one per tag -->
<!-- Authors do not have to be maintainers, but could be -->
<!-- Example: -->
<!-- <author email="[email protected]">Jane Doe</author> -->
<!-- The *depend tags are used to specify dependencies -->
<!-- Dependencies can be catkin packages or system dependencies -->
<!-- Examples: -->
<!-- Use depend as a shortcut for packages that are both build and exec dependencies -->
<!-- <depend>roscpp</depend> -->
<!-- Note that this is equivalent to the following: -->
<!-- <build_depend>roscpp</build_depend> -->
<!-- <exec_depend>roscpp</exec_depend> -->
<!-- Use build_depend for packages you need at compile time: -->
<!-- <build_depend>message_generation</build_depend> -->
<!-- Use build_export_depend for packages you need in order to build against this package: -->
<!-- <build_export_depend>message_generation</build_export_depend> -->
<!-- Use buildtool_depend for build tool packages: -->
<!-- <buildtool_depend>catkin</buildtool_depend> -->
<!-- Use exec_depend for packages you need at runtime: -->
<!-- <exec_depend>message_runtime</exec_depend> -->
<!-- Use test_depend for packages you need only for testing: -->
<!-- <test_depend>gtest</test_depend> -->
<!-- Use doc_depend for packages you need only for building documentation: -->
<!-- <doc_depend>doxygen</doc_depend> -->
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_export_depend>roscpp</build_export_depend>
<build_export_depend>rospy</build_export_depend>
<build_export_depend>std_msgs</build_export_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>
<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->
</export>
</package>
我最近安装了 Ubuntu 16.04 版并尝试在我的笔记本电脑上安装 ROS 动力学。但是,我在运行sudo apt-get update
.
这是结果:
Err:1 http://packages.ros.org.ros/ubuntu xenial InRelease
Could not resolve 'packages.ros.org.ros'
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://id.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://id.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://id.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
W: Failed to fetch http://packages.ros.org.ros/ubuntu/dists/xenial/InRelease Could not resolve 'packages.ros.org.ros'
W: Some index files failed to download. They have been ignored, or old ones used instead.
我已经在网上搜索了很长时间的解决方案,但似乎仍然无法解决问题。
每当用户触摸或使用手写笔触摸 Ubuntu 16.04 中的屏幕时,我都想读取 x,y 坐标。这是因为我在我的 Ubuntu 上使用 ROS,并且我想从另一个带有触摸屏的设备上控制 ROS 节点。
在此之前,我尝试在Android中使用rosjava,但是在发现Ubuntu 16.04支持触摸屏后,我也觉得应该有一些方法可以访问用户在屏幕中触摸位置的x,y或压力数据。但是,我在互联网上没有找到任何示例代码或方法。
有人可以给我看一下触摸屏编程指南吗?
我在SO中发布了这个问题,但没有找到任何建议。因此,我在这里发布希望。这个问题可能与其他问题重复,但是我已经尝试了他们的解决方案,但没有取得任何成功。我最近使用以下命令删除了 ROS Indigo -
ravi@lab:~$ sudo apt-get remove ros-*
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
现在,我需要它。所以我尝试使用以下命令再次安装它 -
ravi@lab:~$ sudo apt-get install ros-indigo-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-indigo-desktop-full : Depends: ros-indigo-perception but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
不幸的是,以上没有奏效。所以我尝试安装依赖项但没有成功-
ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
ravi@lab:~$ sudo dpkg --configure -a
ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
我尝试手动安装依赖ros-indigo-perception
项但没有机会-
ravi@lab:~$ sudo apt-get install ros-indigo-perception
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-indigo-perception : Depends: ros-indigo-perception-pcl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我尝试了更多并考虑安装另一个依赖ros-indigo-perception-pcl
项,但徒劳无功-
ravi@lab:~$ sudo apt-get install ros-indigo-perception-pcl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-indigo-perception-pcl : Depends: ros-indigo-pcl-conversions but it is not going to be installed
Depends: ros-indigo-pcl-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
仍在尝试没有任何成功-
ravi@lab:~$ sudo apt-get install ros-indigo-pcl-conversions
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-indigo-pcl-conversions : Depends: libpcl-1.7-all but it is not going to be installed
Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ravi@lab:~$ sudo apt-get install libpcl-1.7-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpcl-1.7-all : Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ravi@lab:~$ sudo apt-get install libpcl-1.7-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpcl-1.7-all-dev : Depends: libpcl-apps-1.7-dev but it is not going to be installed
Depends: libpcl-io-1.7-dev but it is not going to be installed
Depends: libpcl-outofcore-1.7-dev but it is not going to be installed
Depends: libpcl-people-1.7-dev but it is not going to be installed
Depends: libpcl-recognition-1.7-dev but it is not going to be installed
Depends: libpcl-visualization-1.7-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我的目标是在我的 Ubuntu 14.04 LTS PC 上安装 ROS Indigo(无需重新安装操作系统:D)
请问有什么办法吗?