-
Notifications
You must be signed in to change notification settings - Fork 0
Errors and Problems
Davood Dorostkar edited this page Oct 9, 2024
·
7 revisions
- remove current configs
sudo rm -rf /etc/ros/rosdep/sources.list.d/*
rm -rf ~/.ros/rosdep
- add new configs
sudo mkdir -p ~/.ros/rosdep/sources.list.d
sudo mkdir -p /etc/ros/rosdep/sources.list.d/
sudo curl -o /etc/ros/rosdep/sources.list.d/10-mirror.list https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
sudo curl -o ~/.ros/rosdep/sources.list.d/20-custom.list https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
- edit env variable
export ROSDISTRO_INDEX_URL=https://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml
echo 'export ROSDISTRO_INDEX_URL=https://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml' >> ~/.bashrc
- now you can update rosdep
rosdep update
- Edit your settings inside
ros_ws/.vscode/c_cpp_properties.json
as this.
- Also make sure you have these plugins installed:
ROS
,CMake
,C/C++
,Clang-format
- Enter
catkin_make
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/opt/ros/noetic/include/**",
"/usr/include/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++14",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}