# ros2常見錯誤 ## Oracle JDK 11 is NOT installed. ``` rm -f /etc/apt/source.list.d/webupd8team-ubuntu-java-focal.list ``` ``` sudo add-apt-repository --remove ppa:webupd8team/java ``` ``` sudo rm /var/lib/dpkg/info/oracle-java11-installer-local.postinst -f ``` ``` sudo apt update && sudo apt install locales ``` ## ERROR: launchpadlib 1.10.13 requires testresources, which is not installed. Python3 ``` sudo apt install python3-testresources ``` # 建構ros專案常用指令 ## 檢查依賴 https://docs.ros.org/en/foxy/Tutorials/Workspace/Creating-A-Workspace.html 從根目錄執行 ``` # cd if you're still in the ``src`` directory with the ``ros_tutorials`` clone cd .. rosdep install -i --from-path src --rosdistro foxy -y ``` 如果您已經擁有所有依賴項,控制台將返回: ``` #All required rosdeps installed successfully ``` **package.xml 文件中聲明它們的依賴關係** ## 創建專案(py) ``` ros2 pkg create --build-type ament_python py_pubsub ``` ``` ros2 pkg create --build-type ament_python <專案名稱> ```
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.