3.1 No module named 'home_robot_hw'3.2 AttributeError: module ‘numpy’ has no attribute ‘float’.3.3 vcs 命令找不到3.4 realsense安装以及catkin_make找不到库3.5 stretch.urdf找不到(无实体机器人不能解决)
2. 获取源码并安装home-robot的镜像源地址
https://github.com/hello-robot/stretch_install/blob/master/docs/install_ubuntu_20.04.md
sudoapt updatesudoaptinstall build-essential zipunzipgit clone https://github.com/facebookresearch/home-robot.gitcd ./home-robot# If using ROS - make sure you don't have PYTHONPATH setunset PYTHONPATH# Otherwise, use the version in src/home_robotmamba env create -n home-robot -f src/home_robot/environment.yml# Activate the environmentconda activate home-robot# Optionally, update this environment to install ROSmamba env update -f src/home_robot_hw/environment.ymlexportHOME_ROBOT_ROOT=$HOME/home-robotexportCUDA_HOME=/usr/local/cuda-11.7conda activate home-robotcd$HOME_ROBOT_ROOT./install_deps.sh
报错
请确认您有正确的访问权限并且仓库存在。fatal: 无法克隆 'git@github.com:Jdvakil/spot-sim2real.git' 到子模组路径 '/home/moresweet/home-robot/src/third_party/spot-sim2real'
安装成功即为配置完毕 3. 问题3.1 No module named ‘home_robot_hw’
cdcd home_robot_hw/pip install-e. 3.2 AttributeError: module ‘numpy’ has no attribute ‘float’.AttributeError: module ‘numpy’ has no attribute ‘float’.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations # 版本降级conda installnumpy==1.23.5 3.3 vcs 命令找不到sudoapt-getinstall python3-vcstool 3.4 realsense安装以及catkin_make找不到库git clone https://github.com/Microsoft/vcpkg.gitcdvcpkg./bootstrap-vcpkg.sh./vcpkg integrate install./vcpkg install realsense2
vcpkg需要在cmakeList中加入一行自己的vcpkg.cmake
链接文件
3.5 stretch.urdf找不到(无实体机器人不能解决)roslaunch home_robot_hw startup_stretch_hector_slam.launch又报错
FileNotFoundError: [Errno 2 No such file or directory: '/home/moresweet/ROS_WS/src/stretch_ro