ROS安裝問題 初始化問題

2021-10-07 17:58:14 字數 968 閱讀 5812

.list檔案內容:

# newer distributions (groovy, hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead然後直接

rosdep update
如果還是有問題,在瀏覽器訪問**

輸入raw.githubusercontent.com

會出現幾個**,選擇乙個,我選擇151.101.76.133

修改hosts

sudo gedit /etc/hosts
增加151.101.76.133 raw.githubusercontent.com

然後再

rosdep update
如果再出現問題,那都是網路問題,多試幾次,有線網,手機熱點。

參考:

ROS初始化 sudo rosdep init失敗

sudo apt install rospack tools之後執行 sudo rosdep init 即可 2 安裝完ros後,初始sudo rosdep init,顯示 error cannot download default sources list from website may be ...

C 初始化問題

1 普通變數,const static,const static 普通變數 可以再初始化鍊錶,和建構函式中初始化 const物件 或 reference物件 只能在初始化列表中初始化 static 只能在累的外面定義和初始化 const static 如果是int 型可以在類中宣告時直接初始化,其他...

初始化順序問題

public class initdemo 初始化塊 構造器 public initdemo public static void main string args 靜態變數 靜態初始化塊 變數初始化塊 構造器public class parent 初始化塊 構造器 public parent pu...